]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONCDB.h
Adding missing include
[u/mrichter/AliRoot.git] / MUON / AliMUONCDB.h
CommitLineData
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
8/// \ingroup base
9/// \class AliMUONCDB
10/// \brief Helper class to experience the OCDB
11///
12// Author Laurent Aphecetche
13
14#include <TObject.h>
15#include <TString.h>
16
17class TList;
a0eca509 18class AliMUONVStore;
19class AliMUONVStore;
de01cdf0 20class TMap;
21class AliMUONVCalibParam;
22class AliMUONTriggerLut;
23class AliMUONTriggerEfficiencyCells;
24
25#define ALIMUONCDBINFINITY 99999999
26
27class AliMUONCDB : public TObject
28{
29public:
30 /// Ctor. change the path for testing the Shuttle preprocessor, to
31 /// "local://$ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB"
32 AliMUONCDB(const char* cdbpath = "local://$ALICE_ROOT");
33 virtual ~AliMUONCDB();
34
a0eca509 35 Int_t MakeNeighbourStore(AliMUONVStore& neighbourStore);
de01cdf0 36
37 Int_t MakeHVStore(TMap& aliasMap, Bool_t defaultValues);
a0eca509 38 Int_t MakePedestalStore(AliMUONVStore& pedestalStore, Bool_t defaultValues);
39 Int_t MakeCapacitanceStore(AliMUONVStore& capaStore, Bool_t defaultValues);
40 Int_t MakeGainStore(AliMUONVStore& gainStore, Bool_t defaultValues);
de01cdf0 41
a0eca509 42 Int_t MakeLocalTriggerMaskStore(AliMUONVStore& ltm) const;
43 Int_t MakeRegionalTriggerMaskStore(AliMUONVStore& rtm) const;
de01cdf0 44 Int_t MakeGlobalTriggerMaskStore(AliMUONVCalibParam& gtm) const;
45 AliMUONTriggerLut* MakeTriggerLUT(const char* file="$(ALICE_ROOT)/MUON/data/lutAptLpt1Hpt1p7.root") const;
46 AliMUONTriggerEfficiencyCells* MakeTriggerEfficiency(const char* file="$ALICE_ROOT/MUON/data/efficiencyCells.dat") const;
47
48 /// Compute the difference between two (compatible) stores
a0eca509 49 AliMUONVStore* Diff(AliMUONVStore& store1, AliMUONVStore& store2,
de01cdf0 50 const char* opt="abs");
51
a0eca509 52 void Plot(const AliMUONVStore& store, const char* name, Int_t nbins=512);
de01cdf0 53
54 void WriteToCDB(const char* calibpath, TObject* object,
55 Int_t startRun, Int_t endRun, Bool_t defaultValues);
56
57 void WriteTrigger(Int_t startRun=0,Int_t endRun=ALIMUONCDBINFINITY);
58 void WriteTracker(Bool_t defaultValues=kTRUE, Int_t startRun=0,Int_t endRun=ALIMUONCDBINFINITY);
59
60 void WriteNeighbours(Int_t startRun=0, Int_t endRun=ALIMUONCDBINFINITY);
61 void WriteHV(Bool_t defaultValues, Int_t startRun, Int_t endRun);
62 void WritePedestals(Bool_t defaultValues, Int_t startRun, Int_t endRun=ALIMUONCDBINFINITY);
63 void WriteGains(Bool_t defaultValues, Int_t startRun, Int_t endRun=ALIMUONCDBINFINITY);
64 void WriteCapacitances(Bool_t defaultValues, Int_t startRun=0, Int_t endRun=ALIMUONCDBINFINITY);
65
66 void WriteLocalTriggerMasks(Int_t startRun=0, Int_t endRun=ALIMUONCDBINFINITY);
67 void WriteRegionalTriggerMasks(Int_t startRun=0, Int_t endRun=ALIMUONCDBINFINITY);
68 void WriteGlobalTriggerMasks(Int_t startRun=0, Int_t endRun=ALIMUONCDBINFINITY);
69 void WriteTriggerLut(Int_t startRun=0, Int_t endRun=ALIMUONCDBINFINITY);
70 void WriteTriggerEfficiency(Int_t startRun=0, Int_t endRun=ALIMUONCDBINFINITY);
71
72private:
ef447c30 73 /// Not implemented
74 AliMUONCDB(const AliMUONCDB& rhs);
75 /// Not implemented
de01cdf0 76 AliMUONCDB& operator=(const AliMUONCDB& rhs);
77
a0eca509 78 TList* ManuList();
79
de01cdf0 80private:
81 TString fCDBPath; //!< where to write stuff
82 TList* fManuList; //!< full list of manus
de01cdf0 83
84 ClassDef(AliMUONCDB,0) // Helper class to experience OCDB
85};
86
87#endif