fRemMatchClus(kFALSE),
fMinIsoClusE(0),
fNCuts(5),
- fCuts(""),
+ fTrCoreRem(kTRUE),
fESD(0),
fAOD(0),
fVEvent(0),
fRemMatchClus(kFALSE),
fMinIsoClusE(0),
fNCuts(5),
- fCuts(""),
+ fTrCoreRem(kTRUE),
fESD(0),
fAOD(0),
fVEvent(0),
}
}
Bool_t isCPV = kFALSE;
- if(TMath::Abs(c->GetTrackDx())<0.03 && TMath::Abs(c->GetTrackDz())<0.02)
+ if(TMath::Abs(c->GetTrackDx())>0.03 || TMath::Abs(c->GetTrackDz())>0.02)
isCPV = kTRUE;
if(c->GetM02()>0.1 && c->GetM02()<0.3 && isCPV)
fClusEtCPVSBGISO->Fill(Et,alliso - trcore);
if(c->GetM02()>0.5 && c->GetM02()<2.0 && isCPV)
- fClusEtCPVSBGISO->Fill(Et,alliso - trcore);
+ fClusEtCPVBGISO->Fill(Et,alliso - trcore);
const Int_t ndims = fNDimensions;
Double_t outputValues[ndims];
if(mcptsum<2)
fHigherPtCone = pt;
if(R<fIsoConeR){
totiso += track->Pt();
- if(R<0.04)
+ if(R<0.04 && this->fTrCoreRem)
totcore += pt;
}
else{
Double_t highx) { fNBinsPt = n; fPtBinLowEdge = lowx; fPtBinHighEdge = highx; }
void SetRemoveMatchClus(Bool_t b) { fRemMatchClus = b; }
void SetMinIsoClusE(Double_t emin) { fMinIsoClusE = emin; }
+ void SetTrCoreRemoval(Bool_t b) { fTrCoreRem = b; }
protected:
TObjArray *fESDClusters; //!pointer to EMCal clusters
Bool_t fRemMatchClus; // flag to remove completely a cluster matched from the isolation
Double_t fMinIsoClusE; // minimum energy for a cluster to be counted in the iso cone
Int_t fNCuts; // number of cuts (QA purposes)
- TString fCuts; //string to hol cuts names
-
+ Bool_t fTrCoreRem; // flag to set the removal of the core in track isolation (true removes it, default)
private: