7 #include <TClonesArray.h>
8 #include <TLorentzVector.h>
11 #include "AliAnalysisManager.h"
12 #include "AliVEvent.h"
13 #include "AliVCluster.h"
14 #include "AliEMCALDigit.h"
15 #include "AliEMCALRecPoint.h"
17 #include "AliEMCALGeometry.h"
31 SetSuffix(
"Randomized");
58 AliWarning(
"fCopyArray == kFALSE not allowed for AliJetRandomizerTask, will set kTRUE");
78 const Int_t nClusters =
fClusters->GetEntriesFast();
79 for (Int_t i = 0; i < nClusters; ++i) {
80 AliVCluster *cluster =
dynamic_cast<AliVCluster*
>(
fClusters->At(i));
83 if (!cluster->IsEMCAL())
87 cluster->GetPosition(pos);
88 TVector3 clusVec(pos);
98 const Int_t nTracks =
fTracks->GetEntriesFast();
99 for (Int_t i = 0; i < nTracks; ++i) {
void UserExec(Option_t *)
TClonesArray * fClusters
! cluster collection
TClonesArray * fOutClusters
! output cluster collection
Bool_t fIsInit
! =true if initialized
Base class for embedding into an event.
TClonesArray * fOutTracks
! output track collection
Int_t fNTracks
how many tracks are being processed
virtual ~AliJetRandomizerTask()
Int_t fNClusters
how many clusters are being processed
Bool_t fCopyArray
whether or not the array will be copied to a new one before modelling
AliVCluster * AddCluster(Double_t e=-1, Double_t eta=-999, Double_t phi=-1, Int_t label=0)
add a cell with given energy, position and times
void SetSuffix(const char *s)
AliPicoTrack * AddTrack(Double_t pt=-999, Double_t eta=-999, Double_t phi=-999, Byte_t type=0, Double_t etaemc=0, Double_t phiemc=0, Double_t ptemc=0, Bool_t ise=kFALSE, Int_t label=0, Short_t charge=1, Double_t mass=0.1396)
add a cluster (copy)
TClonesArray * fTracks
! track collection
virtual Bool_t ExecOnce()
generate a particle with random eta,phi, and correlated pt,mass values
ClassImp(AliJetRandomizerTask) AliJetRandomizerTask