bV0AND = fTriggerAnalysis->IsOfflineTriggerFired(esd, AliTriggerAnalysis::kV0AND);
//else bV0AND = //FIXME FOR AODs
if(!bV0AND) return kFALSE;
+
}
if(!CheckForPrimaryVertex()) return kFALSE;
+
}//CaloFilter patch
else{
if(fInputEvent->GetNumberOfCaloClusters() > 0) {
clus->GetMomentum(momentum, fVertex[vindex]);
- if(fEMCALPtMin < momentum.Pt()){
+ if(fEMCALPtMin < momentum.E()){
if(fCheckFidCut && !fFiducialCut->IsInFiducialCut(momentum,"EMCAL"))
return;
clus->GetMomentum(momentum, fVertex[vindex]);
- if(fPHOSPtMin < momentum.Pt()){
+ if(fPHOSPtMin < momentum.E()){
if(fCheckFidCut && !fFiducialCut->IsInFiducialCut(momentum,"PHOS"))
continue;
fhNtraNclu->SetYTitle("# of clusters");
outputContainer->Add(fhNtraNclu);
- fhNCellsPt = new TH2F ("hNCellsPt","# of tracks vs # of clusters", nptbins,ptmin, ptmax, 10,0,10);
- fhNCellsPt->SetXTitle("p_{T}");
+ fhNCellsPt = new TH2F ("hNCellsPt","# of cells in cluster vs E of clusters", nptbins,ptmin, ptmax, 10,0,10);
+ fhNCellsPt->SetXTitle("p_{T} (GeV/c)");
fhNCellsPt->SetYTitle("# of cells in cluster");
outputContainer->Add(fhNCellsPt);
//.......................................
//If too small or big pt, skip it
- if(mom.Pt() < GetMinPt() || mom.Pt() > GetMaxPt() ) continue ;
- if(GetDebug() > 2) printf("\t Cluster %d Pass Pt Cut \n",icalo);
+ if(mom.E() < GetMinPt() || mom.E() > GetMaxPt() ) continue ;
+ if(GetDebug() > 2) printf("\t Cluster %d Pass E Cut \n",icalo);
//.......................................
// TOF cut, BE CAREFUL WITH THIS CUT
TString GetCalorimeter() const {return fCalorimeter ; }
void SetCalorimeter(TString & det) {fCalorimeter = det ; }
-
// ** Cluster selection methods **
void SetMinDistanceToBadChannel(Float_t m1, Float_t m2, Float_t m3) {
for(Int_t icell=0; icell<fNCellNCuts; icell++){
for(Int_t iasym=0; iasym<fNAsymCuts; iasym++){
Int_t index = ((ipt*fNCellNCuts)+icell)*fNAsymCuts + iasym;
- if(p1->Pt() > fPtCuts[ipt] && p2->Pt() > fPtCuts[ipt] &&
+ if(p1->E() > fPtCuts[ipt] && p2->E() > fPtCuts[ipt] &&
a < fAsymCuts[iasym] &&
ncell1 >= fCellNCuts[icell] && ncell2 >= fCellNCuts[icell]){
fhRePtNCellAsymCuts[index]->Fill(pt,m) ;