X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONCDB.h;h=f4ad60cbb9cc219dcd8362665e134f18bf67c1a8;hb=cb15f5057a69750da53f4cdc2cbd3f07560d403f;hp=0c779021d2ba9846594a4be9cd2e7118143416f2;hpb=7eafe398de04a2da0222ce2c14a9d3343739b2b4;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONCDB.h b/MUON/AliMUONCDB.h index 0c779021d2b..f4ad60cbb9c 100644 --- a/MUON/AliMUONCDB.h +++ b/MUON/AliMUONCDB.h @@ -5,33 +5,35 @@ /* $Id$ */ -/// \ingroup base -/// \class AliMUONCDB -/// \brief Helper class to experience the OCDB +/// \ingroup rec +/// \namespace AliMUONCDB +/// \brief Helper functions to experience the OCDB /// // Author Laurent Aphecetche -#include #include #include "AliCDBRunRange.h" class AliMUONVStore; class TMap; +class TClonesArray; class AliMUONVCalibParam; class AliMUONTriggerLut; class AliMUONTriggerEfficiencyCells; class AliMUONRegionalTriggerConfig; class AliMUONGlobalCrateConfig; +class AliMUONRejectList; +class AliMUONRecoParam; -class AliMUONCDB : public TObject +namespace AliMUONCDB { -public: - /// Ctor. change the path for testing the Shuttle preprocessor, to - /// "local://$ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestCDB" - AliMUONCDB(const char* cdbpath = "local://$ALICE_ROOT/OCDB"); - virtual ~AliMUONCDB(); + Bool_t CheckOCDB(Bool_t pathOnly = kFALSE); + Bool_t CheckMapping(Bool_t segmentationOnly = kFALSE); - void SetMaxNofChannelsToGenerate(Int_t n); + Bool_t LoadField(); + Bool_t LoadMapping(Bool_t segmentationOnly = kFALSE); + AliMUONRecoParam* LoadRecoParam(); + TClonesArray* LoadAlignmentData(); Int_t MakeNeighbourStore(AliMUONVStore& neighbourStore); @@ -41,58 +43,51 @@ public: Int_t MakeCapacitanceStore(AliMUONVStore& capaStore, Bool_t defaultValues); Int_t MakeCapacitanceStore(AliMUONVStore& capaStore, const char* file); Int_t MakeGainStore(AliMUONVStore& gainStore, Bool_t defaultValues); - Int_t MakeOccupancyMapStore(AliMUONVStore& occupancyMapStore, Bool_t defaultValues); + Int_t MakeOccupancyMapStore(AliMUONVStore& occupancyMap, Bool_t defaultValues); + AliMUONRejectList* MakeRejectListStore(Bool_t defaultValues); - Int_t MakeLocalTriggerMaskStore(AliMUONVStore& ltm) const; - Int_t MakeRegionalTriggerConfigStore(AliMUONRegionalTriggerConfig& rtm) const; - Int_t MakeGlobalTriggerConfigStore(AliMUONGlobalCrateConfig& gtm) const; + Int_t MakeLocalTriggerMaskStore(AliMUONVStore& ltm); + Int_t MakeRegionalTriggerConfigStore(AliMUONRegionalTriggerConfig& rtm); + Int_t MakeGlobalTriggerConfigStore(AliMUONGlobalCrateConfig& gtm); - AliMUONTriggerLut* MakeTriggerLUT(const char* file="$(ALICE_ROOT)/MUON/data/lutAptLpt1Hpt1p7.root") const; - AliMUONTriggerEfficiencyCells* MakeTriggerEfficiency(const char* file="$ALICE_ROOT/MUON/data/efficiencyCells.dat") const; + AliMUONTriggerLut* MakeTriggerLUT(const char* file="$(ALICE_ROOT)/MUON/data/lutAptLpt1Hpt1p7.root"); + AliMUONTriggerEfficiencyCells* MakeTriggerEfficiency(const char* file="$ALICE_ROOT/MUON/data/efficiencyCells.dat"); - /// Compute the difference between two (compatible) stores - AliMUONVStore* Diff(AliMUONVStore& store1, AliMUONVStore& store2, - const char* opt="abs"); - + AliMUONVStore* Diff(AliMUONVStore& store1, AliMUONVStore& store2, const char* opt="abs"); + void Plot(const AliMUONVStore& store, const char* name, Int_t nbins=512); - void WriteToCDB(const char* calibpath, TObject* object, + void ShowConfig(Bool_t withStatusMap=kFALSE); + + void ShowCapacitances(); + + void WriteToCDB(const char* calibpath, TObject* object, Int_t startRun, Int_t endRun, Bool_t defaultValues); - void WriteToCDB(const char* calibpath, TObject* object, + void WriteToCDB(const char* calibpath, TObject* object, Int_t startRun, Int_t endRun, const char* filename); void WriteToCDB(TObject* object, const char* calibpath, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity(), - const char* comment="", const char* responsible="AliMUONCDB tester class"); + const char* comment="", const char* responsible="AliMUONCDB tester class"); void WriteTrigger(Bool_t defaultValues=kTRUE, Int_t startRun=0,Int_t endRun=AliCDBRunRange::Infinity()); void WriteTracker(Bool_t defaultValues=kTRUE, Int_t startRun=0,Int_t endRun=AliCDBRunRange::Infinity()); void WriteNeighbours(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); void WriteHV(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); - void WriteTriggerDCS(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); void WritePedestals(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); void WriteGains(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); void WriteCapacitances(Bool_t defaultValues, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); void WriteCapacitances(const char* file, Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); void WriteOccupancyMap(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); - + void WriteRejectList(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); + void WriteConfig(Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); + void WriteLocalTriggerMasks(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); void WriteRegionalTriggerConfig(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); void WriteGlobalTriggerConfig(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); + void WriteTriggerDCS(Bool_t defaultValues, Int_t startRun, Int_t endRun=AliCDBRunRange::Infinity()); void WriteTriggerLut(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); void WriteTriggerEfficiency(Int_t startRun=0, Int_t endRun=AliCDBRunRange::Infinity()); - -private: - /// Not implemented - AliMUONCDB(const AliMUONCDB& rhs); - /// Not implemented - AliMUONCDB& operator=(const AliMUONCDB& rhs); - -private: - TString fCDBPath; //!< where to write stuff - Int_t fMaxNofChannelsToGenerate; //!< to limit the number of generated channels (debug) - - ClassDef(AliMUONCDB,0) // Helper class to experience OCDB -}; +} #endif