12 fParticlesSubName(""),
13 fUseExternalBkg(kFALSE),
31 fParticlesSubName(
""),
32 fUseExternalBkg(kFALSE),
48 fJetsSubName(other.fJetsSubName),
49 fParticlesSubName(other.fParticlesSubName),
50 fUseExternalBkg(other.fUseExternalBkg),
51 fRhoName(other.fRhoName),
52 fRhomName(other.fRhomName),
55 fJetsSub(other.fJetsSub),
56 fParticlesSub(other.fParticlesSub),
57 fRhoParam(other.fRhoParam),
58 fRhomParam(other.fRhomParam)
68 if (&other ==
this)
return *
this;
91 fJetsSub =
new TClonesArray(
"AliEmcalJet");
96 AliError(Form(
"%s: Object for subtracted jet branch with name %s already in event! Returning", GetName(),
fJetsSubName.Data()));
108 AliError(Form(
"%s: Object with name %s already in event! Returning", GetName(),
fParticlesSubName.Data()));
116 AliError(Form(
"%s: Could not retrieve rho %s!", GetName(),
fRhoName.Data()));
124 AliError(Form(
"%s: Could not retrieve rho_m %s!", GetName(),
fRhomName.Data()));
182 AliWarning(Form(
"No jet branch to write to for subtracted jets. fJetsSubName: %s",
fJetsSubName.Data()));
186 #ifdef FASTJET_VERSION
187 std::vector<fastjet::PseudoJet> jets_sub;
188 jets_sub = fjw.GetConstituentSubtrJets();
189 AliDebug(1,Form(
"%d constituent subtracted jets found", (
Int_t)jets_sub.size()));
190 for (
UInt_t ijet = 0, jetCount = 0; ijet < jets_sub.size(); ++ijet) {
192 if(jets_sub[ijet].E()>0.) {
194 AliEmcalJet(jets_sub[ijet].perp(), jets_sub[ijet].eta(), jets_sub[ijet].phi(), jets_sub[ijet].m());
206 std::vector<fastjet::PseudoJet> constituents_sub = jets_sub[ijet].constituents();
fastjet::PseudoJet GetJetAreaVector(UInt_t idx) const
void SetUseExternalBkg(Bool_t b, Double_t rho, Double_t rhom)
void InitEvent(AliFJWrapper &fjw)
AliEmcalJetUtility & operator=(const AliEmcalJetUtility &jet)
AliEmcalJetUtilityConstSubtractor & operator=(const AliEmcalJetUtilityConstSubtractor &jet)
void Prepare(AliFJWrapper &fjw)
AliEmcalJetUtilityConstSubtractor()
TString fParticlesSubName
TClonesArray * fParticlesSub
subtracted jet collection
AliRhoParameter * fRhomParam
event rho
void SetJetAcceptanceType(UInt_t type)
UInt_t FindJetAcceptanceType(Double_t eta, Double_t phi, Double_t r)
ClassImp(AliEmcalJetUtilityConstSubtractor) AliEmcalJetUtilityConstSubtractor
AliParticleContainer * AddParticleContainer(const char *n)
Create new particle container and attach it to the task.
void Terminate(AliFJWrapper &fjw)
Double_t Phi_0_2pi() const
AliEmcalJetTask * fJetTask
std::vector< fastjet::PseudoJet > GetJetConstituents(UInt_t idx) const
void SetAreaEta(Double_t a)
void ProcessJet(AliEmcalJet *jet, Int_t ij, AliFJWrapper &fjw)
AliRhoParameter * fRhoParam
subtracted particle collection
virtual Int_t DoConstituentSubtraction()
void FillJetConstituents(AliEmcalJet *jet, std::vector< fastjet::PseudoJet > &constituents, std::vector< fastjet::PseudoJet > &constituents_sub, Int_t flag=0, TString particlesSubName="")
Represent a jet reconstructed using the EMCal jet framework.
void SetAreaPhi(Double_t a)
void SetAreaEmc(Double_t a)