AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 class TMap;
20 class TClonesArray;
21 class AliMUONVCalibParam;
22 class AliMUONTriggerLut;
26 class AliMUONRejectList;
27 class AliMUONRecoParam;
28 class TH1;
29 class AliMergeableCollection;
30 
31 namespace AliMUONCDB
32 {
33  Bool_t CheckOCDB(Bool_t pathOnly = kFALSE);
34  Bool_t CheckMapping(Bool_t segmentationOnly = kFALSE);
35 
36  Double_t MeanHVValueForDCSAlias(TMap& hvMap, const char* hvChannel);
37 
38  void CheckHV(Int_t runNumber, Int_t verbose=0);
39  void CheckHV_ALIROOT_6402(const char* runlist, Bool_t verbose=kFALSE);
40  Bool_t CheckHV_ALIROOT_6402(Int_t runNumber, Bool_t verbose=kFALSE);
41  Bool_t IsSt1DCSAliasRemapped(const TString& name);
42  void PatchHV(TMap& hvMap, TList* messages, Bool_t onlySt1remapped=kFALSE);
43 
44  Bool_t LoadField();
45  Bool_t LoadMapping(Bool_t segmentationOnly = kFALSE);
47  TClonesArray* LoadAlignmentData();
48 
49  void AddDCSValue ( TMap& aliasMap, Int_t imeas, const char* smt, const char* sInOut, Int_t rpc, Float_t value );
50 
51  Int_t MakeHVStore(TMap& aliasMap, Bool_t defaultValues);
52  Int_t MakeLVStore(TMap& aliasMap, Bool_t defaultValues, time_t refTime);
53 
54  Int_t MakeTriggerDCSStore(TMap& aliasMap);
55  Int_t MakePedestalStore(AliMUONVStore& pedestalStore, Bool_t defaultValues);
56  Int_t MakeOccupancyMapStore(AliMUONVStore& occupancyMap, Bool_t defaultValues);
57  Int_t MakeBusPatchEvolution(AliMergeableCollection& bpevo, int timeResolution=60);
58 
59  AliMUONRejectList* MakeRejectListStore(Bool_t defaultValues);
60 
64 
65  AliMUONTriggerLut* MakeTriggerLUT(const char* file="$(ALICE_ROOT)/MUON/data/lutAptLpt1Hpt1p7.root");
66  AliMUONTriggerEfficiencyCells* MakeTriggerEfficiency(const char* file="$ALICE_ROOT/MUON/data/efficiencyCells.dat");
67 
68  AliMUONVStore* Diff(AliMUONVStore& store1, AliMUONVStore& store2, const char* opt="abs");
69 
70  TH1** Plot(const AliMUONVStore& store, const char* name, Int_t nbins=512);
71 
72  void ReadIntegers(const char* filename, std::vector<int>& integers);
73 
74  void ShowConfig(Bool_t withStatusMap=kFALSE);
75 
76  void ShowFaultyBusPatches(const char* runlist,
77  double occLimit=0.1,
78  const char* outputBaseName="faulty.buspatches",
79  const char* ocdbPath="raw://");
80 
81  void WriteToCDB(const char* calibpath, TObject* object,
82  Int_t startRun, Int_t endRun, Bool_t defaultValues);
83  void WriteToCDB(const char* calibpath, TObject* object,
84  Int_t startRun, Int_t endRun, const char* filename);
85  void WriteToCDB(TObject* object, const char* calibpath, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity(),
86  const char* comment="", const char* responsible="AliMUONCDB tester class");
87 
88  void WriteMapping(Int_t startRun=0,Int_t endRun=AliCDBRunRange::Infinity());
89 
90  void WriteTrigger(Bool_t defaultValues=kTRUE, Int_t startRun=0,Int_t endRun=AliCDBRunRange::Infinity());
91  void WriteTracker(Bool_t defaultValues=kTRUE, Int_t startRun=0,Int_t endRun=AliCDBRunRange::Infinity());
92 
93  void WriteHV(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity());
94  void WriteHV(const char* inputFile, Int_t runNumber);
95 
96  void WriteLV(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity(), time_t refTime=1449969676);
97  void WritePedestals(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity());
98  void WriteOccupancyMap(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity());
99  void WriteRejectList(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity());
100  void WriteConfig(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity());
101  void WriteBPEVO(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity());
102 
103  void WriteLocalTriggerMasks(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity());
104  void WriteRegionalTriggerConfig(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity());
105  void WriteGlobalTriggerConfig(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity());
106 
107  void WriteTriggerDCS(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity());
108  void WriteTriggerLut(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity());
109  void WriteTriggerEfficiency(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity());
110 }
111 
112 #endif
void WriteLV(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity(), time_t refTime=1449969676)
The class defines the configuration of global crate.
void WritePedestals(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity())
void WriteHV(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity())
AliMUONRejectList * MakeRejectListStore(Bool_t defaultValues)
void WriteTriggerEfficiency(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity())
void WriteTriggerLut(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity())
AliMUONTriggerLut * MakeTriggerLUT(const char *file="$(ALICE_ROOT)/MUON/data/lutAptLpt1Hpt1p7.root")
Bool_t IsSt1DCSAliasRemapped(const TString &name)
Definition: AliMUONCDB.cxx:473
void CheckHV(Int_t runNumber, Int_t verbose=0)
Definition: AliMUONCDB.cxx:213
TClonesArray * LoadAlignmentData()
Definition: AliMUONCDB.cxx:592
static TString comment
Definition: ConfigCosmic.C:131
Int_t MakeLVStore(TMap &aliasMap, Bool_t defaultValues, time_t refTime)
Definition: AliMUONCDB.cxx:876
Store and give access to the trigger chamber efficiency.
Int_t MakeLocalTriggerMaskStore(AliMUONVStore &ltm)
void WriteGlobalTriggerConfig(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity())
Int_t MakePedestalStore(AliMUONVStore &pedestalStore, Bool_t defaultValues)
void CheckHV_ALIROOT_6402(const char *runlist, Bool_t verbose=kFALSE)
Definition: AliMUONCDB.cxx:351
Class with MUON reconstruction parameters.
Int_t MakeTriggerDCSStore(TMap &aliasMap)
Definition: AliMUONCDB.cxx:962
void WriteTriggerDCS(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity())
Bool_t LoadField()
Definition: AliMUONCDB.cxx:498
void ShowFaultyBusPatches(const char *runlist, double occLimit=0.1, const char *outputBaseName="faulty.buspatches", const char *ocdbPath="raw://")
void AddDCSValue(TMap &aliasMap, Int_t imeas, const char *smt, const char *sInOut, Int_t rpc, Float_t value)
Definition: AliMUONCDB.cxx:945
Container of calibration values for a given number of channels.
AliMUONTriggerEfficiencyCells * MakeTriggerEfficiency(const char *file="$ALICE_ROOT/MUON/data/efficiencyCells.dat")
void WriteOccupancyMap(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity())
void WriteConfig(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity())
Int_t MakeRegionalTriggerConfigStore(AliMUONRegionalTriggerConfig &rtm)
Int_t MakeHVStore(TMap &aliasMap, Bool_t defaultValues)
Definition: AliMUONCDB.cxx:812
AliMUONVStore * Diff(AliMUONVStore &store1, AliMUONVStore &store2, const char *opt="abs")
Definition: AliMUONCDB.cxx:617
void ShowConfig(Bool_t withStatusMap=kFALSE)
TH1 ** Plot(const AliMUONVStore &store, const char *name, Int_t nbins=512)
Definition: AliMUONCDB.cxx:686
Int_t MakeBusPatchEvolution(AliMergeableCollection &bpevo, int timeResolution=60)
Definition: AliMUONCDB.cxx:760
void WriteTracker(Bool_t defaultValues=kTRUE, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity())
Int_t MakeGlobalTriggerConfigStore(AliMUONGlobalCrateConfig &gtm)
Int_t MakeOccupancyMapStore(AliMUONVStore &occupancyMap, Bool_t defaultValues)
void WriteTrigger(Bool_t defaultValues=kTRUE, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity())
void WriteMapping(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity())
Bool_t CheckMapping(Bool_t segmentationOnly=kFALSE)
Definition: AliMUONCDB.cxx:451
void WriteRejectList(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity())
TArrayI runlist(10000)
Object to hold the list of elements we want to reject from the reconstruction.
void WriteBPEVO(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity())
void WriteLocalTriggerMasks(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity())
void ReadIntegers(const char *filename, std::vector< int > &integers)
Bool_t CheckOCDB(Bool_t pathOnly=kFALSE)
Definition: AliMUONCDB.cxx:189
Double_t MeanHVValueForDCSAlias(TMap &hvMap, const char *hvChannel)
Base class for MUON data stores.
Definition: AliMUONVStore.h:22
Bool_t LoadMapping(Bool_t segmentationOnly=kFALSE)
Definition: AliMUONCDB.cxx:522
void WriteRegionalTriggerConfig(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity())
MUON trigger look up table class.
void PatchHV(TMap &hvMap, TList *messages, Bool_t onlySt1remapped=kFALSE)
The class defines the properties of regional trigger crate.
void WriteToCDB(const char *calibpath, TObject *object, Int_t startRun, Int_t endRun, Bool_t defaultValues)
AliMUONRecoParam * LoadRecoParam()
Definition: AliMUONCDB.cxx:555