Ignore:
Timestamp:
03/19/03 12:41:28 (22 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/CT1collarea.C

    r1823 r1837  
    2424
    2525
    26 void CT1collarea(TString filename="MC_ON1.root", TString outname="")
     26void CT1collarea(TString filename="MC_ON2.root", TString outname="")
    2727{
    2828    //
     
    4040    //
    4141    MReadMarsFile reader("Events", filename);
     42    reader.DisableAutoScheme();
     43    //    reader.EnableBranch("fHadronness");
     44
    4245    MMcCT1CollectionAreaCalc effi;
     46    MHMcCT1CollectionArea* collarea = new MHMcCT1CollectionArea("MHMcCT1CollectionArea","",30,2.,5.);
     47    parlist.AddToList(collarea);
    4348
    4449    tasklist.AddToList(&reader);   
     50
     51    MF filterhadrons("MHadronness.fHadronness<0.25");
     52    tasklist.AddToList(&filterhadrons);
     53    effi.SetFilter(&filterhadrons);
    4554
    4655    tasklist.AddToList(&effi);
     
    7584        return;
    7685
    77     TFile f(outname, "recreate");
    78     if (!f)
    79         return;
    80     parlist.FindObject("MHMcCT1CollectionArea")->Write();
     86    TFile f("area.root","recreate");
     87    collarea->GetHist()->Write();
     88    collarea->GetHAll()->Write();
     89    collarea->GetHSel()->Write();
     90    f.Close();
    8191}
    8292
Note: See TracChangeset for help on using the changeset viewer.