Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
THaDetMap Class Reference

Definition at line 28 of file THaDetMap.h.

Classes

class  Iterator
 
class  Module
 
class  MultiHitIterator
 

Public Types

enum  ECountMode { kLogicalChan = 0 , kRefIndex = 1 }
 
enum  EFillFlags {
  kDoNotClear = BIT(0) , kSkipLogicalChannel = BIT(9) , kFillLogicalChannel = BIT(10) , kFillModel = BIT(11) ,
  kFillRefIndex = BIT(12) , kFillRefChan = BIT(13) , kFillPlane = BIT(14) , kFillSignal = BIT(15)
}
 

Public Member Functions

virtual Int_t AddModule (UInt_t crate, UInt_t slot, UInt_t chan_lo, UInt_t chan_hi, UInt_t first=0, Int_t model=0, Int_t refindex=-1, Int_t refchan=-1, UInt_t plane=0, UInt_t signal=0)
 
void Clear ()
 
virtual Int_t Fill (const std::vector< Int_t > &values, UInt_t flags=0)
 
virtual ModuleFind (UInt_t crate, UInt_t slot, UInt_t chan)
 
void GetMinMaxChan (UInt_t &min, UInt_t &max, ECountMode mode=kLogicalChan) const
 
Int_t GetModel (UInt_t i) const
 
ModuleGetModule (UInt_t i) const
 
UInt_t GetNchan (UInt_t i) const
 
UInt_t GetSize () const
 
UInt_t GetTotNumChan () const
 
Bool_t IsADC (UInt_t i) const
 
Bool_t IsTDC (UInt_t i) const
 
THaDetMap::Iterator MakeIterator (const THaEvData &evdata)
 
THaDetMap::MultiHitIterator MakeMultiHitIterator (const THaEvData &evdata)
 
THaDetMapoperator= (const THaDetMap &)
 
virtual void Print (Option_t *opt="") const
 
virtual void Reset ()
 
void SetStartAtZero (Bool_t value)
 
virtual void Sort ()
 
 THaDetMap ()
 
 THaDetMap (const THaDetMap &)
 
virtual ~THaDetMap ()=default
 

Static Public Member Functions

static Int_t GetModel (Module *d)
 
static Bool_t IsADC (Module *d)
 
static Bool_t IsTDC (Module *d)
 

Protected Types

using ModuleVec_t = std::vector< std::unique_ptr< Module > >
 

Protected Member Functions

void CopyMap (const ModuleVec_t &map)
 
ModuleuGetModule (UInt_t i) const
 

Protected Attributes

ModuleVec_t fMap
 
Bool_t fStartAtZero
 

#include <THaDetMap.h>

Member Typedef Documentation

◆ ModuleVec_t

using THaDetMap::ModuleVec_t = std::vector<std::unique_ptr<Module> >
protected

Definition at line 141 of file THaDetMap.h.

Member Enumeration Documentation

◆ ECountMode

Enumerator
kLogicalChan 
kRefIndex 

Definition at line 88 of file THaDetMap.h.

◆ EFillFlags

Enumerator
kDoNotClear 
kSkipLogicalChannel 
kFillLogicalChannel 
kFillModel 
kFillRefIndex 
kFillRefChan 
kFillPlane 
kFillSignal 

Definition at line 93 of file THaDetMap.h.

Constructor & Destructor Documentation

◆ THaDetMap() [1/2]

THaDetMap::THaDetMap ( )
inline

Definition at line 104 of file THaDetMap.h.

◆ THaDetMap() [2/2]

THaDetMap::THaDetMap ( const THaDetMap rhs)

Definition at line 108 of file THaDetMap.cxx.

◆ ~THaDetMap()

virtual THaDetMap::~THaDetMap ( )
virtualdefault

Member Function Documentation

◆ AddModule()

Int_t THaDetMap::AddModule ( UInt_t  crate,
UInt_t  slot,
UInt_t  chan_lo,
UInt_t  chan_hi,
UInt_t  first = 0,
Int_t  model = 0,
Int_t  refindex = -1,
Int_t  refchan = -1,
UInt_t  plane = 0,
UInt_t  signal = 0 
)
virtual

