fNCuts(5),
fTrCoreRem(kFALSE),
fClusTDiff(30e-9),
+ fPileUpRejSPD(kFALSE),
fESD(0),
fAOD(0),
fVEvent(0),
fNCuts(5),
fTrCoreRem(kFALSE),
fClusTDiff(30e-9),
+ fPileUpRejSPD(kFALSE),
fESD(0),
fAOD(0),
fVEvent(0),
printf("passed vertex cut\n");
fEvtSel->Fill(1);
+ if(fVEvent->IsPileupFromSPD(3, 0.8, 3., 2., 5.) && fPileUpRejSPD){
+ if(fDebug)
+ printf("Event is SPD pile-up!***\n");
+ return;
+ }
if(fESD)
fTracks = dynamic_cast<TClonesArray*>(InputEvent()->FindListObject("Tracks"));
if(fAOD)
void SetMinIsoClusE(Double_t emin) { fMinIsoClusE = emin; }
void SetTrCoreRemoval(Bool_t b) { fTrCoreRem = b; }
void SetClusTDiff(Double_t diff) { fClusTDiff = diff; }
+ void SetPileUpRejSPD() { fPileUpRejSPD = kTRUE; }
protected:
TObjArray *fESDClusters; //!pointer to EMCal clusters
TObjArray *fAODClusters; //!pointer to EMCal clusters
Int_t fNCuts; // number of cuts (QA purposes)
Bool_t fTrCoreRem; // flag to set the removal of the core in track isolation (true removes it, default)
Double_t fClusTDiff; // variable to hold the time diff between the candidate cluster and the isolation clusters
+ Bool_t fPileUpRejSPD; // flag to set pile-up rejection via SPD (multiple vertices)
private:
AliESDEvent *fESD; //! ESD object