Project
Loading...
Searching...
No Matches
o2::fit::Triggers Class Reference

#include <Triggers.h>

Public Types

enum  {
  bitA = 0 , bitC = 1 , bitAOut = 1 , bitSCen = 2 ,
  bitTrgNchan = 2 , bitCen = 3 , bitTrgCharge = 3 , bitVertex = 4 ,
  bitAIn = 4 , bitLaser = 5 , bitOutputsAreBlocked = 6 , bitDataIsValid = 7 ,
  bitMinBias = 8
}
 

Public Member Functions

 Triggers ()=default
 
 Triggers (uint8_t signals, uint8_t chanA, uint8_t chanC, int32_t aamplA, int32_t aamplC, int16_t atimeA, int16_t atimeC)
 
bool getOrA () const
 
bool getOrC () const
 
bool getOrAOut () const
 
bool getSCen () const
 
bool getTrgNChan () const
 
bool getCen () const
 
bool getTrgCharge () const
 
bool getVertex () const
 
bool getOrAIn () const
 
bool getLaser () const
 
bool getOutputsAreBlocked () const
 
bool getDataIsValid () const
 
bool getMinBiasFT0 () const
 
uint64_t getExtendedTrgWordFT0 () const
 
uint8_t getTriggersignals () const
 
uint8_t getNChanA () const
 
uint8_t getNChanC () const
 
int32_t getAmplA () const
 
int32_t getAmplC () const
 
int16_t getTimeA () const
 
int16_t getTimeC () const
 
void setTriggers (uint8_t trgsig, uint8_t chanA, uint8_t chanC, int32_t aamplA, int32_t aamplC, int16_t atimeA, int16_t atimeC)
 
void setTriggers (Bool_t isA, Bool_t isC, Bool_t isVrtx, Bool_t isCnt, Bool_t isSCnt, uint8_t chanA, uint8_t chanC, int32_t aamplA, int32_t aamplC, int16_t atimeA, int16_t atimeC, Bool_t isLaser, Bool_t isOutputsAreBlocked, Bool_t isDataValid)
 
void cleanTriggers ()
 
bool operator== (Triggers const &other) const
 
std::string print () const
 
void print (std::ostream &) const
 
void printLog () const
 

Static Public Member Functions

template<typename... TrgBits>
static constexpr uint64_t word (TrgBits &&... trgBits)
 
static bool checkMinBiasFT0 (uint64_t trgWord)
 
static uint64_t makeExtendedTrgWord (uint64_t trgWord)
 

Static Public Attributes

static const int16_t DEFAULT_TIME = -5000
 
static const int16_t DEFAULT_AMP = 0
 
static const int16_t DEFAULT_ZERO = 0
 

Detailed Description

Definition at line 28 of file Triggers.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
bitA 
bitC 
bitAOut 
bitSCen 
bitTrgNchan 
bitCen 
bitTrgCharge 
bitVertex 
bitAIn 
bitLaser 
bitOutputsAreBlocked 
bitDataIsValid 
bitMinBias 

Definition at line 37 of file Triggers.h.

Constructor & Destructor Documentation

◆ Triggers() [1/2]

o2::fit::Triggers::Triggers ( )
default

◆ Triggers() [2/2]

o2::fit::Triggers::Triggers ( uint8_t  signals,
uint8_t  chanA,
uint8_t  chanC,
int32_t  aamplA,
int32_t  aamplC,
int16_t  atimeA,
int16_t  atimeC 
)
inline

Definition at line 55 of file Triggers.h.

Member Function Documentation

◆ checkMinBiasFT0()

static bool o2::fit::Triggers::checkMinBiasFT0 ( uint64_t  trgWord)
inlinestatic

Definition at line 65 of file Triggers.h.

◆ cleanTriggers()

void o2::fit::Triggers::cleanTriggers ( )
inline

Definition at line 115 of file Triggers.h.

◆ getAmplA()

int32_t o2::fit::Triggers::getAmplA ( ) const
inline

Definition at line 92 of file Triggers.h.

◆ getAmplC()

int32_t o2::fit::Triggers::getAmplC ( ) const
inline

Definition at line 93 of file Triggers.h.

◆ getCen()

bool o2::fit::Triggers::getCen ( ) const
inline

Definition at line 79 of file Triggers.h.

◆ getDataIsValid()

bool o2::fit::Triggers::getDataIsValid ( ) const
inline

Definition at line 85 of file Triggers.h.

◆ getExtendedTrgWordFT0()

uint64_t o2::fit::Triggers::getExtendedTrgWordFT0 ( ) const
inline

Definition at line 87 of file Triggers.h.

◆ getLaser()