Definition at line 130 of file THaDetMap.cxx.

◆ Clear()

void THaDetMap::Clear ( )
inline

Definition at line 117 of file THaDetMap.h.

◆ CopyMap()

void THaDetMap::CopyMap ( const ModuleVec_t map)
protected

Definition at line 92 of file THaDetMap.cxx.

◆ Fill()

Int_t THaDetMap::Fill ( const std::vector< Int_t > &  values,
UInt_t  flags = 0 
)
virtual

Definition at line 212 of file THaDetMap.cxx.

◆ Find()

THaDetMap::Module * THaDetMap::Find ( UInt_t  crate,
UInt_t  slot,
UInt_t  chan 
)
virtual

Definition at line 194 of file THaDetMap.cxx.

◆ GetMinMaxChan()

void THaDetMap::GetMinMaxChan ( UInt_t min,
UInt_t max,
ECountMode  mode = kLogicalChan 
) const

Definition at line 343 of file THaDetMap.cxx.

◆ GetModel() [1/2]

Int_t THaDetMap::GetModel ( Module d)
inlinestatic

Definition at line 262 of file THaDetMap.h.

◆ GetModel() [2/2]

Int_t THaDetMap::GetModel ( UInt_t  i) const
inline

Definition at line 277 of file THaDetMap.h.

◆ GetModule()

THaDetMap::Module * THaDetMap::GetModule ( UInt_t  i) const
inline

Definition at line 248 of file THaDetMap.h.

◆ GetNchan()

UInt_t THaDetMap::GetNchan ( UInt_t  i) const
inline

Definition at line 282 of file THaDetMap.h.

◆ GetSize()

UInt_t THaDetMap::GetSize ( ) const
inline

Definition at line 125 of file THaDetMap.h.

◆ GetTotNumChan()

UInt_t THaDetMap::GetTotNumChan ( ) const

Definition at line 329 of file THaDetMap.cxx.

◆ IsADC() [1/2]

Bool_t THaDetMap::IsADC ( Module d)
inlinestatic

Definition at line 252 of file THaDetMap.h.

◆ IsADC() [2/2]

Bool_t THaDetMap::IsADC ( UInt_t  i) const
inline

Definition at line 267 of file THaDetMap.h.

◆ IsTDC() [1/2]

Bool_t THaDetMap::IsTDC ( Module d)
inlinestatic

Definition at line 257 of file THaDetMap.h.

◆ IsTDC() [2/2]

Bool_t THaDetMap::IsTDC ( UInt_t  i) const
inline

Definition at line 272 of file THaDetMap.h.

◆ MakeIterator()

THaDetMap::Iterator THaDetMap::MakeIterator ( const THaEvData evdata)

Definition at line 417 of file THaDetMap.cxx.

◆ MakeMultiHitIterator()

THaDetMap::MultiHitIterator THaDetMap::MakeMultiHitIterator ( const THaEvData evdata)

Definition at line 424 of file THaDetMap.cxx.

◆ operator=()

THaDetMap & THaDetMap::operator= ( const THaDetMap rhs)

Definition at line 117 of file THaDetMap.cxx.

◆ Print()

void THaDetMap::Print ( Option_t opt = "") const
virtual

Definition at line 364 of file THaDetMap.cxx.

◆ Reset()

void THaDetMap::Reset ( )
virtual

Definition at line 391 of file THaDetMap.cxx.

◆ SetStartAtZero()

void THaDetMap::SetStartAtZero ( Bool_t  value)
inline

Definition at line 138 of file THaDetMap.h.

◆ Sort()

void THaDetMap::Sort ( )
virtual

Definition at line 400 of file THaDetMap.cxx.

◆ uGetModule()

Module * THaDetMap::uGetModule ( UInt_t  i) const
inlineprotected

Definition at line 144 of file THaDetMap.h.

Member Data Documentation

◆ fMap

ModuleVec_t THaDetMap::fMap
protected

Definition at line 142 of file THaDetMap.h.

◆ fStartAtZero

Bool_t THaDetMap::fStartAtZero
protected

Definition at line 148 of file THaDetMap.h.

Collaboration diagram for THaDetMap:

The documentation for this class was generated from the following files: