]>
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" |
9e7c4517 | 16 | #include <vector> |
de01cdf0 | 17 | |
a0eca509 | 18 | class AliMUONVStore; |
de01cdf0 | 19 | class TMap; |
73d3aca5 | 20 | class TClonesArray; |
de01cdf0 | 21 | class AliMUONVCalibParam; |
22 | class AliMUONTriggerLut; | |
23 | class AliMUONTriggerEfficiencyCells; | |
92c23b09 | 24 | class AliMUONRegionalTriggerConfig; |
25 | class AliMUONGlobalCrateConfig; | |
0045b488 | 26 | class AliMUONRejectList; |
a99c3449 | 27 | class AliMUONRecoParam; |
b37b9546 | 28 | class TH1; |
de01cdf0 | 29 | |
a99c3449 | 30 | namespace AliMUONCDB |
de01cdf0 | 31 | { |
a99c3449 | 32 | Bool_t CheckOCDB(Bool_t pathOnly = kFALSE); |
33 | Bool_t CheckMapping(Bool_t segmentationOnly = kFALSE); | |
de01cdf0 | 34 | |
b37b9546 | 35 | void CheckHV(Int_t runNumber, Int_t verbose=0); |
36 | ||
a99c3449 | 37 | Bool_t LoadField(); |
38 | Bool_t LoadMapping(Bool_t segmentationOnly = kFALSE); | |
39 | AliMUONRecoParam* LoadRecoParam(); | |
73d3aca5 | 40 | TClonesArray* LoadAlignmentData(); |
046e5fd4 | 41 | |
a0eca509 | 42 | Int_t MakeNeighbourStore(AliMUONVStore& neighbourStore); |
de01cdf0 | 43 | |
44 | Int_t MakeHVStore(TMap& aliasMap, Bool_t defaultValues); | |
49e110ec | 45 | Int_t MakeTriggerDCSStore(TMap& aliasMap, Bool_t defaultValues); |
a0eca509 | 46 | Int_t MakePedestalStore(AliMUONVStore& pedestalStore, Bool_t defaultValues); |
47 | Int_t MakeCapacitanceStore(AliMUONVStore& capaStore, Bool_t defaultValues); | |
25e1df3e | 48 | Int_t MakeCapacitanceStore(AliMUONVStore& capaStore, const char* file); |
a0eca509 | 49 | Int_t MakeGainStore(AliMUONVStore& gainStore, Bool_t defaultValues); |
0045b488 | 50 | Int_t MakeOccupancyMapStore(AliMUONVStore& occupancyMap, Bool_t defaultValues); |
51 | AliMUONRejectList* MakeRejectListStore(Bool_t defaultValues); | |
de01cdf0 | 52 | |
a99c3449 | 53 | Int_t MakeLocalTriggerMaskStore(AliMUONVStore& ltm); |
54 | Int_t MakeRegionalTriggerConfigStore(AliMUONRegionalTriggerConfig& rtm); | |
55 | Int_t MakeGlobalTriggerConfigStore(AliMUONGlobalCrateConfig& gtm); | |
92c23b09 | 56 | |
a99c3449 | 57 | AliMUONTriggerLut* MakeTriggerLUT(const char* file="$(ALICE_ROOT)/MUON/data/lutAptLpt1Hpt1p7.root"); |
58 | AliMUONTriggerEfficiencyCells* MakeTriggerEfficiency(const char* file="$ALICE_ROOT/MUON/data/efficiencyCells.dat"); | |
de01cdf0 | 59 | |
a99c3449 | 60 | AliMUONVStore* Diff(AliMUONVStore& store1, AliMUONVStore& store2, const char* opt="abs"); |
61 | ||
b37b9546 | 62 | TH1** Plot(const AliMUONVStore& store, const char* name, Int_t nbins=512); |
de01cdf0 | 63 | |
9e7c4517 | 64 | void ReadIntegers(const char* filename, std::vector<int>& integers); |
65 | ||
207947f7 | 66 | void ShowConfig(Bool_t withStatusMap=kFALSE); |
5148da98 | 67 | |
c241bfaa | 68 | void ShowCapacitances(); |
69 | ||
9e7c4517 | 70 | void ShowFaultyBusPatches(const char* runlist, |
71 | double occLimit=0.1, | |
72 | const char* outputBaseName="faulty.buspatches", | |
73 | const char* ocdbPath="raw://"); | |
74 | ||
a99c3449 | 75 | void WriteToCDB(const char* calibpath, TObject* object, |
de01cdf0 | 76 | Int_t startRun, Int_t endRun, Bool_t defaultValues); |
a99c3449 | 77 | void WriteToCDB(const char* calibpath, TObject* object, |
25e1df3e | 78 | Int_t startRun, Int_t endRun, const char* filename); |
913f1b43 | 79 | void WriteToCDB(TObject* object, const char* calibpath, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity(), |
a99c3449 | 80 | const char* comment="", const char* responsible="AliMUONCDB tester class"); |
de01cdf0 | 81 | |
49e110ec | 82 | void WriteTrigger(Bool_t defaultValues=kTRUE, Int_t startRun=0,Int_t endRun=AliCDBRunRange::Infinity()); |
2bedeab9 | 83 | void WriteTracker(Bool_t defaultValues=kTRUE, Int_t startRun=0,Int_t endRun=AliCDBRunRange::Infinity()); |
de01cdf0 | 84 | |
2bedeab9 | 85 | void WriteNeighbours(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); |
b59c04ef | 86 | void WriteHV(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); |
2bedeab9 | 87 | void WritePedestals(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); |
88 | void WriteGains(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); | |
89 | void WriteCapacitances(Bool_t defaultValues, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); | |
90 | void WriteCapacitances(const char* file, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); | |
7eafe398 | 91 | void WriteOccupancyMap(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); |
0045b488 | 92 | void WriteRejectList(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); |
a31df857 | 93 | void WriteConfig(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); |
94 | ||
2bedeab9 | 95 | void WriteLocalTriggerMasks(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); |
92c23b09 | 96 | void WriteRegionalTriggerConfig(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); |
97 | void WriteGlobalTriggerConfig(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); | |
98 | ||
a99c3449 | 99 | void WriteTriggerDCS(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); |
2bedeab9 | 100 | void WriteTriggerLut(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); |
101 | void WriteTriggerEfficiency(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); | |
a99c3449 | 102 | } |
de01cdf0 | 103 | |
104 | #endif |