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