]>
Commit | Line | Data |
---|---|---|
a7ae9b24 | 1 | //_________________________________________________________________________ |
2 | // Utility Class for transverse energy studies | |
3 | // for handling event selection | |
4 | // | |
5 | // | |
6 | //*-- Authors: Oystein Djuvsland (Bergen) | |
7 | //_________________________________________________________________________// | |
17110fb4 | 8 | #include "AliAnalysisEtSelectionHandler.h" |
9 | #include "AliAnalysisEtSelectionContainer.h" | |
10 | #include "AliPhysicsSelection.h" | |
11 | #include "TFile.h" | |
12 | #include <iostream> | |
13 | ||
14 | ClassImp(AliAnalysisEtSelectionHandler); | |
15 | ||
16 | ||
17 | AliAnalysisEtSelectionHandler::AliAnalysisEtSelectionHandler() : | |
18 | fSelections(0) | |
19 | { | |
20 | ||
21 | } | |
22 | ||
23 | AliAnalysisEtSelectionHandler::AliAnalysisEtSelectionHandler(const char* name) : | |
24 | fSelections(0) | |
25 | { | |
26 | // Constructor | |
27 | TFile *mapFile = TFile::Open(name); | |
28 | ||
29 | //mapFile->Open(name); | |
30 | std::cout << name << " " << mapFile << "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" << std::endl; | |
31 | mapFile->ls(); | |
32 | fSelections = dynamic_cast<AliAnalysisEtSelectionContainer*>(mapFile->Get("physicsSelections")); | |
33 | ||
34 | } | |
35 | ||
36 | AliAnalysisEtSelectionHandler::~AliAnalysisEtSelectionHandler() | |
ea331c5d | 37 | { // Destructor |
38 | delete fSelections; | |
17110fb4 | 39 | } |
40 | ||
41 | AliAnalysisEtSelectionHandler::AliAnalysisEtSelectionHandler(const AliAnalysisEtSelectionHandler& other): TObject(other) | |
42 | ,fSelections(other.GetSelectionContainer()) | |
43 | { | |
44 | // Copy constructor | |
45 | } | |
46 | ||
47 | AliAnalysisEtSelectionHandler& AliAnalysisEtSelectionHandler::operator=(const AliAnalysisEtSelectionHandler& /*other*/) | |
48 | { | |
49 | // Assignment operator, not properly implemented | |
50 | return *this; | |
51 | } | |
a755b16d | 52 | |
53 | AliPhysicsSelection* AliAnalysisEtSelectionHandler::GetPhysicsSelection(Int_t runNumber) { //Returns physics selection | |
54 | return fSelections->GetPhysicsSelection(runNumber); | |
55 | } | |
56 | ||
57 | AliPhysicsSelection* AliAnalysisEtSelectionHandler::GetDefaultPhysicsSelection() { //returns default physics selection. | |
58 | return fSelections->GetDefaultPhysicsSelection(); | |
59 | } |