AliPhysics  ced2227 (ced2227)
AliEmcalJetUtilityConstSubtractor.h
Go to the documentation of this file.
1 #ifndef ALIEMCALJETUTILITYCONSTSUBTRACTOR_H
2 #define ALIEMCALJETUTILITYCONSTSUBTRACTOR_H
3 
4 #include <TNamed.h>
5 
6 #include "AliEmcalJetUtility.h"
7 #include "AliFJWrapper.h"
8 
9 class TClonesArray;
10 class AliEmcalJetTask;
11 class AliEmcalJet;
12 class AliFJWrapper;
13 class AliRhoParameter;
14 
16 {
17  public:
18 
20  AliEmcalJetUtilityConstSubtractor(const char* name);
24 
25  void SetRhoName(const char *n) { fRhoName = n ; }
26  void SetRhomName(const char *n) { fRhomName = n ; }
28 
29  void SetJetsSubName(const char *n) { fJetsSubName = n ; }
30  void SetParticlesSubName(const char *n) { fParticlesSubName = n ; }
31  void SetAlpha(const Double_t a) { fAlpha = a ; }
32  void SetMaxDelR(const Double_t r) { fMaxDelR = r ; }
33 
34  void Init();
35  void InitEvent(AliFJWrapper& fjw);
36  void Prepare(AliFJWrapper& fjw);
37  void ProcessJet(AliEmcalJet* jet, Int_t ij, AliFJWrapper& fjw);
38  void Terminate(AliFJWrapper& fjw);
39 
40  protected:
41 
42  TString fJetsSubName; // name of subtracted jet collection
43  TString fParticlesSubName; // name of subtracted particle collection
44  Bool_t fUseExternalBkg; // use external background for generic subtractor
45  TString fRhoName; // name of rho
46  TString fRhomName; // name of rhom
47  Double_t fRho; // pT background density
48  Double_t fRhom; // mT background density
49  Double_t fAlpha; // pT weight exponent applied in const sub
50  Double_t fMaxDelR; // Max distance between ghost and constituent pair in subtraction
51 
52  TClonesArray *fJetsSub;
53  TClonesArray *fParticlesSub;
56 
57  ClassDef(AliEmcalJetUtilityConstSubtractor, 2) // Emcal jet utility that implements the constituent subtractor form the fastjet contrib
58 };
59 #endif
double Double_t
Definition: External.C:58
AliEmcalJetUtilityConstSubtractor & operator=(const AliEmcalJetUtilityConstSubtractor &jet)
General jet finder task implementing a wrapper for FastJet.
TClonesArray * fParticlesSub
subtracted jet collection
int Int_t
Definition: External.C:63
void ProcessJet(AliEmcalJet *jet, Int_t ij, AliFJWrapper &fjw)
AliRhoParameter * fRhoParam
subtracted particle collection
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:51
bool Bool_t
Definition: External.C:53