]>
Commit | Line | Data |
---|---|---|
762e8424 | 1 | #ifndef ALIJETMODELBASETASK_H |
2 | #define ALIJETMODELBASETASK_H | |
3 | ||
4 | // $Id$ | |
5 | ||
6 | class TClonesArray; | |
7 | class AliEMCALGeometry; | |
8 | class AliVCluster; | |
9 | class AliPicoTrack; | |
e44e8726 | 10 | class TF1; |
762e8424 | 11 | |
12 | #include "AliAnalysisTaskSE.h" | |
13 | ||
14 | class AliJetModelBaseTask : public AliAnalysisTaskSE { | |
15 | public: | |
16 | AliJetModelBaseTask(); | |
17 | AliJetModelBaseTask(const char *name); | |
18 | virtual ~AliJetModelBaseTask(); | |
19 | ||
ffe32451 | 20 | void UserExec(Option_t* /*option*/); |
762e8424 | 21 | |
ffe32451 | 22 | void SetClusName(const char *n) { fCaloName = n; } |
ffe32451 | 23 | void SetCopyArray(Bool_t copy) { fCopyArray = copy; } |
a825589f | 24 | void SetEtaRange(Float_t min, Float_t max) { fEtaMin = min; fEtaMax = max; } |
25 | void SetGeometryName(const char *n) { fGeomName = n; } | |
26 | void SetMarkMC(Bool_t m) { fMarkMC = m; } | |
ffe32451 | 27 | void SetNClusters(Int_t n) { fNClusters = n; } |
28 | void SetNTracks(Int_t n) { fNTracks = n; } | |
a825589f | 29 | void SetPhiRange(Float_t min, Float_t max) { fPhiMin = min; fPhiMax = max; } |
30 | void SetPtRange(Float_t min, Float_t max) { fPtMin = min; fPtMax = max; } | |
ffe32451 | 31 | void SetPtSpectrum(TF1 *f) { fPtSpectrum = f; } |
a825589f | 32 | void SetSuffix(const char *s) { fSuffix = s; } |
33 | void SetTracksName(const char *n) { fTracksName = n; } | |
762e8424 | 34 | |
35 | protected: | |
38f684a8 | 36 | AliVCluster *AddCluster(Double_t e = -1, Double_t eta = -999, Double_t phi = -1); // add a cluster; if values are -1 generate random parameters |
37 | AliVCluster *AddCluster(Double_t e, Int_t absId); // add a cluster with given energy and position | |
38 | AliPicoTrack *AddTrack(Double_t pt = -1, Double_t eta = -999, Double_t phi = -1); // add a track; if values are -1 generate random parameters | |
e44e8726 | 39 | void CopyClusters(); |
40 | void CopyTracks(); | |
ffe32451 | 41 | virtual void ExecOnce(); |
42 | void GetRandomCell(Double_t &eta, Double_t &phi, Int_t &absId); // generate a random cell in the calorimeter | |
43 | Double_t GetRandomEta(); // generate a random eta value in the given range | |
44 | Double_t GetRandomPhi(); // generate a random phi value in the given range | |
45 | Double_t GetRandomPt(); // generate a random pt value in the given range | |
46 | virtual void Run(); // do jet model action | |
762e8424 | 47 | |
48 | TString fGeomName; // EMCal geometry name | |
49 | TString fTracksName; // name of track collection | |
50 | TString fOutTracksName; // name of output track collection | |
51 | TString fCaloName; // name of calo cluster collection | |
52 | TString fOutCaloName; // name of output cluster collection | |
53 | TString fSuffix; // suffix to add in the name of new collections | |
54 | Float_t fEtaMin; // eta minimum value | |
55 | Float_t fEtaMax; // eta maximum value | |
56 | Float_t fPhiMin; // phi minimum value | |
57 | Float_t fPhiMax; // phi maximum value | |
58 | Float_t fPtMin; // pt minimum value | |
59 | Float_t fPtMax; // pt maximum value | |
60 | Bool_t fCopyArray; // whether or not the array will be copied to a new one before modelling | |
61 | Int_t fNClusters; // how many clusters are being processed | |
62 | Int_t fNTracks; // how many tracks are being processed | |
a825589f | 63 | Bool_t fMarkMC; // whether or not mark new tracks/cluster as MC |
e44e8726 | 64 | TF1 *fPtSpectrum; // pt spectrum parametrization to extract random pt values |
ffe32451 | 65 | Bool_t fIsInit; //=true if initialized |
762e8424 | 66 | AliEMCALGeometry *fGeom; //!pointer to EMCal geometry |
67 | TClonesArray *fClusters; //!cluster collection | |
68 | TClonesArray *fOutClusters; //!output cluster collection | |
69 | TClonesArray *fTracks; //!track collection | |
70 | TClonesArray *fOutTracks; //!output track collection | |
71 | ||
72 | private: | |
73 | AliJetModelBaseTask(const AliJetModelBaseTask&); // not implemented | |
74 | AliJetModelBaseTask &operator=(const AliJetModelBaseTask&); // not implemented | |
75 | ||
ffe32451 | 76 | ClassDef(AliJetModelBaseTask, 3) // Jet modelling task |
762e8424 | 77 | }; |
78 | #endif |