From: prino Date: Tue, 28 Jun 2011 22:57:33 +0000 (+0000) Subject: New bitmap to store output of event selection X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=fb50f6bbd58e0feff52c80d3ec1af3dd5ed82468 New bitmap to store output of event selection --- diff --git a/PWG3/vertexingHF/AliRDHFCuts.cxx b/PWG3/vertexingHF/AliRDHFCuts.cxx index bd2fd42de22..4cd1b0e190b 100644 --- a/PWG3/vertexingHF/AliRDHFCuts.cxx +++ b/PWG3/vertexingHF/AliRDHFCuts.cxx @@ -70,6 +70,7 @@ fUsePID(kFALSE), fUseAOD049(kFALSE), fPidHF(0), fWhyRejection(0), +fEvRejectionBits(0), fRemoveDaughtersFromPrimary(kFALSE), fUseMCVertex(kFALSE), fOptPileup(0), @@ -113,6 +114,7 @@ AliRDHFCuts::AliRDHFCuts(const AliRDHFCuts &source) : fUseAOD049(source.fUseAOD049), fPidHF(0), fWhyRejection(source.fWhyRejection), + fEvRejectionBits(source.fEvRejectionBits), fRemoveDaughtersFromPrimary(source.fRemoveDaughtersFromPrimary), fUseMCVertex(source.fUseMCVertex), fOptPileup(source.fOptPileup), @@ -165,6 +167,7 @@ AliRDHFCuts &AliRDHFCuts::operator=(const AliRDHFCuts &source) fUseAOD049=source.fUseAOD049; SetPidHF(source.GetPidHF()); fWhyRejection=source.fWhyRejection; + fEvRejectionBits=source.fEvRejectionBits; fRemoveDaughtersFromPrimary=source.fRemoveDaughtersFromPrimary; fUseMCVertex=source.fUseMCVertex; fOptPileup=source.fOptPileup; @@ -211,7 +214,6 @@ Int_t AliRDHFCuts::IsEventSelectedInCentrality(AliVEvent *event) { // // Centrality selection // - if(fUseCentrality=kCentInvalid){ AliWarning("Centrality estimator not valid"); return 3; @@ -235,6 +237,8 @@ Bool_t AliRDHFCuts::IsEventSelected(AliVEvent *event) { //if(fTriggerMask && event->GetTriggerMask()!=fTriggerMask) return kFALSE; fWhyRejection=0; + fEvRejectionBits=0; + Bool_t accept=kTRUE; // check if it's MC Bool_t isMC=kFALSE; @@ -269,7 +273,8 @@ Bool_t AliRDHFCuts::IsEventSelected(AliVEvent *event) { if(!isMC && (event->GetRunNumber()<136851 || event->GetRunNumber()>139517)) { if(!firedTriggerClasses.Contains(fTriggerClass.Data())) { fWhyRejection=5; - return kFALSE; + fEvRejectionBits+=1<GetPrimaryVertex(); - if(!vertex) return kFALSE; - - TString title=vertex->GetTitle(); - if(title.Contains("Z") && fMinVtxType>1) return kFALSE; - if(title.Contains("3D") && fMinVtxType>2) return kFALSE; - - if(vertex->GetNContributors()GetZ())>fMaxVtxZ) { - fWhyRejection=6; - return kFALSE; - } + if(!vertex){ + accept=kFALSE; + fEvRejectionBits+=1<GetTitle(); + if(title.Contains("Z") && fMinVtxType>1){ + accept=kFALSE; + fEvRejectionBits+=1<2){ + accept=kFALSE; + fEvRejectionBits+=1<GetNContributors()GetZ())>fMaxVtxZ) { + fEvRejectionBits+=1<IsPileupFromSPD(cutc,cutz,3.,2.,10.)) { - fWhyRejection=1; - return kFALSE; + if(accept) fWhyRejection=1; + fEvRejectionBits+=1<1){ - fWhyRejection=rejection; - return kFALSE; + if(accept) fWhyRejection=rejection; + fEvRejectionBits+=1<