1 #ifndef ALIFMDANAPARAMETERS_H
2 #define ALIFMDANAPARAMETERS_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
6 * Latest changes by Hans Hjersing Dalsgaard, NBI, hans.dalsgaard@cern.ch
8 * See cxx source for full Copyright notice
11 //The design of this class is based on the AliFMDParameters class. Its purpose
12 //is to hold parameters for the analysis such as background correction and
15 //Author: Hans Hjersing Dalsgaard, NBI, hans.dalsgaard@cern.ch
17 //____________________________________________________________________
25 #ifndef ALIFMDUSHORTMAP_H
26 # include <AliFMDUShortMap.h>
28 #ifndef ALIFMDBOOLMAP_H
29 # include <AliFMDBoolMap.h>
31 #include "AliCDBEntry.h"
34 #include "TObjArray.h"
39 //____________________________________________________________________
41 // Singleton class to handle various parameters (not geometry) of the
43 // Should get ata fromm Conditions DB.
46 class AliFMDAnaParameters : public TNamed
49 /** Enumeration of things to initialize */
52 kBackgroundCorrection = 0x1, // Background Correction
53 kEnergyDistributions = 0x2 // Energy Distributions
58 static AliFMDAnaParameters* Instance();
60 void Init(Bool_t forceReInit=kTRUE, UInt_t what=kBackgroundCorrection|kEnergyDistributions);
63 static const char* GetBackgroundPath() { return fgkBackgroundCorrection;}
64 static const char* GetEdistPath() { return fgkEnergyDists;}
65 TH2F* GetBackgroundCorrection(Int_t det, Char_t ring, Int_t vtxbin);
66 TH1F* GetEnergyDistribution(Int_t det, Char_t ring);
69 AliFMDAnaParameters();
71 AliFMDAnaParameters(const AliFMDAnaParameters& o)
74 fBackgroundArray(o.fBackgroundArray)
76 AliFMDAnaParameters& operator=(const AliFMDAnaParameters&) { return *this; }
77 virtual ~AliFMDAnaParameters() {}
79 static AliFMDAnaParameters* fgInstance; // Static singleton instance
81 AliCDBEntry* GetEntry(const char* path, Bool_t fatal=kTRUE) const ;
82 void InitBackground();
83 void InitEnergyDists();
85 TObjArray* GetBackgroundArray();
88 TObjArray* fBackgroundArray;
89 TObjArray* fEdistArray;
90 static const char* fgkBackgroundCorrection;
91 static const char* fgkEnergyDists;
92 ClassDef(AliFMDAnaParameters,0) // Manager of parameters
96 //____________________________________________________________________