]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONCDB.h
In addition to previous commits about OccupancyMap, we introduce here
[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>
2bedeab9 16#include "AliCDBRunRange.h"
de01cdf0 17
a0eca509 18class AliMUONVStore;
de01cdf0 19class TMap;
20class AliMUONVCalibParam;
21class AliMUONTriggerLut;
22class AliMUONTriggerEfficiencyCells;
92c23b09 23class AliMUONRegionalTriggerConfig;
24class AliMUONGlobalCrateConfig;
0045b488 25class AliMUONRejectList;
de01cdf0 26
de01cdf0 27class AliMUONCDB : public TObject
28{
29public:
30 /// Ctor. change the path for testing the Shuttle preprocessor, to
162637e4 31 /// "local://$ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestCDB"
32 AliMUONCDB(const char* cdbpath = "local://$ALICE_ROOT/OCDB");
de01cdf0 33 virtual ~AliMUONCDB();
34
046e5fd4 35 void SetMaxNofChannelsToGenerate(Int_t n);
36
a0eca509 37 Int_t MakeNeighbourStore(AliMUONVStore& neighbourStore);
de01cdf0 38
39 Int_t MakeHVStore(TMap& aliasMap, Bool_t defaultValues);
49e110ec 40 Int_t MakeTriggerDCSStore(TMap& aliasMap, Bool_t defaultValues);
a0eca509 41 Int_t MakePedestalStore(AliMUONVStore& pedestalStore, Bool_t defaultValues);
42 Int_t MakeCapacitanceStore(AliMUONVStore& capaStore, Bool_t defaultValues);
25e1df3e 43 Int_t MakeCapacitanceStore(AliMUONVStore& capaStore, const char* file);
a0eca509 44 Int_t MakeGainStore(AliMUONVStore& gainStore, Bool_t defaultValues);
0045b488 45 Int_t MakeOccupancyMapStore(AliMUONVStore& occupancyMap, Bool_t defaultValues);
46 AliMUONRejectList* MakeRejectListStore(Bool_t defaultValues);
de01cdf0 47
92c23b09 48 Int_t MakeLocalTriggerMaskStore(AliMUONVStore& ltm) const;
49 Int_t MakeRegionalTriggerConfigStore(AliMUONRegionalTriggerConfig& rtm) const;
50 Int_t MakeGlobalTriggerConfigStore(AliMUONGlobalCrateConfig& gtm) const;
51
de01cdf0 52 AliMUONTriggerLut* MakeTriggerLUT(const char* file="$(ALICE_ROOT)/MUON/data/lutAptLpt1Hpt1p7.root") const;
53 AliMUONTriggerEfficiencyCells* MakeTriggerEfficiency(const char* file="$ALICE_ROOT/MUON/data/efficiencyCells.dat") const;
54
55 /// Compute the difference between two (compatible) stores
a0eca509 56 AliMUONVStore* Diff(AliMUONVStore& store1, AliMUONVStore& store2,
de01cdf0 57 const char* opt="abs");
58
a0eca509 59 void Plot(const AliMUONVStore& store, const char* name, Int_t nbins=512);
de01cdf0 60
61 void WriteToCDB(const char* calibpath, TObject* object,
62 Int_t startRun, Int_t endRun, Bool_t defaultValues);
25e1df3e 63 void WriteToCDB(const char* calibpath, TObject* object,
64 Int_t startRun, Int_t endRun, const char* filename);
913f1b43 65 void WriteToCDB(TObject* object, const char* calibpath, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity(),
66 const char* comment="", const char* responsible="AliMUONCDB tester class");
de01cdf0 67
49e110ec 68 void WriteTrigger(Bool_t defaultValues=kTRUE, Int_t startRun=0,Int_t endRun=AliCDBRunRange::Infinity());
2bedeab9 69 void WriteTracker(Bool_t defaultValues=kTRUE, Int_t startRun=0,Int_t endRun=AliCDBRunRange::Infinity());
de01cdf0 70
2bedeab9 71 void WriteNeighbours(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity());
b59c04ef 72 void WriteHV(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity());
49e110ec 73 void WriteTriggerDCS(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity());
2bedeab9 74 void WritePedestals(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity());
75 void WriteGains(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity());
76 void WriteCapacitances(Bool_t defaultValues, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity());
77 void WriteCapacitances(const char* file, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity());
7eafe398 78 void WriteOccupancyMap(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity());
0045b488 79 void WriteRejectList(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity());
de01cdf0 80
2bedeab9 81 void WriteLocalTriggerMasks(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity());
92c23b09 82 void WriteRegionalTriggerConfig(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity());
83 void WriteGlobalTriggerConfig(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity());
84
2bedeab9 85 void WriteTriggerLut(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity());
86 void WriteTriggerEfficiency(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity());
de01cdf0 87
88private:
ef447c30 89 /// Not implemented
90 AliMUONCDB(const AliMUONCDB& rhs);
91 /// Not implemented
de01cdf0 92 AliMUONCDB& operator=(const AliMUONCDB& rhs);
93
94private:
95 TString fCDBPath; //!< where to write stuff
046e5fd4 96 Int_t fMaxNofChannelsToGenerate; //!< to limit the number of generated channels (debug)
de01cdf0 97
98 ClassDef(AliMUONCDB,0) // Helper class to experience OCDB
99};
100
101#endif