1 #ifndef ALIMUONPADSTATUSMAPMAKER_H
2 #define ALIMUONPADSTATUSMAPMAKER_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONPadStatusMapMaker
11 /// \brief Convert a pad status container into a pad status *map* container
13 // Author Laurent Aphecetche
19 class AliMUONPadStatusMaker;
20 class AliMUONVCalibParam;
23 class AliMUONPadStatusMapMaker : public TObject
26 AliMUONPadStatusMapMaker(const AliMUONPadStatusMaker& padStatusMaker,
28 Bool_t deferredInitialization=kTRUE);
29 virtual ~AliMUONPadStatusMapMaker();
31 /** Get access to internal status map store (for debug only, as it may not be complete,
32 depending on whether you've already called StatusMap() for all possible de,manu,channel
33 combinations or not...
35 AliMUONVStore* StatusMap() const { return fStatusMap; }
37 Int_t StatusMap(Int_t detElemId, Int_t manuId, Int_t manuChannel) const;
39 /// Return status bit map to tell a pad is bad
40 static Int_t SelfDeadMask() { return fgkSelfDead; }
42 void RefreshRejectProbabilities();
46 AliMUONPadStatusMapMaker(const AliMUONPadStatusMapMaker&);
48 AliMUONPadStatusMapMaker& operator=(const AliMUONPadStatusMapMaker&);
52 AliMUONVCalibParam* ComputeStatusMap(Int_t detElemId, Int_t manuId) const;
56 static Int_t fgkSelfDead; //!< status bit map to tell a pad is bad
72 const AliMUONPadStatusMaker& fkStatusMaker; //!< to access pad statuses
73 Int_t fMask; //!< mask to be tested
74 mutable AliMUONVStore* fStatusMap; //!< status map
75 AliMUONVStore* fRejectProbabilities; //!< reject probabilities (channel based, computed once per run)
76 AliMUONVStore* fRejectList; //!< reject list (which channels should be rejected, might change event-by-event for simulations)
77 Bool_t fComputeOnDemand; //!< whether we authorize to compute things on demand or not
79 ClassDef(AliMUONPadStatusMapMaker,0) // Pad status map maker