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