AliRoot Core  edcc906 (edcc906)
AliMUONCDB.h
Go to the documentation of this file.
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 
12 // Author Laurent Aphecetche
13 
14 #include <TString.h>
15 #include "AliCDBRunRange.h"
16 #include <vector>
17 
18 class AliMUONVStore;
19 
20 class TMap;
21 
22 class TClonesArray;
23 
24 class AliMUONVCalibParam;
25 
26 class AliMUONTriggerLut;
27 
29 
31 
33 
34 class AliMUONRejectList;
35 
36 class AliMUONRecoParam;
37 
38 class TH1;
39 
41 
42 namespace AliMUONCDB {
43 Bool_t CheckOCDB(Bool_t pathOnly = kFALSE);
44 
45 Bool_t CheckMapping(Bool_t segmentationOnly = kFALSE);
46 
47 Double_t MeanHVValueForDCSAlias(TMap &hvMap, const char *hvChannel);
48 
49 void CheckHV(Int_t runNumber, Int_t verbose = 0);
50 
51 void CheckHV_ALIROOT_6402(const char *runlist, Bool_t verbose = kFALSE);
52 
53 Bool_t CheckHV_ALIROOT_6402(Int_t runNumber, Bool_t verbose = kFALSE);
54 
55 Bool_t IsSt1DCSAliasRemapped(const TString &name);
56 
57 void PatchHV(TMap &hvMap, TList *messages, Bool_t onlySt1remapped = kFALSE);
58 
59 Bool_t LoadField();
60 
61 Bool_t LoadMapping(Bool_t segmentationOnly = kFALSE);
62 
64 
65 TClonesArray *LoadAlignmentData();
66 
67 void AddDCSValue(TMap &aliasMap, Int_t imeas, const char *smt, const char *sInOut, Int_t rpc, Float_t value);
68 
69 Int_t MakeHVStore(TMap &aliasMap, Bool_t defaultValues);
70 
71 Int_t MakeLVStore(TMap &aliasMap, Bool_t defaultValues, time_t refTime);
72 
73 Int_t MakeTriggerDCSStore(TMap &aliasMap);
74 
75 Int_t MakePedestalStore(AliMUONVStore &pedestalStore, Bool_t defaultValues);
76 
77 Int_t MakeOccupancyMapStore(AliMUONVStore &occupancyMap, Bool_t defaultValues);
78 
79 Int_t MakeBusPatchEvolution(AliMergeableCollection &bpevo, int timeResolution = 60);
80 
81 AliMUONRejectList *MakeRejectListStore(Bool_t defaultValues);
82 
84 
86 
88 
89 AliMUONTriggerLut *MakeTriggerLUT(const char *file = "$(ALICE_ROOT)/MUON/data/lutAptLpt1Hpt1p7.root");
90 
91 AliMUONTriggerEfficiencyCells *MakeTriggerEfficiency(const char *file = "$ALICE_ROOT/MUON/data/efficiencyCells.dat");
92 
93 AliMUONVStore *Diff(AliMUONVStore &store1, AliMUONVStore &store2, const char *opt = "abs");
94 
95 TH1 **Plot(const AliMUONVStore &store, const char *name, Int_t nbins = 512);
96 
97 void ReadIntegers(const char *filename, std::vector<int> &integers);
98 
99 void ShowConfig(Bool_t withStatusMap = kFALSE);
100 
101 void ShowFaultyPedestalsBusPatches(const char *runlist,
102  double fractionLimit = 0.9,
103  double meanLimit = 4000,
104  double sigmaLimit = 4000,
105  double outputFractionLimit = 0.5,
106  const char *outputBaseName = "",
107  const char *ocdbPath = "raw://");
108 
109 void ShowFaultyBusPatches(const char *runlist,
110  double occLimit = 0.1,
111  const char *outputBaseName = "faulty.buspatches",
112  const char *ocdbPath = "raw://");
113 
114 void WriteToCDB(const char *calibpath, TObject *object,
115  Int_t startRun, Int_t endRun, Bool_t defaultValues);
116 
117 void WriteToCDB(const char *calibpath, TObject *object,
118  Int_t startRun, Int_t endRun, const char *filename);
119 
120 void WriteToCDB(TObject *object, const char *calibpath, Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity(),
121  const char *comment = "", const char *responsible = "AliMUONCDB tester class");
122 
123 void WriteMapping(Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity());
124 
125 void WriteTrigger(Bool_t defaultValues = kTRUE, Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity());
126 
127 void WriteTracker(Bool_t defaultValues = kTRUE, Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity());
128 
129 void WriteHV(Bool_t defaultValues, Int_t startRun, Int_t endRun = AliCDBRunRange::Infinity());
130 
131 void WriteHV(const char *inputFile, Int_t runNumber);
132 
133 void
134 WriteLV(Bool_t defaultValues, Int_t startRun, Int_t endRun = AliCDBRunRange::Infinity(), time_t refTime = 1449969676);
135 
136 void WritePedestals(Bool_t defaultValues, Int_t startRun, Int_t endRun = AliCDBRunRange::Infinity());
137 
138 void WriteOccupancyMap(Bool_t defaultValues, Int_t startRun, Int_t endRun = AliCDBRunRange::Infinity());
139 
140 void WriteRejectList(Bool_t defaultValues, Int_t startRun, Int_t endRun = AliCDBRunRange::Infinity());
141 
142 void WriteConfig(Int_t startRun, Int_t endRun = AliCDBRunRange::Infinity());
143 
144 void WriteBPEVO(Int_t startRun, Int_t endRun = AliCDBRunRange::Infinity());
145 
146 void WriteLocalTriggerMasks(Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity());
147 
148 void WriteRegionalTriggerConfig(Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity());
149 
150 void WriteGlobalTriggerConfig(Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity());
151 
152 void WriteTriggerDCS(Int_t startRun, Int_t endRun = AliCDBRunRange::Infinity());
153 
154 void WriteTriggerLut(Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity());
155 
156 void WriteTriggerEfficiency(Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity());
157 }
158 
159 #endif
The class defines the configuration of global crate.
Bool_t CheckOCDB(Bool_t pathOnly)
Definition: AliMUONCDB.cxx:193
Int_t MakeBusPatchEvolution(AliMergeableCollection &hc, int timeResolution)
Definition: AliMUONCDB.cxx:723
AliMUONRejectList * MakeRejectListStore(Bool_t defaultValues)
void WriteLocalTriggerMasks(Int_t startRun, Int_t endRun)
Bool_t IsSt1DCSAliasRemapped(const TString &name)
Definition: AliMUONCDB.cxx:456
void CheckHV_ALIROOT_6402(const char *runlist, Bool_t verbose)
Definition: AliMUONCDB.cxx:343
TClonesArray * LoadAlignmentData()
Definition: AliMUONCDB.cxx:572
static TString comment
Definition: ConfigCosmic.C:131
Int_t MakeLVStore(TMap &aliasMap, Bool_t defaultValues, time_t refTime)
Definition: AliMUONCDB.cxx:833
Store and give access to the trigger chamber efficiency.
void WriteTrigger(Bool_t defaultValues, Int_t startRun, Int_t endRun)
void WriteTriggerDCS(Int_t startRun, Int_t endRun)
Int_t MakePedestalStore(AliMUONVStore &pedestalStore, Bool_t defaultValues)
Helper functions to experience the OCDB.
AliMUONTriggerLut * MakeTriggerLUT(const char *file)
Int_t MakeLocalTriggerMaskStore(AliMUONVStore &localBoardMasks)
Class with MUON reconstruction parameters.
void ShowFaultyPedestalsBusPatches(const char *runlist, double fractionLimit, double meanLimit, double sigmaLimit, double outputFractionLimit, const char *outputBaseName, const char *ocdbPath)
Bool_t LoadMapping(Bool_t segmentationOnly)
Definition: AliMUONCDB.cxx:502
void CheckHV(Int_t runNumber, Int_t verbose)
Definition: AliMUONCDB.cxx:217
Int_t MakeTriggerDCSStore(TMap &aliasMap)
Definition: AliMUONCDB.cxx:909
void PatchHV(TMap &hvMap, TList *messages, Bool_t onlySt1remapped)
void WriteOccupancyMap(Bool_t defaultValues, Int_t startRun, Int_t endRun)
void WriteHV(const char *inputFile, Int_t runNumber)
void WritePedestals(Bool_t defaultValues, Int_t startRun, Int_t endRun)
Bool_t LoadField()
Definition: AliMUONCDB.cxx:478
AliMUONVStore * Diff(AliMUONVStore &store1, AliMUONVStore &store2, const char *opt)
Definition: AliMUONCDB.cxx:597
void WriteRegionalTriggerConfig(Int_t startRun, Int_t endRun)
void AddDCSValue(TMap &aliasMap, Int_t imeas, const char *smt, const char *sInOut, Int_t rpc, Float_t value)
Definition: AliMUONCDB.cxx:892
Container of calibration values for a given number of channels.
void WriteBPEVO(Int_t startRun, Int_t endRun)
void ShowFaultyBusPatches(const char *runlist, double occLimit, const char *outputBaseName, const char *ocdbPath)
Int_t MakeRegionalTriggerConfigStore(AliMUONRegionalTriggerConfig &rtm)
void WriteTriggerEfficiency(Int_t startRun, Int_t endRun)
Int_t MakeHVStore(TMap &aliasMap, Bool_t defaultValues)
Definition: AliMUONCDB.cxx:776
Int_t MakeGlobalTriggerConfigStore(AliMUONGlobalCrateConfig &gtm)
void WriteMapping(Int_t startRun, Int_t endRun)
void WriteLV(Bool_t defaultValues, Int_t startRun, Int_t endRun, time_t refTime)
void WriteToCDB(const char *calibpath, TObject *object, Int_t startRun, Int_t endRun, const char *filename)
AliMUONTriggerEfficiencyCells * MakeTriggerEfficiency(const char *file)
TH1 ** Plot(const AliMUONVStore &store, const char *name, Int_t nbins)
Definition: AliMUONCDB.cxx:655
void WriteGlobalTriggerConfig(Int_t startRun, Int_t endRun)
Int_t MakeOccupancyMapStore(AliMUONVStore &occupancyMapStore, Bool_t defaultValues)
void WriteConfig(Int_t startRun, Int_t endRun)
TArrayI runlist(10000)
void WriteTriggerLut(Int_t startRun, Int_t endRun)
Object to hold the list of elements we want to reject from the reconstruction.
static Int_t runNumber
Definition: pdc06_config.C:126
void ReadIntegers(const char *filename, std::vector< int > &integers)
Bool_t CheckMapping(Bool_t segmentationOnly)
Definition: AliMUONCDB.cxx:434
Double_t MeanHVValueForDCSAlias(TMap &hvMap, const char *hvChannel)
void WriteTracker(Bool_t defaultValues, Int_t startRun, Int_t endRun)
void ShowConfig(Bool_t withStatusMap)
void WriteRejectList(Bool_t defaultValues, Int_t startRun, Int_t endRun)
Base class for MUON data stores.
Definition: AliMUONVStore.h:22
MUON trigger look up table class.
The class defines the properties of regional trigger crate.
static Int_t Infinity()
AliMUONRecoParam * LoadRecoParam()
Definition: AliMUONCDB.cxx:535