Project
Loading...
Searching...
No Matches
o2::tpc::ROC Class Reference

#include <ROC.h>

Public Types

enum  { MaxROC = 72 }
 

Public Member Functions

 ROC ()=default
 default constructor
 
 ROC (unsigned char roc)
 
 ROC (const Sector &sec, const RocType type)
 
bool operator== (const ROC &other)
 comparison operator
 
bool operator!= (const ROC &other)
 unequal operator
 
bool operator< (const ROC &other)
 smaller operator
 
bool operator++ ()
 
 operator int () const
 
unsigned char getRoc () const
 
Side side () const
 
RocType rocType () const
 
bool isIROC () const
 If roc is an IROC.
 
bool isOROC () const
 If roc is an OROC.
 
Sector getSector () const
 get sector
 
bool looped () const
 if increment operator went above MaxROC
 

Detailed Description

Definition at line 43 of file ROC.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MaxROC 

Definition at line 46 of file ROC.h.

Constructor & Destructor Documentation

◆ ROC() [1/3]

o2::tpc::ROC::ROC ( )
default

default constructor

◆ ROC() [2/3]

o2::tpc::ROC::ROC ( unsigned char  roc)
inline

constructor

Parameters
[in]rocreadout chamber number

Definition at line 55 of file ROC.h.

◆ ROC() [3/3]

o2::tpc::ROC::ROC ( const Sector sec,
const RocType  type 
)
inline

constructor from sector and ROC type

Parameters
[in]secsector
[in]typeROC type

Definition at line 60 of file ROC.h.

Member Function Documentation

◆ getRoc()

unsigned char o2::tpc::ROC::getRoc ( ) const
inline

numerical ROC value

Returns
numerical ROC value

Definition at line 88 of file ROC.h.

◆ getSector()

Sector o2::tpc::ROC::getSector ( ) const
inline

get sector

Definition at line 105 of file ROC.h.

◆ isIROC()

bool o2::tpc::ROC::isIROC ( ) const
inline

If roc is an IROC.

Definition at line 99 of file ROC.h.

◆ isOROC()

bool o2::tpc::ROC::isOROC ( ) const
inline

If roc is an OROC.

Definition at line 102 of file ROC.h.

◆ looped()

bool o2::tpc::ROC::looped ( ) const
inline

if increment operator went above MaxROC

Definition at line 108 of file ROC.h.

◆ operator int()

o2::tpc::ROC::operator int ( ) const
inline

int return operator to use similar as integer

Returns
roc number

Definition at line 84 of file ROC.h.

◆ operator!=()

bool o2::tpc::ROC::operator!= ( const ROC other)
inline

unequal operator

Definition at line 66 of file ROC.h.

◆ operator++()

bool o2::tpc::ROC::operator++ ( )
inline

increment operator This operator can be used to iterate over all ROCs e.g. ROC r; while (++r) { std::cout << "ROC: " << r.getRoc() << std::endl; }

Definition at line 75 of file ROC.h.

◆ operator<()

bool o2::tpc::ROC::operator< ( const ROC other)
inline

smaller operator

Definition at line 69 of file ROC.h.

◆ operator==()

bool o2::tpc::ROC::operator== ( const ROC other)
inline

comparison operator

Definition at line 63 of file ROC.h.

◆ rocType()

RocType o2::tpc::ROC::rocType ( ) const
inline

ROC type

Returns
ROC type

Definition at line 96 of file ROC.h.

◆ side()

Side o2::tpc::ROC::side ( ) const
inline

side of the ROC

Returns
side of the sector

Definition at line 92 of file ROC.h.


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