7 #include <TLorentzVector.h> 11 #include "AliVEvent.h" 12 #include "AliVCluster.h" 15 #include "AliVVZERO.h" 16 #include "AliESDUtils.h" 26 fMaxDistance2(0.0225),
27 fTriggerBits(AliVEvent::kEMCEJE),
28 fTaskSettingsOk(kFALSE),
36 for (
Int_t i = 0; i < 999; i++) {
37 fTrigPos[i][0] = -999;
38 fTrigPos[i][1] = -999;
46 fMaxDistance2(0.0225),
47 fTriggerBits(AliVEvent::kEMCEJE),
48 fTaskSettingsOk(kFALSE),
56 for (
Int_t i = 0; i < 999; i++) {
71 fVZERO = InputEvent()->GetVZEROData();
73 AliError(Form(
"%s: AliVVZERO not available, task will not be executed!",GetName()));
78 AliError(Form(
"%s: No cluster collection provided, task will not be executed!",GetName()));
83 AliError(Form(
"%s: No jet collection provided, task will not be executed!",GetName()));
88 AliError(Form(
"%s: No threshold function provided, task will not be executed!",GetName()));
131 for (
Int_t i = 0; i < nclusters; i++) {
133 AliError(
"More than 999 triggers found!");
143 if (cluster->E() > th) {
145 cluster->GetMomentum(vect,
fVertex);
162 for (
Int_t i = 0; i < njets; i++) {
172 if (!jet)
return kFALSE;
178 Double_t d2 = deta * deta + dphi * dphi;
AliVVZERO * fVZERO
(eta,phi) trigger positions in the current event
void ExecOnce()
Perform steps needed to initialize the analysis.
Double_t fTrigPos[999][2]
number of triggers in the current event
Bool_t Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.
Int_t GetNJets(Int_t i=0) const
Bool_t IsTriggerJet(AliEmcalJet *jet)
AliJetTriggerSelectionTask()
Bool_t RetrieveEventObjects()
TClonesArray * GetJetArray(Int_t i=0) const
Int_t fNTriggers
if false, don't execute task
Bool_t RetrieveEventObjects()
Retrieve common objects from event.
Double_t fCent
!event centrality
Int_t GetNClusters(Int_t i=0) const
Get number of clusters in the cluster container attached to this task with index i.
AliEmcalJet * GetAcceptJetFromArray(Int_t j, Int_t c=0) const
TObjArray fJetCollArray
jet collection array
Double_t fV0ATotMult
Event V0 object.
Double_t fVertex[3]
!event vertex
TClonesArray * GetClusterArray(Int_t i=0) const
Get TClonesArray with EMCAL clusters.
Base task in the EMCAL jet framework.
Represent a jet reconstructed using the EMCal jet framework.
void AddTrigger(UInt_t trigger)
AliVCluster * GetAcceptClusterFromArray(Int_t cl, Int_t c=0) const
Get cluster cl if accepted from container c If particle not accepted return 0.
Double_t fV0CTotMult
Event V0A total multiplicity.