![]() |
AliRoot Core
ee782a0 (ee782a0)
|
Convert a pad status container into a pad status map container. More...
#include <AliMUONPadStatusMapMaker.h>
Public Member Functions | |
AliMUONPadStatusMapMaker (const AliMUONPadStatusMaker &padStatusMaker, Int_t mask, Bool_t deferredInitialization=kTRUE) | |
virtual | ~AliMUONPadStatusMapMaker () |
AliMUONVStore * | StatusMap () const |
Int_t | StatusMap (Int_t detElemId, Int_t manuId, Int_t manuChannel) const |
void | RefreshRejectProbabilities () |
Static Public Member Functions | |
static Int_t | SelfDeadMask () |
Return status bit map to tell a pad is bad. More... | |
Private Types | |
enum | EBitNumbers { kLeftBottomBit = 6, kLeftBit = 7, kLeftTopBit = 8, kBottomBit = 11, kCenterBit = 12, kTopBit = 13, kRightBottomBit = 16, kRightBit = 17, kRightTopBit = 18 } |
Bit numbers. More... | |
Private Member Functions | |
AliMUONPadStatusMapMaker (const AliMUONPadStatusMapMaker &) | |
Not implemented. More... | |
AliMUONPadStatusMapMaker & | operator= (const AliMUONPadStatusMapMaker &) |
Not implemented. More... | |
AliMUONVCalibParam * | ComputeStatusMap (Int_t detElemId, Int_t manuId) const |
Private Attributes | |
const AliMUONPadStatusMaker & | fkStatusMaker |
! to access pad statuses More... | |
Int_t | fMask |
! mask to be tested More... | |
AliMUONVStore * | fStatusMap |
! status map More... | |
AliMUONVStore * | fRejectProbabilities |
! reject probabilities (channel based, computed once per run) More... | |
AliMUONVStore * | fRejectList |
! reject list (which channels should be rejected, might change event-by-event for simulations) More... | |
Bool_t | fComputeOnDemand |
! whether we authorize to compute things on demand or not More... | |
Static Private Attributes | |
static Int_t | fgkSelfDead = 1 |
! status bit map to tell a pad is bad More... | |
Convert a pad status container into a pad status map container.
Convert a pad statuses into pad status maps.
A pad status is one 32-bits word describing whether this pad pedestal, lv, hv is correct or not.
A pad status map is one 32-bits (of which 24 only are used) word describing whether this pad neighbours are ok or not (whether a pad is ok or not is determined by applying a given bitmask to the pad status word). Each bit in this word is related to one neighbour, assuming the pad itself is at bit 0
Note that for instance in NonBending plane of slats, at the boundaries between two pad densities, the pictures is a bit different, e.g. (bits in () are always zero)
so some care must be taken when designing a mask to be tested ;-) if you want to go farther than immediate neighbours...
If a pad is at a physical boundary, is will for sure have some bits at 1 (i.e. a non-existing neighbour is considered = bad).
add something about the reject list/probabilities here... (LA)
Definition at line 23 of file AliMUONPadStatusMapMaker.h.
|
private |
Bit numbers.
Enumerator | |
---|---|
kLeftBottomBit | |
kLeftBit | |
kLeftTopBit | |
kBottomBit | |
kCenterBit | |
kTopBit | |
kRightBottomBit | |
kRightBit | |
kRightTopBit |
Definition at line 59 of file AliMUONPadStatusMapMaker.h.
AliMUONPadStatusMapMaker::AliMUONPadStatusMapMaker | ( | const AliMUONPadStatusMaker & | padStatusMaker, |
Int_t | mask, | ||
Bool_t | deferredInitialization = kTRUE |
||
) |
ctor
Whatever the deferred flag is, we have to compute the reject probabilities here and now, for all channels.
Definition at line 84 of file AliMUONPadStatusMapMaker.cxx.
Referenced by SelfDeadMask().
|
virtual |
dtor
Definition at line 183 of file AliMUONPadStatusMapMaker.cxx.
|
private |
Not implemented.
|
private |
Compute the status map for a given manu, and add it to our internal fStatusMap internal storage
Definition at line 193 of file AliMUONPadStatusMapMaker.cxx.
Referenced by SelfDeadMask(), and StatusMap().
|
private |
Not implemented.
Referenced by SelfDeadMask().
void AliMUONPadStatusMapMaker::RefreshRejectProbabilities | ( | ) |
From the (fixed) fRejectProbabilities, compute a fRejectList that will be valid for one event If fRejectProbabilities=0x0 it means we're dealing with trivial probabilities (0 or 1) and those are assumed to be already in fRejectList then.
Definition at line 257 of file AliMUONPadStatusMapMaker.cxx.
Referenced by AliMUONDigitCalibrator::Calibrate(), and SelfDeadMask().
|
inlinestatic |
Return status bit map to tell a pad is bad.
Definition at line 40 of file AliMUONPadStatusMapMaker.h.
Referenced by AliMUONTrackerConditionDataMaker::CreateStatusMapStore(), AliMUONQAMappingCheck::IsChannelDead(), AliMUONDigitCalibrator::IsValidDigit(), and AliMUONCDB::ShowConfig().
|
inline |
Get access to internal status map store (for debug only, as it may not be complete, depending on whether you've already called StatusMap() for all possible de,manu,channel combinations or not...
Definition at line 35 of file AliMUONPadStatusMapMaker.h.
Referenced by MUONStatusMap(), AliMUONCDB::ShowConfig(), and AliMUONDigitCalibrator::StatusMap().
Int_t AliMUONPadStatusMapMaker::StatusMap | ( | Int_t | detElemId, |
Int_t | manuId, | ||
Int_t | manuChannel | ||
) | const |
Get the pad status map
Definition at line 304 of file AliMUONPadStatusMapMaker.cxx.
|
private |
! whether we authorize to compute things on demand or not
Definition at line 77 of file AliMUONPadStatusMapMaker.h.
Referenced by StatusMap().
|
staticprivate |
! status bit map to tell a pad is bad
Definition at line 56 of file AliMUONPadStatusMapMaker.h.
Referenced by SelfDeadMask(), and StatusMap().
|
private |
! to access pad statuses
Definition at line 72 of file AliMUONPadStatusMapMaker.h.
Referenced by ComputeStatusMap().
|
private |
! mask to be tested
Definition at line 73 of file AliMUONPadStatusMapMaker.h.
Referenced by ComputeStatusMap().
|
private |
! reject list (which channels should be rejected, might change event-by-event for simulations)
Definition at line 76 of file AliMUONPadStatusMapMaker.h.
Referenced by RefreshRejectProbabilities(), StatusMap(), and ~AliMUONPadStatusMapMaker().
|
private |
! reject probabilities (channel based, computed once per run)
Definition at line 75 of file AliMUONPadStatusMapMaker.h.
Referenced by RefreshRejectProbabilities(), and ~AliMUONPadStatusMapMaker().
|
mutableprivate |
! status map
Definition at line 74 of file AliMUONPadStatusMapMaker.h.
Referenced by ComputeStatusMap(), StatusMap(), and ~AliMUONPadStatusMapMaker().