message: fix config when not running trigger sim
diff: @@ -96,8 +96,10 @@ AliAnalysisTaskEmcalDijetImbalance::AliAnalysisTaskEmcalDijetImbalance() :
  Dijet_t fMatchingDijet;
  // Configure base class to set fTriggerPatchInfo to array of trigger patches, each event
  + if (fDoTriggerSimulation) {
  this->SetCaloTriggerPatchInfoName("EmcalTriggers");
  }
  +}
  /**
  * Standard constructor. Should be used by the user.
  @@ -150,8 +152,10 @@ AliAnalysisTaskEmcalDijetImbalance::AliAnalysisTaskEmcalDijetImbalance(const cha
  Dijet_t fMatchingDijet;
  // Configure base class to set fTriggerPatchInfo to array of trigger patches, each event
  + if (fDoTriggerSimulation) {
  this->SetCaloTriggerPatchInfoName("EmcalTriggers");
  }
  +}
  /**
  * Destructor
  @@ -969,12 +973,12 @@ void AliAnalysisTaskEmcalDijetImbalance::AllocateCaloHistograms()
  hn->GetAxis(i)->SetTitle(title[i]);
  hn->SetBinEdges(i, binEdges[i]);
  }
  - }
  // (jet type, jet pT, cluster shift)
  histname = TString::Format("%s/hCaloJESshift", jets->GetArrayName().Data());
  htitle = histname + ";type;#it{p}_{T}^{corr} (GeV/#it{c});#Delta_{JES}";
  fHistManager.CreateTH3(histname.Data(), htitle.Data(), 3, -0.5, 2.5, nPtBins, 0, fMaxPt, 100, 0, 20);
  + }
  }
  @@ -1165,21 +1169,6 @@ void AliAnalysisTaskEmcalDijetImbalance::ExecOnce()
  fNeedEmcalGeom = kTRUE;
  - // Check if trigger patches are loaded
  - if (fTriggerPatchInfo) {
  - TString objname(fTriggerPatchInfo->GetClass()->GetName());
  - TClass cls(objname);
  - if (!cls.InheritsFrom("AliEMCALTriggerPatchInfo")) {
  - AliError(Form("%s: Objects of type %s in %s are not inherited from AliEMCALTriggerPatchInfo!",
  - GetName(), cls.GetName(), "EmcalTriggers"));
  - fTriggerPatchInfo = 0;
  - }
  - }
  - if (!fTriggerPatchInfo) {
  - AliError(Form("%s: Unable to get trigger patch container with name %s. Aborting", GetName(), "EmcalTriggers"));
  - return;
  - }
  -
  // Load the PHOS geometry
  if (fDoCaloStudy) {
  fPHOSGeo = AliPHOSGeometry::GetInstance();
  @@ -1207,6 +1196,24 @@ void AliAnalysisTaskEmcalDijetImbalance::ExecOnce()
  }
  }
  }
  + Printf("here? %d", fDoTriggerSimulation);
  +
  + // Check if trigger patches are loaded
  + if (fDoTriggerSimulation) {
  + if (fTriggerPatchInfo) {
  + TString objname(fTriggerPatchInfo->GetClass()->GetName());
  + TClass cls(objname);
  + if (!cls.InheritsFrom("AliEMCALTriggerPatchInfo")) {
  + AliError(Form("%s: Objects of type %s in %s are not inherited from AliEMCALTriggerPatchInfo!",
  + GetName(), cls.GetName(), "EmcalTriggers"));
  + fTriggerPatchInfo = 0;
  + }
  + }
  + if (!fTriggerPatchInfo) {
  + AliError(Form("%s: Unable to get trigger patch container with name %s. Aborting", GetName(), "EmcalTriggers"));
  + return;
  + }
  + }
  AliInfo(Form("Trigger jet threshold = %f, Associated jet threshold = %f", fMinTrigJetPt, fMinAssJetPt));
  AliInfo(Form("Leading hadron threshold (for dijet leading jet): %f GeV", fDijetLeadingHadronPt));
  