]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/totEt/AliAnalysisEtSelectionHandler.cxx
TOF pp spectra task added to PWGLFspectra lib
[u/mrichter/AliRoot.git] / PWGLF / totEt / AliAnalysisEtSelectionHandler.cxx
CommitLineData
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
14ClassImp(AliAnalysisEtSelectionHandler);
15
16
17AliAnalysisEtSelectionHandler::AliAnalysisEtSelectionHandler() :
18fSelections(0)
19{
20
21}
22
23AliAnalysisEtSelectionHandler::AliAnalysisEtSelectionHandler(const char* name) :
24fSelections(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
36AliAnalysisEtSelectionHandler::~AliAnalysisEtSelectionHandler()
ea331c5d 37{ // Destructor
38 delete fSelections;
17110fb4 39}
40
41AliAnalysisEtSelectionHandler::AliAnalysisEtSelectionHandler(const AliAnalysisEtSelectionHandler& other): TObject(other)
42,fSelections(other.GetSelectionContainer())
43{
44 // Copy constructor
45}
46
47AliAnalysisEtSelectionHandler& AliAnalysisEtSelectionHandler::operator=(const AliAnalysisEtSelectionHandler& /*other*/)
48{
49 // Assignment operator, not properly implemented
50 return *this;
51}
a755b16d 52
53AliPhysicsSelection* AliAnalysisEtSelectionHandler::GetPhysicsSelection(Int_t runNumber) { //Returns physics selection
54 return fSelections->GetPhysicsSelection(runNumber);
55}
56
57AliPhysicsSelection* AliAnalysisEtSelectionHandler::GetDefaultPhysicsSelection() { //returns default physics selection.
58 return fSelections->GetDefaultPhysicsSelection();
59}