bool o2::fit::Triggers::getLaser ( ) const
inline

Definition at line 83 of file Triggers.h.

◆ getMinBiasFT0()

bool o2::fit::Triggers::getMinBiasFT0 ( ) const
inline

Definition at line 86 of file Triggers.h.

◆ getNChanA()

uint8_t o2::fit::Triggers::getNChanA ( ) const
inline

Definition at line 90 of file Triggers.h.

◆ getNChanC()

uint8_t o2::fit::Triggers::getNChanC ( ) const
inline

Definition at line 91 of file Triggers.h.

◆ getOrA()

bool o2::fit::Triggers::getOrA ( ) const
inline

Definition at line 74 of file Triggers.h.

◆ getOrAIn()

bool o2::fit::Triggers::getOrAIn ( ) const
inline

Definition at line 82 of file Triggers.h.

◆ getOrAOut()

bool o2::fit::Triggers::getOrAOut ( ) const
inline

Definition at line 76 of file Triggers.h.

◆ getOrC()

bool o2::fit::Triggers::getOrC ( ) const
inline

Definition at line 75 of file Triggers.h.

◆ getOutputsAreBlocked()

bool o2::fit::Triggers::getOutputsAreBlocked ( ) const
inline

Definition at line 84 of file Triggers.h.

◆ getSCen()

bool o2::fit::Triggers::getSCen ( ) const
inline

Definition at line 77 of file Triggers.h.

◆ getTimeA()

int16_t o2::fit::Triggers::getTimeA ( ) const
inline

Definition at line 94 of file Triggers.h.

◆ getTimeC()

int16_t o2::fit::Triggers::getTimeC ( ) const
inline

Definition at line 95 of file Triggers.h.

◆ getTrgCharge()

bool o2::fit::Triggers::getTrgCharge ( ) const
inline

Definition at line 80 of file Triggers.h.

◆ getTrgNChan()

bool o2::fit::Triggers::getTrgNChan ( ) const
inline

Definition at line 78 of file Triggers.h.

◆ getTriggersignals()

uint8_t o2::fit::Triggers::getTriggersignals ( ) const
inline

Definition at line 89 of file Triggers.h.

◆ getVertex()

bool o2::fit::Triggers::getVertex ( ) const
inline

Definition at line 81 of file Triggers.h.

◆ makeExtendedTrgWord()

static uint64_t o2::fit::Triggers::makeExtendedTrgWord ( uint64_t  trgWord)
inlinestatic

Definition at line 69 of file Triggers.h.

◆ operator==()

bool o2::fit::Triggers::operator== ( Triggers const &  other) const
inline

Definition at line 123 of file Triggers.h.

◆ print() [1/2]

std::string Triggers::print ( ) const

Definition at line 18 of file Triggers.cxx.

◆ print() [2/2]

void Triggers::print ( std::ostream &  stream) const

Definition at line 25 of file Triggers.cxx.

◆ printLog()

void Triggers::printLog ( ) const

Definition at line 30 of file Triggers.cxx.

◆ setTriggers() [1/2]

void o2::fit::Triggers::setTriggers ( Bool_t  isA,
Bool_t  isC,
Bool_t  isVrtx,
Bool_t  isCnt,
Bool_t  isSCnt,
uint8_t  chanA,
uint8_t  chanC,
int32_t  aamplA,
int32_t  aamplC,
int16_t  atimeA,
int16_t  atimeC,
Bool_t  isLaser,
Bool_t  isOutputsAreBlocked,
Bool_t  isDataValid 
)
inline

Definition at line 108 of file Triggers.h.

◆ setTriggers() [2/2]

void o2::fit::Triggers::setTriggers ( uint8_t  trgsig,
uint8_t  chanA,
uint8_t  chanC,
int32_t  aamplA,
int32_t  aamplC,
int16_t  atimeA,
int16_t  atimeC 
)
inline

Definition at line 97 of file Triggers.h.

◆ word()

template<typename... TrgBits>
static constexpr uint64_t o2::fit::Triggers::word ( TrgBits &&...  trgBits)
inlinestaticconstexpr

Definition at line 32 of file Triggers.h.

Member Data Documentation

◆ DEFAULT_AMP

const int16_t o2::fit::Triggers::DEFAULT_AMP = 0
static

Definition at line 51 of file Triggers.h.

◆ DEFAULT_TIME

const int16_t o2::fit::Triggers::DEFAULT_TIME = -5000
static

Definition at line 50 of file Triggers.h.

◆ DEFAULT_ZERO

const int16_t o2::fit::Triggers::DEFAULT_ZERO = 0
static

Definition at line 52 of file Triggers.h.


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