fEtaMax(0),
fPtMin(0),
fPtMax(0),
+ fPartSpecies(-1),
fCentralityMin(0),
fCentralityMax(0),
fZVtxMin(0),
fEtaMax(0),
fPtMin(0),
fPtMax(0),
+ fPartSpecies(-1),
fCentralityMin(0),
fCentralityMax(0),
fZVtxMin(0),
target.fEtaMax = fEtaMax;
target.fPtMin = fPtMin;
target.fPtMax = fPtMax;
+ target.fPartSpecies = fPartSpecies;
target.fCentralityMin = fCentralityMin;
target.fCentralityMax = fCentralityMax;
target.fZVtxMin = fZVtxMin;
sourceContainer->GetGrid(step1)->SetRangeUser(1, fPtMin, fPtMax);
sourceContainer->GetGrid(step2)->SetRangeUser(1, fPtMin, fPtMax);
}
+ if (fPartSpecies != -1 && axis1 != 2 && axis2 != 2 && axis3 != 2)
+ {
+ Printf("Restricted to particle species %d", fPartSpecies);
+ sourceContainer->GetGrid(step1)->SetRangeUser(2, fPartSpecies, fPartSpecies);
+ sourceContainer->GetGrid(step2)->SetRangeUser(2, fPartSpecies, fPartSpecies);
+ }
if (fCentralityMax > fCentralityMin && axis1 != 3 && axis2 != 3 && axis3 != 3)
{
Printf("Restricted centrality range to %f %f", fCentralityMin, fCentralityMax);
void SetEtaRange(Float_t etaMin, Float_t etaMax) { fEtaMin = etaMin; fEtaMax = etaMax; }
void SetPtRange(Float_t ptMin, Float_t ptMax) { fPtMin = ptMin; fPtMax = ptMax; }
+ void SetPartSpecies(Int_t species) { fPartSpecies = species;}
void SetCentralityRange(Float_t min, Float_t max) { fCentralityMin = min; fCentralityMax = max; }
void SetZVtxRange(Float_t min, Float_t max) { fZVtxMin = min; fZVtxMax = max; }
Float_t fEtaMax; // eta max for projections
Float_t fPtMin; // pT min for projections (for track pT, not pT,lead)
Float_t fPtMax; // pT max for projections (for track pT, not pT,lead)
+ Int_t fPartSpecies; // Particle species for projections
Float_t fCentralityMin; // centrality min for projections
Float_t fCentralityMax; // centrality max for projections
Float_t fZVtxMin; // z vtx min for projections
TString fHistogramType; // what is stored in this histogram
- ClassDef(AliUEHist, 12) // underlying event histogram container
+ ClassDef(AliUEHist, 13) // underlying event histogram container
};
#endif
GetUEHist(i)->SetPtRange(ptMin, ptMax);
}
+//____________________________________________________________________
+void AliUEHistograms::SetPartSpecies(Int_t species)
+{
+ // sets PartSpecie for all contained AliUEHist classes
+
+ for (Int_t i=0; i<fgkUEHists; i++)
+ if (GetUEHist(i))
+ GetUEHist(i)->SetPartSpecies(species);
+}
+
//____________________________________________________________________
void AliUEHistograms::SetZVtxRange(Float_t min, Float_t max)
{
void SetEtaRange(Float_t etaMin, Float_t etaMax);
void SetPtRange(Float_t ptMin, Float_t ptMax);
+ void SetPartSpecies(Int_t species);
void SetZVtxRange(Float_t min, Float_t max);
void SetContaminationEnhancement(TH1F* hist);
void SetCombineMinMax(Bool_t flag);