]>
Commit | Line | Data |
---|---|---|
a7ae9b24 | 1 | //_________________________________________________________________________ |
2 | // Utility Class for transverse energy studies | |
3 | // Class for determining physics selection | |
4 | // - reconstruction and MonteCarlo output | |
5 | // | |
6 | //*-- Authors: Oystein Djuvsland (Bergen) | |
7 | //_________________________________________________________________________// | |
17110fb4 | 8 | #ifndef ALIANALYSISETSELECTIONCONTAINER_H |
9 | #define ALIANALYSISETSELECTIONCONTAINER_H | |
10 | ||
11 | #include "TNamed.h" | |
12 | #include <map> | |
13 | ||
14 | ||
a7ae9b24 | 15 | |
16 | class AliPhysicsSelection; | |
17110fb4 | 17 | |
18 | class AliAnalysisEtSelectionContainer : public TNamed | |
19 | { | |
20 | public: | |
21 | ||
22 | /** Constructor */ | |
23 | AliAnalysisEtSelectionContainer(); | |
24 | ||
25 | /** Constructor */ | |
26 | AliAnalysisEtSelectionContainer(const char *name); | |
27 | ||
28 | /** Destructor */ | |
29 | virtual ~AliAnalysisEtSelectionContainer(); | |
30 | ||
31 | /** Return the physics selection for the current run */ | |
537e541d | 32 | AliPhysicsSelection* GetPhysicsSelection(Int_t runNumber) { return fPhysicsSelectionMap[runNumber]; } |
17110fb4 | 33 | |
34 | /** Return the physics selection for the current run */ | |
537e541d | 35 | AliPhysicsSelection* GetDefaultPhysicsSelection() { return fPhysicsSelectionMap[0]; } |
17110fb4 | 36 | |
37 | /** Get the map */ | |
38 | std::map<int, AliPhysicsSelection*> GetPhysicsSelectionMap() const { return fPhysicsSelectionMap; } | |
39 | ||
40 | /** Add the default selection to the map */ | |
41 | void AddDefaultSelection(AliPhysicsSelection *selection) { fPhysicsSelectionMap.insert(std::pair<int, AliPhysicsSelection*>(0, selection)); } | |
42 | ||
43 | /** Add a physics selection to the map */ | |
44 | void AddPhysicsSelection(AliPhysicsSelection *selection, Int_t runNumber) { fPhysicsSelectionMap.insert(std::pair<int, AliPhysicsSelection*>(runNumber, selection)); } | |
45 | ||
46 | /** Copy constructor */ | |
47 | AliAnalysisEtSelectionContainer(const AliAnalysisEtSelectionContainer& other); | |
48 | ||
49 | /** Assignment operator */ | |
50 | AliAnalysisEtSelectionContainer& operator=(const AliAnalysisEtSelectionContainer& other); | |
51 | ||
52 | private: | |
53 | ||
54 | std::map<int, AliPhysicsSelection*> fPhysicsSelectionMap; // The physics selection map | |
55 | ||
56 | ClassDef(AliAnalysisEtSelectionContainer, 1); | |
57 | ||
58 | }; | |
59 | ||
60 | #endif // ALIANALYSISETSELECTIONCONTAINER_H |