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