![]() |
AliRoot Core
edcc906 (edcc906)
|
MAp of per strip boolean values. More...
#include <AliFMDBoolMap.h>
Public Member Functions | |
AliFMDBoolMap (const AliFMDBoolMap &other) | |
AliFMDBoolMap () | |
AliFMDBoolMap (UShort_t maxDet, UShort_t maxRing=0, UShort_t maxSec=0, UShort_t maxStr=0) | |
virtual | ~AliFMDBoolMap () |
AliFMDBoolMap & | operator= (const AliFMDBoolMap &other) |
virtual void | Reset (const Bool_t &v=Bool_t()) |
virtual Bool_t & | operator() (UShort_t det, Char_t ring, UShort_t sec, UShort_t str) |
virtual const Bool_t & | operator() (UShort_t det, Char_t ring, UShort_t sec, UShort_t str) const |
Bool_t * | Data () const |
Int_t | Total () const |
void * | Ptr () const |
![]() | |
AliFMDMap (UShort_t maxDet=0, UShort_t maxRing=0, UShort_t maxSec=0, UShort_t maxStr=0) | |
AliFMDMap (const AliFMDMap &other) | |
virtual | ~AliFMDMap () |
UShort_t | MaxDetectors () const |
UShort_t | MaxRings () const |
UShort_t | MaxSectors () const |
UShort_t | MaxStrips () const |
void | CalcCoords (Int_t idx, UShort_t &det, Char_t &ring, UShort_t &sec, UShort_t &str) const |
Int_t | CalcIndex (UShort_t det, Char_t ring, UShort_t sec, UShort_t str) const |
Int_t | CheckIndex (UShort_t det, Char_t ring, UShort_t sec, UShort_t str) const |
void | CheckNeedUShort (TFile *file) |
AliFMDMap & | operator*= (const AliFMDMap &o) |
AliFMDMap & | operator/= (const AliFMDMap &o) |
AliFMDMap & | operator+= (const AliFMDMap &o) |
AliFMDMap & | operator-= (const AliFMDMap &o) |
virtual Bool_t | ForEach (ForOne &algo) const |
virtual void | Print (Option_t *option="") const |
virtual Bool_t | IsFloat () const |
virtual Bool_t | IsInt () const |
virtual Bool_t | IsUShort () const |
Protected Member Functions | |
Int_t | MaxIndex () const |
Bool_t | AtAsBool (Int_t idx) const |
Bool_t & | AtAsBool (Int_t idx) |
Bool_t | IsBool () const |
Int_t | AtAsInt (Int_t idx) const |
Float_t | AtAsFloat (Int_t idx) const |
UShort_t | AtAsUShort (Int_t idx) const |
Int_t & | AtAsInt (Int_t idx) |
Float_t & | AtAsFloat (Int_t idx) |
UShort_t & | AtAsUShort (Int_t idx) |
![]() | |
Int_t | Coords2Index (UShort_t det, Char_t ring, UShort_t sec, UShort_t str) const |
Int_t | Coords2IndexOld (UShort_t det, Char_t ring, UShort_t sec, UShort_t str) const |
void | Index2CoordsOld (Int_t idx, UShort_t &det, Char_t &ring, UShort_t &sec, UShort_t &str) const |
void | Index2Coords (Int_t idx, UShort_t &det, Char_t &ring, UShort_t &sec, UShort_t &str) const |
Protected Attributes | |
Int_t | fTotal |
Bool_t * | fData |
![]() | |
UShort_t | fMaxDetectors |
UShort_t | fMaxRings |
UShort_t | fMaxSectors |
UShort_t | fMaxStrips |
Additional Inherited Members | |
![]() | |
enum | { kMaxDetectors = 3, kMaxRings = 2, kMaxSectors = 40, kMaxStrips = 512 } |
enum | { kInner = 0, kOuter } |
enum | { kNStripOuter = 256, kNStripInner = 512 } |
enum | { kNSectorInner = 20, kNSectorOuter = 40 } |
enum | { kBaseInner = 0, kBaseOuter = kNSectorInner * kNStripInner } |
enum | { kFMD1Base = 0, kFMD2Base = kNSectorInner * kNStripInner, kFMD3Base = (kBaseOuter + kNSectorOuter * kNStripOuter + kFMD2Base) } |
enum | { kNeedUShort = 14 } |
MAp of per strip boolean values.
Definition at line 29 of file AliFMDBoolMap.h.
AliFMDBoolMap::AliFMDBoolMap | ( | const AliFMDBoolMap & | other | ) |
Copy constructor
other | Object to copy from. |
Definition at line 38 of file AliFMDBoolMap.cxx.
AliFMDBoolMap::AliFMDBoolMap | ( | ) |
Constructor
Definition at line 53 of file AliFMDBoolMap.cxx.
AliFMDBoolMap::AliFMDBoolMap | ( | UShort_t | maxDet, |
UShort_t | maxRing = 0 , |
||
UShort_t | maxSec = 0 , |
||
UShort_t | maxStr = 0 |
||
) |
Constructor
maxDet | Number of detectors (3) |
maxRing | Number of rings (2) |
maxSec | Number of sectors (40) |
maxStr | Number of strips (20) |
Definition at line 64 of file AliFMDBoolMap.cxx.
|
inlinevirtual |
Destructor
Definition at line 49 of file AliFMDBoolMap.h.
|
inlineprotectedvirtual |
Virtal function to get the value at index idx as an unsigned short integer
idx | Index number |
Reimplemented from AliFMDMap.
Definition at line 82 of file AliFMDBoolMap.h.
|
inlineprotectedvirtual |
Virtal function to get the value at index idx as an unsigned short integer
idx | Index number |
Reimplemented from AliFMDMap.
Definition at line 83 of file AliFMDBoolMap.h.
|
inlineprotectedvirtual |
Virtal function to get the value at index idx as a floating point number.
a
is a floating point valued map, and b
is not, then if the class B
of b
implements this member function, expression like* a += b; *
multiplies each element of a
(floating points) with each element of c
according to the definition of B::AtAsFloat
(const
version).
idx | Index number |
Reimplemented from AliFMDMap.
Definition at line 86 of file AliFMDBoolMap.h.
|
inlineprotectedvirtual |
Virtal function to get the value at index idx as a floating point number.
This member function should only be defined if the map is a floating point valued, and can be assigned floating point valued values. That is, if the map's elements are anything but float
then this member function should not be defined in the derived class. That will prevent expressions like
where a
is non-floating point valued, and b
is floating point valued (only).
idx | Index number |
Reimplemented from AliFMDMap.
Definition at line 89 of file AliFMDBoolMap.h.
|
inlineprotectedvirtual |
Virtal function to get the value at index idx as an integer
idx | Index number |
Reimplemented from AliFMDMap.
Definition at line 85 of file AliFMDBoolMap.h.
|
inlineprotectedvirtual |
Virtal function to get the value at index idx as an integer
idx | Index number |
Reimplemented from AliFMDMap.
Definition at line 88 of file AliFMDBoolMap.h.
|
inlineprotectedvirtual |
Virtal function to get the value at index idx as an boolean
idx | Index number |
Reimplemented from AliFMDMap.
Definition at line 87 of file AliFMDBoolMap.h.
|
inlineprotectedvirtual |
Virtal function to get the value at index idx as an boolean
idx | Index number |
Reimplemented from AliFMDMap.
Definition at line 90 of file AliFMDBoolMap.h.
|
inline |
Definition at line 77 of file AliFMDBoolMap.h.
|
inlineprotectedvirtual |
Whether this map is boolean valued - that is it can be assigned boolean values
true
if the map is boolean valued Reimplemented from AliFMDMap.
Definition at line 84 of file AliFMDBoolMap.h.
|
inlineprotectedvirtual |
Get the total size of the internal array - that is the maximum index possible plus one.
Implements AliFMDMap.
Definition at line 81 of file AliFMDBoolMap.h.
|
virtual |
Access operator
Definition at line 111 of file AliFMDBoolMap.cxx.
Referenced by ~AliFMDBoolMap().
|
virtual |
AliFMDBoolMap & AliFMDBoolMap::operator= | ( | const AliFMDBoolMap & | other | ) |
Assignment operator
other | Object to assign from |
Definition at line 85 of file AliFMDBoolMap.cxx.
Referenced by ~AliFMDBoolMap().
|
inlinevirtual |
Get raw data pointer.
Implements AliFMDMap.
Definition at line 79 of file AliFMDBoolMap.h.
Referenced by AliFMDParameters::InitDeadMap().
|
virtual |
Reset to value
v | Value to reset from |
Definition at line 103 of file AliFMDBoolMap.cxx.
Referenced by AliFMDBoolMap(), AliFMDCalibGain::MakeDeadMap(), AliFMDCalibPedestal::MakeDeadMap(), AliFMDReconstructor::PreReconstruct(), AliFMDReconstructor::ProcessDigits(), ReadRaw(), TestRawReader(), and ~AliFMDBoolMap().
|
inline |
Definition at line 78 of file AliFMDBoolMap.h.
|
protected |
Definition at line 92 of file AliFMDBoolMap.h.
Referenced by AliFMDBoolMap(), AtAsBool(), AtAsFloat(), AtAsInt(), AtAsUShort(), Data(), operator()(), operator=(), Ptr(), Reset(), and ~AliFMDBoolMap().
|
protected |
Definition at line 91 of file AliFMDBoolMap.h.
Referenced by AliFMDBoolMap(), MaxIndex(), operator=(), Reset(), and Total().