//__________________________________________________________________________
void AliEPSelectionTask::SetPhiDist()
{
- if(!fUserphidist) { // if it's already set and custom class is required, we use the one provided by the user
+ if(!fUserphidist && (fPeriod.CompareTo("LHC10h") == 0 || fPeriod.CompareTo("LHC11h") == 0)) { // if it's already set and custom class is required, we use the one provided by the user
if (fPeriod.CompareTo("LHC10h")==0)
{
if (!fPhiDist[0]) AliFatal(Form("Cannot find OADB phi distribution for run %d", fRunNumber));
}
- else {
- AliInfo("Using Custom Phi Distribution");
- }
+
if (fPeriod.CompareTo("LHC10h")==0 || fUserphidist){
Bool_t emptybins;
AliError("After Maximum of rebinning still empty Phi-bins!!!");
}
}
+ if (fPeriod.CompareTo("LHC10h") != 0 && fPeriod.CompareTo("LHC11h") != 0 && !fUserphidist){
+ AliInfo("No Phi-weights available. All Phi weights set to 1");
+ SetUsePhiWeight(kFALSE);
+ }
}
//__________________________________________________________________________
virtual void SetDebugLevel(Int_t level) {fDebug = level;}
void SetInput(const char* input) {fAnalysisInput = input;}
void SetUseMCRP() {fUseMCRP = kTRUE;}
- void SetUsePhiWeight() {fUsePhiWeight = kTRUE;}
+ void SetUsePhiWeight(Bool_t usephi = kTRUE){fUsePhiWeight = usephi;}
void SetUsePtWeight() {fUsePtWeight = kTRUE;}
void SetSaveTrackContribution() {fSaveTrackContribution = kTRUE;}
void SetTrackType(TString tracktype);