]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/MUONCDB.h
Macro to calculate the resolution and the efficiency of chamber(s) (Nicolas)
[u/mrichter/AliRoot.git] / MUON / MUONCDB.h
1 #ifndef MUONCDB_H
2 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  * See cxx source for full Copyright notice                               */
4
5 /* $Id$ */
6
7 /// By Laurent Aphecetche
8
9 #include "Rtypes.h"
10
11 class TList;
12 class AliMUONV1DStore;
13 class AliMUONV2DStore;
14
15 // Use the following for testing the Shuttle preprocessor
16 //static const char* CDBPath = "local://$ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB";
17 // Or this one for "normal" use
18 static const char* CDBPath = "local://$ALICE_ROOT";
19
20 void generateTrigger(const char* cdbpath=CDBPath);
21
22 void getBoundaries(const AliMUONV2DStore& store,
23                    Float_t& x0min, Float_t& x0max,
24                    Float_t& x1min, Float_t& x1max);
25
26 void plot(const AliMUONV2DStore& store, const char* name, Int_t nbins=512);
27
28 void plotCDB(const char* calibType="MUON/Calib/Pedestals", Int_t runNumber=0);
29
30 AliMUONV2DStore* diff(AliMUONV2DStore& store1, AliMUONV2DStore& store2, const char* opt="abs");
31
32 AliMUONV2DStore* read2D(const char* calibType="MUON/Calib/Pedestals", Int_t runNumber=0);
33
34 AliMUONV1DStore* read1D(const char* calibType="MUON/Calib/LocalBoardMasks", Int_t runNumber=0);
35
36 void testMakeStores(Int_t readLoop=10);
37
38 void writeToCDB(const char* cdbpath, const char* calibpath, TObject* object, 
39                 Int_t startRun, Int_t endRun, Bool_t defaultValues);
40
41 void writePedestals(const char* cdbpath, Bool_t defaultValues,
42                     Int_t startRun, Int_t endRun);
43
44 void writeGains(const char* cdbpath, Bool_t defaultValues,
45                 Int_t startRun, Int_t endRun);
46
47 void writeDeadChannels(const char* cdbpath, Bool_t defaultValues,
48                        Int_t startRun, Int_t endRun);
49
50 #endif