]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGGA/EMCALJetTasks/AliJetEmbeddingTask.h
fixed coverity error
[u/mrichter/AliRoot.git] / PWGGA / EMCALJetTasks / AliJetEmbeddingTask.h
CommitLineData
44629b14 1#ifndef ALIJETEMBEDDINGTASK_H
2#define ALIJETEMBEDDINGTASK_H
3
4// $Id$
5
6class TClonesArray;
7class AliEMCALGeometry;
8
9#include "AliAnalysisTaskSE.h"
10
11class AliJetEmbeddingTask : public AliAnalysisTaskSE {
12 public:
13 AliJetEmbeddingTask();
14 AliJetEmbeddingTask(const char *name);
15 virtual ~AliJetEmbeddingTask();
16
17 void Init();
18 void UserExec(Option_t* /*option*/);
19 void Terminate(const Option_t* /*option*/) {;}
20
21 void SetClusName(const char *n) { fCaloName = n; }
22 void SetTracksName(const char *n) { fTracksName = n; }
23 void SetEtaRange(Float_t min, Float_t max) { fEtaMin = min; fEtaMax = max; }
24 void SetPhiRange(Float_t min, Float_t max) { fPhiMin = min; fPhiMax = max; }
25 void SetPtRange(Float_t min, Float_t max) { fPtMin = min; fPtMax = max; }
26 void SetCopyArray(Bool_t copy) { fCopyArray = copy; }
27 void SetNClusters(Int_t n) { fNEmbClusters = n; }
28 void SetNTracks(Int_t n) { fNEmbTracks = n; }
29 void SetGeometryName(const char *n) { fGeomName = n; }
30
31 protected:
32
33 virtual void Embed(); // do embedding
34
35 TString fGeomName; // EMCal geometry name
36 TString fTracksName; // name of track collection
37 TString fOutTracksName; // name of output track collection
38 TString fCaloName; // name of calo cluster collection
39 TString fOutCaloName; // name of output cluster collection
40 Float_t fEtaMin; // eta minimum value
41 Float_t fEtaMax; // eta maximum value
42 Float_t fPhiMin; // phi minimum value
43 Float_t fPhiMax; // phi maximum value
44 Float_t fPtMin; // pt minimum value
45 Float_t fPtMax; // pt maximum value
46 Bool_t fCopyArray; // whether or not the array will be copied to a new one before embedding
47 Int_t fNEmbClusters; // how many clusters are being embedded
48 Int_t fNEmbTracks; // how many tracks are being embedded
49 AliEMCALGeometry *fGeom; //!pointer to EMCal geometry
50 TClonesArray *fClusters; //!cluster collection
51 TClonesArray *fOutClusters; //!output cluster collection
52 TClonesArray *fTracks; //!track collection
53 TClonesArray *fOutTracks; //!output track collection
54
55 private:
56 AliJetEmbeddingTask(const AliJetEmbeddingTask&); // not implemented
57 AliJetEmbeddingTask &operator=(const AliJetEmbeddingTask&); // not implemented
58
59 ClassDef(AliJetEmbeddingTask, 1) // Jet embedding task
60};
61#endif