]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Modified method for counting events in multiplcity range
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Mar 2012 15:00:16 +0000 (15:00 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Mar 2012 15:00:16 +0000 (15:00 +0000)
PWGHF/vertexingHF/AliNormalizationCounter.cxx
PWGHF/vertexingHF/AliNormalizationCounter.h

index 1edeeff2307236425e82667d5fd0881dd199100a..967d95df5e7e1bd384bc3cdbba139e06cbaaccd7 100644 (file)
@@ -151,7 +151,7 @@ Stores the variables used for normalization as function of run number
 returns kTRUE if the event is to be counted for normalization
 (pass event selection cuts OR has no primary vertex)
  */
-void AliNormalizationCounter::StoreEvent(AliVEvent *event,AliRDHFCuts *rdCut,Bool_t mc){
+void AliNormalizationCounter::StoreEvent(AliVEvent *event,AliRDHFCuts *rdCut,Bool_t mc, Int_t multiplicity){
   //
 
   Bool_t isEventSelected = rdCut->IsEventSelected(event);
@@ -168,7 +168,7 @@ void AliNormalizationCounter::StoreEvent(AliVEvent *event,AliRDHFCuts *rdCut,Boo
   Int_t runNumber = event->GetRunNumber();
  
   // Evaluate the multiplicity
-  Int_t multiplicity = Multiplicity(event);
+  if(multiplicity==-9999) Multiplicity(event);
 
   //Find CINT1B
   AliESDEvent *eventESD = (AliESDEvent*)event;
index 629309cb9f059f05bbcc401d7992ade037330d00..d7c9ae6d57ce1b35751cb7767c1528df90421ebe 100644 (file)
@@ -59,7 +59,7 @@ class AliNormalizationCounter : public TNamed
   void Add(const AliNormalizationCounter*);
   void SetESD(Bool_t flag){fESD=flag;}
   void SetStudyMultiplicity(Bool_t flag, Float_t etaRange){ fMultiplicity=flag; fMultiplicityEtaRange=etaRange; }
-  void StoreEvent(AliVEvent*,AliRDHFCuts *,Bool_t mc=kFALSE);
+  void StoreEvent(AliVEvent*,AliRDHFCuts *,Bool_t mc=kFALSE, Int_t multiplicity=-9999);
   void StoreCandidates(AliVEvent*, Int_t nCand=0,Bool_t flagFilter=kTRUE);
   TH1D* DrawAgainstRuns(TString candle="candid(filter)",Bool_t drawHist=kTRUE);
   TH1D* DrawRatio(TString candle1="candid(filter)",TString candle2="triggered");