]>
Commit | Line | Data |
---|---|---|
de01cdf0 | 1 | #ifndef ALIMUONCDB_H |
2 | #define ALIMUONCDB_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | /// \ingroup base | |
9 | /// \class AliMUONCDB | |
10 | /// \brief Helper class to experience the OCDB | |
11 | /// | |
12 | // Author Laurent Aphecetche | |
13 | ||
14 | #include <TObject.h> | |
15 | #include <TString.h> | |
2bedeab9 | 16 | #include "AliCDBRunRange.h" |
de01cdf0 | 17 | |
a0eca509 | 18 | class AliMUONVStore; |
19 | class AliMUONVStore; | |
de01cdf0 | 20 | class TMap; |
21 | class AliMUONVCalibParam; | |
22 | class AliMUONTriggerLut; | |
23 | class AliMUONTriggerEfficiencyCells; | |
24 | ||
de01cdf0 | 25 | class AliMUONCDB : public TObject |
26 | { | |
27 | public: | |
28 | /// Ctor. change the path for testing the Shuttle preprocessor, to | |
29 | /// "local://$ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB" | |
30 | AliMUONCDB(const char* cdbpath = "local://$ALICE_ROOT"); | |
31 | virtual ~AliMUONCDB(); | |
32 | ||
046e5fd4 | 33 | void SetMaxNofChannelsToGenerate(Int_t n); |
34 | ||
a0eca509 | 35 | Int_t MakeNeighbourStore(AliMUONVStore& neighbourStore); |
de01cdf0 | 36 | |
37 | Int_t MakeHVStore(TMap& aliasMap, Bool_t defaultValues); | |
a0eca509 | 38 | Int_t MakePedestalStore(AliMUONVStore& pedestalStore, Bool_t defaultValues); |
39 | Int_t MakeCapacitanceStore(AliMUONVStore& capaStore, Bool_t defaultValues); | |
25e1df3e | 40 | Int_t MakeCapacitanceStore(AliMUONVStore& capaStore, const char* file); |
a0eca509 | 41 | Int_t MakeGainStore(AliMUONVStore& gainStore, Bool_t defaultValues); |
de01cdf0 | 42 | |
a0eca509 | 43 | Int_t MakeLocalTriggerMaskStore(AliMUONVStore& ltm) const; |
44 | Int_t MakeRegionalTriggerMaskStore(AliMUONVStore& rtm) const; | |
de01cdf0 | 45 | Int_t MakeGlobalTriggerMaskStore(AliMUONVCalibParam& gtm) const; |
46 | AliMUONTriggerLut* MakeTriggerLUT(const char* file="$(ALICE_ROOT)/MUON/data/lutAptLpt1Hpt1p7.root") const; | |
47 | AliMUONTriggerEfficiencyCells* MakeTriggerEfficiency(const char* file="$ALICE_ROOT/MUON/data/efficiencyCells.dat") const; | |
48 | ||
49 | /// Compute the difference between two (compatible) stores | |
a0eca509 | 50 | AliMUONVStore* Diff(AliMUONVStore& store1, AliMUONVStore& store2, |
de01cdf0 | 51 | const char* opt="abs"); |
52 | ||
a0eca509 | 53 | void Plot(const AliMUONVStore& store, const char* name, Int_t nbins=512); |
de01cdf0 | 54 | |
55 | void WriteToCDB(const char* calibpath, TObject* object, | |
56 | Int_t startRun, Int_t endRun, Bool_t defaultValues); | |
25e1df3e | 57 | void WriteToCDB(const char* calibpath, TObject* object, |
58 | Int_t startRun, Int_t endRun, const char* filename); | |
de01cdf0 | 59 | |
2bedeab9 | 60 | void WriteTrigger(Int_t startRun=0,Int_t endRun=AliCDBRunRange::Infinity()); |
61 | void WriteTracker(Bool_t defaultValues=kTRUE, Int_t startRun=0,Int_t endRun=AliCDBRunRange::Infinity()); | |
de01cdf0 | 62 | |
2bedeab9 | 63 | void WriteNeighbours(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); |
de01cdf0 | 64 | void WriteHV(Bool_t defaultValues, Int_t startRun, Int_t endRun); |
2bedeab9 | 65 | void WritePedestals(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); |
66 | void WriteGains(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); | |
67 | void WriteCapacitances(Bool_t defaultValues, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); | |
68 | void WriteCapacitances(const char* file, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); | |
de01cdf0 | 69 | |
2bedeab9 | 70 | void WriteLocalTriggerMasks(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); |
71 | void WriteRegionalTriggerMasks(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); | |
72 | void WriteGlobalTriggerMasks(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); | |
73 | void WriteTriggerLut(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); | |
74 | void WriteTriggerEfficiency(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); | |
de01cdf0 | 75 | |
76 | private: | |
ef447c30 | 77 | /// Not implemented |
78 | AliMUONCDB(const AliMUONCDB& rhs); | |
79 | /// Not implemented | |
de01cdf0 | 80 | AliMUONCDB& operator=(const AliMUONCDB& rhs); |
81 | ||
82 | private: | |
83 | TString fCDBPath; //!< where to write stuff | |
046e5fd4 | 84 | Int_t fMaxNofChannelsToGenerate; //!< to limit the number of generated channels (debug) |
de01cdf0 | 85 | |
86 | ClassDef(AliMUONCDB,0) // Helper class to experience OCDB | |
87 | }; | |
88 | ||
89 | #endif |