//________________________________________________________________________
AliAnalysisTaskEMCALPi0PbPb::AliAnalysisTaskEMCALPi0PbPb(const char *name)
: AliAnalysisTaskSE(name),
- fAsymMax(1),
fCentVar("V0M"),
fCentFrom(0),
fCentTo(100),
fClusName(),
fDoNtuple(0),
fDoAfterburner(0),
+ fAsymMax(1),
fNminCells(1),
+ fMinErat(0),
+ fMinEcc(0),
fNEvs(0),
fGeom(0),
fOutput(0),
fNtuple->Write();
}
- AliInfo(Form("\nAccepted %lld events", fNEvs));
+ AliInfo(Form("\n%s: Accepted %lld events", GetName(), fNEvs));
}
//________________________________________________________________________
GetSigma(clus,maxAxis,minAxis);
if (maxAxis > 0)
clusterEcc = TMath::Sqrt(1.0 - minAxis*minAxis/(maxAxis*maxAxis));
-
+ clus->SetChi2(clusterEcc); // store ecc in chi2
fHClustEccentricity->Fill(clusterEcc);
fHClustEtaPhi->Fill(clusterVec.Eta(),clusterVec.Phi());
fHClustEnergyPt->Fill(clusterVec.E(),clusterVec.Pt());
continue;
if (clus1->GetNCells()<fNminCells)
continue;
+ if (GetMaxCellEnergy(clus1)/clus1->E()<fMinErat)
+ continue;
+ if (clus1->Chi2()<fMinEcc)
+ continue;
clus1->GetMomentum(clusterVec1,vertex);
for (Int_t j = i+1; j<nclus; ++j) {
AliVCluster *clus2 = static_cast<AliVCluster*>(clusters->At(j));
continue;
if (clus2->GetNCells()<fNminCells)
continue;
+ if (GetMaxCellEnergy(clus2)/clus2->E()<fMinErat)
+ continue;
+ if (clus2->Chi2()<fMinEcc)
+ continue;
clus2->GetMomentum(clusterVec2,vertex);
pionVec = clusterVec1 + clusterVec2;
Double_t pionZgg = TMath::Abs(clusterVec1.E()-clusterVec2.E())/pionVec.E();
void SetClusName(const char *name) { fClusName = name; }
void SetDoAfterburner(Bool_t b) { fDoAfterburner = b; }
void SetFillNtuple(Bool_t b) { fDoNtuple = b; }
+ void SetMinEcc(Double_t ecc) { fMinEcc = ecc; }
+ void SetMinErat(Double_t erat) { fMinErat = erat; }
void SetNminCells(Int_t n) { fNminCells = n; }
void SetUseQualFlag(Bool_t b) { fUseQualFlag = b; }
void SetVertexRange(Double_t z1, Double_t z2) { fVtxZMin=z1; fVtxZMax=z2; }
void GetSigma(AliVCluster *c, Double_t &sigmaMax, Double_t &sigmaMin);
// input members
- Double_t fAsymMax; // energy asymmetry max (def=1)
TString fCentVar; // variable for centrality determination
Double_t fCentFrom; // min centrality (def=0)
Double_t fCentTo; // max centrality (def=100)
TString fClusName; // cluster branch name (def="")
Bool_t fDoNtuple; // if true write out ntuple
Bool_t fDoAfterburner; // if true run after burner
- Int_t fNminCells; // minimum number of cells attached to cluster
+ Double_t fAsymMax; // maximum energy asymmetry (def=1)
+ Int_t fNminCells; // minimum number of cells attached to cluster (def=1)
+ Double_t fMinErat; // minimum emax/ec ratio (def=0)
+ Double_t fMinEcc; // minimum eccentricity (def=0)
// derived members (ie with ! after //)
ULong64_t fNEvs; //!accepted events
AliEMCALGeoUtils *fGeom; //!geometry utils