]>
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 | ||
a99c3449 | 8 | /// \ingroup rec |
9 | /// \namespace AliMUONCDB | |
10 | /// \brief Helper functions to experience the OCDB | |
de01cdf0 | 11 | /// |
12 | // Author Laurent Aphecetche | |
13 | ||
de01cdf0 | 14 | #include <TString.h> |
2bedeab9 | 15 | #include "AliCDBRunRange.h" |
de01cdf0 | 16 | |
a0eca509 | 17 | class AliMUONVStore; |
de01cdf0 | 18 | class TMap; |
73d3aca5 | 19 | class TClonesArray; |
de01cdf0 | 20 | class AliMUONVCalibParam; |
21 | class AliMUONTriggerLut; | |
22 | class AliMUONTriggerEfficiencyCells; | |
92c23b09 | 23 | class AliMUONRegionalTriggerConfig; |
24 | class AliMUONGlobalCrateConfig; | |
0045b488 | 25 | class AliMUONRejectList; |
a99c3449 | 26 | class AliMUONRecoParam; |
de01cdf0 | 27 | |
a99c3449 | 28 | namespace AliMUONCDB |
de01cdf0 | 29 | { |
a99c3449 | 30 | Bool_t CheckOCDB(Bool_t pathOnly = kFALSE); |
31 | Bool_t CheckMapping(Bool_t segmentationOnly = kFALSE); | |
de01cdf0 | 32 | |
a99c3449 | 33 | Bool_t LoadField(); |
34 | Bool_t LoadMapping(Bool_t segmentationOnly = kFALSE); | |
35 | AliMUONRecoParam* LoadRecoParam(); | |
73d3aca5 | 36 | TClonesArray* LoadAlignmentData(); |
046e5fd4 | 37 | |
a0eca509 | 38 | Int_t MakeNeighbourStore(AliMUONVStore& neighbourStore); |
de01cdf0 | 39 | |
40 | Int_t MakeHVStore(TMap& aliasMap, Bool_t defaultValues); | |
49e110ec | 41 | Int_t MakeTriggerDCSStore(TMap& aliasMap, Bool_t defaultValues); |
a0eca509 | 42 | Int_t MakePedestalStore(AliMUONVStore& pedestalStore, Bool_t defaultValues); |
43 | Int_t MakeCapacitanceStore(AliMUONVStore& capaStore, Bool_t defaultValues); | |
25e1df3e | 44 | Int_t MakeCapacitanceStore(AliMUONVStore& capaStore, const char* file); |
a0eca509 | 45 | Int_t MakeGainStore(AliMUONVStore& gainStore, Bool_t defaultValues); |
0045b488 | 46 | Int_t MakeOccupancyMapStore(AliMUONVStore& occupancyMap, Bool_t defaultValues); |
47 | AliMUONRejectList* MakeRejectListStore(Bool_t defaultValues); | |
de01cdf0 | 48 | |
a99c3449 | 49 | Int_t MakeLocalTriggerMaskStore(AliMUONVStore& ltm); |
50 | Int_t MakeRegionalTriggerConfigStore(AliMUONRegionalTriggerConfig& rtm); | |
51 | Int_t MakeGlobalTriggerConfigStore(AliMUONGlobalCrateConfig& gtm); | |
92c23b09 | 52 | |
a99c3449 | 53 | AliMUONTriggerLut* MakeTriggerLUT(const char* file="$(ALICE_ROOT)/MUON/data/lutAptLpt1Hpt1p7.root"); |
54 | AliMUONTriggerEfficiencyCells* MakeTriggerEfficiency(const char* file="$ALICE_ROOT/MUON/data/efficiencyCells.dat"); | |
de01cdf0 | 55 | |
a99c3449 | 56 | AliMUONVStore* Diff(AliMUONVStore& store1, AliMUONVStore& store2, const char* opt="abs"); |
57 | ||
a0eca509 | 58 | void Plot(const AliMUONVStore& store, const char* name, Int_t nbins=512); |
de01cdf0 | 59 | |
a99c3449 | 60 | void WriteToCDB(const char* calibpath, TObject* object, |
de01cdf0 | 61 | Int_t startRun, Int_t endRun, Bool_t defaultValues); |
a99c3449 | 62 | void WriteToCDB(const char* calibpath, TObject* object, |
25e1df3e | 63 | Int_t startRun, Int_t endRun, const char* filename); |
913f1b43 | 64 | void WriteToCDB(TObject* object, const char* calibpath, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity(), |
a99c3449 | 65 | const char* comment="", const char* responsible="AliMUONCDB tester class"); |
de01cdf0 | 66 | |
49e110ec | 67 | void WriteTrigger(Bool_t defaultValues=kTRUE, Int_t startRun=0,Int_t endRun=AliCDBRunRange::Infinity()); |
2bedeab9 | 68 | void WriteTracker(Bool_t defaultValues=kTRUE, Int_t startRun=0,Int_t endRun=AliCDBRunRange::Infinity()); |
de01cdf0 | 69 | |
2bedeab9 | 70 | void WriteNeighbours(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); |
b59c04ef | 71 | void WriteHV(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); |
2bedeab9 | 72 | void WritePedestals(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); |
73 | void WriteGains(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); | |
74 | void WriteCapacitances(Bool_t defaultValues, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); | |
75 | void WriteCapacitances(const char* file, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); | |
7eafe398 | 76 | void WriteOccupancyMap(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); |
0045b488 | 77 | void WriteRejectList(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); |
a31df857 | 78 | void WriteConfig(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); |
79 | ||
2bedeab9 | 80 | void WriteLocalTriggerMasks(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); |
92c23b09 | 81 | void WriteRegionalTriggerConfig(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); |
82 | void WriteGlobalTriggerConfig(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); | |
83 | ||
a99c3449 | 84 | void WriteTriggerDCS(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); |
2bedeab9 | 85 | void WriteTriggerLut(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); |
86 | void WriteTriggerEfficiency(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); | |
a99c3449 | 87 | } |
de01cdf0 | 88 | |
89 | #endif |