Go from pointer to ifstream to ifstream.
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackerConditionDataMaker.h
CommitLineData
ca913045 1#ifndef ALIMUONTRACKERCONDITIONDATAMAKER_H
2#define ALIMUONTRACKERCONDITIONDATAMAKER_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5* See cxx source for full Copyright notice */
6
7// $Id$
8
9/// \ingroup rec
10/// \class AliMUONTrackerConditionDataMaker
11/// \brief Producer of AliMUONVTrackerData from OCDB or ASCII condition files
12///
949d9006 13// Author Laurent Aphecetche
ca913045 14
15#ifndef ALIMUONVTRACKERDATAMAKER_H
16# include "AliMUONVTrackerDataMaker.h"
17#endif
18#ifndef ROOT_TString
19# include "TString.h"
20#endif
21
22class AliMUONVStore;
23class TMap;
24
25class AliMUONTrackerConditionDataMaker : public AliMUONVTrackerDataMaker
26{
27public:
9641f73a 28 AliMUONTrackerConditionDataMaker();
ca913045 29 AliMUONTrackerConditionDataMaker(Int_t runNumber, const char* ocdbPath, const char* type);
30 AliMUONTrackerConditionDataMaker(const char* filename, const char* type);
31 AliMUONTrackerConditionDataMaker(const char* data, const char* type, Bool_t);
32 virtual ~AliMUONTrackerConditionDataMaker();
33
34 static AliMUONVStore* CreateStore(Int_t runNumber, const char* source, const char* type, Int_t& startOfValidity);
35
36 static AliMUONVTrackerData* CreateData(const char* type, AliMUONVStore& source, Int_t startOfValidity);
37
b3d57767 38 virtual void SetOwnerOfData(Bool_t flag) { fIsOwnerOfData = flag; }
39
ca913045 40 /// Whether we've been properly initialized or not
41 Bool_t IsValid() const { return (fData != 0x0); }
42
43 /// Return our data
44 virtual AliMUONVTrackerData* Data() const { return fData; }
45
46 /// We are not runnable (i.e. # of event is fixed = 1)
47 virtual Bool_t IsRunnable() const { return kFALSE; }
48
49 /// We cannot be running as we are not runnable...
50 virtual Bool_t IsRunning() const { return kFALSE; }
51
52 /// N/A
53 virtual void SetRunning(Bool_t /*flag*/) {}
54
55 /// N/A
56 virtual Bool_t ProcessEvent() { return kTRUE; }
57
58 /// N/A
59 virtual void Rewind() { }
60
61 /// Set our source URI
62 virtual void SetSource(const char* source) { fSource = source; }
63
64 /// Get our source URI
65 virtual TString Source() const { return fSource.Data(); }
66
67 /// Number of events is always 1
68 Int_t NumberOfEvents() const { return 1; }
69
70 virtual Long64_t Merge(TCollection* li);
71
72private:
949d9006 73 /// Not implemented
ca913045 74 AliMUONTrackerConditionDataMaker(const AliMUONTrackerConditionDataMaker& rhs);
949d9006 75 /// Not implemented
ca913045 76 AliMUONTrackerConditionDataMaker& operator=(const AliMUONTrackerConditionDataMaker& rhs);
77
78 static AliMUONVStore* CreateHVStore(TMap& m);
79 static AliMUONVStore* CreateStatusMapStore(Int_t runNumber);
80 static AliMUONVStore* CreateStatusStore(Int_t runNumber);
81 static AliMUONVStore* PatchGainStore(const AliMUONVStore& gains);
82 static AliMUONVStore* ExpandConfig(const AliMUONVStore& config);
83
84private:
85 AliMUONVTrackerData* fData; ///< our data
86 TString fSource; ///< source name
b3d57767 87 Bool_t fIsOwnerOfData; ///< is fData ours or not
ca913045 88
b3d57767 89 ClassDef(AliMUONTrackerConditionDataMaker,2) // Producer of AliMUONVTrackerData from condition data (either OCDB or ascii files)
ca913045 90};
91
92#endif
93