Changeset 15481


Ignore:
Timestamp:
05/03/13 10:55:05 (12 years ago)
Author:
mknoetig
Message:
Add: fNumIslandsMean into the db
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/fact/processing/numevents.C

    r15394 r15481  
    5555    Float_t fNumSigEvts         = 0;
    5656    Float_t fNumExcEvts         = 0;
     57    Float_t fNumIslandsMean     = 0;
    5758
    5859    //loop over the data files
     
    115116            }
    116117
     118            //the number of events after cleaning
    117119            fNumEvtsAfterCleaning = star_tree->GetEntries();
     120
     121            //get the mean number of islands in the _I.root file on runbasis
     122            star_tree->Draw("MImagePar.fNumIslands>>IslandHisto","","");
     123            TH1F *HistJo = (TH1F*)gDirectory->Get("IslandHisto");
     124            fNumIslandsMean = HistJo->GetMean();
    118125        }
    119126
     
    199206                    " fNumBgEvts=%5.1f, "
    200207                    " fNumSigEvts=%5.1f, "
    201                     " fNumExcEvts=%5.1f ",
     208                    " fNumExcEvts=%5.1f "
     209                    " fNumIslandsMean=%5.4f ",
    202210                    fNumEvtsAfterQualCuts,
    203211                    fNumEvtsAfterBgCuts,
    204212                    fNumBgEvts,
    205213                    fNumSigEvts,
    206                     fNumExcEvts
     214                    fNumExcEvts,
     215                    fNumIslandsMean
    207216                   );
    208217        if (!pernight)
Note: See TracChangeset for help on using the changeset viewer.