Project
Loading...
Searching...
No Matches
o2::fv0::ChannelData Struct Reference

#include <ChannelData.h>

Public Types

enum  EEventDataBit {
  kNumberADC , kIsDoubleEvent , kIsTimeInfoNOTvalid , kIsCFDinADCgate ,
  kIsTimeInfoLate , kIsAmpHigh , kIsEventInTVDC , kIsTimeInfoLost
}
 

Public Member Functions

 ChannelData ()=default
 
 ChannelData (uint8_t iPmt, int time, int charge, uint8_t chainQTC)
 
void setFlag (uint8_t flag)
 
void setFlag (EEventDataBit bitFlag, bool value)
 
bool getFlag (EEventDataBit bitFlag) const
 
bool areAllFlagsGood () const
 
void print () const
 
void printLog () const
 
uint8_t getChannelID () const
 
uint16_t getTime () const
 
uint16_t getAmp () const
 
bool operator== (ChannelData const &other) const
 
 ClassDefNV (ChannelData, 3)
 

Static Public Member Functions

static void setFlag (EEventDataBit bitFlag, uint8_t &chainQTC)
 
static void clearFlag (EEventDataBit bitFlag, uint8_t &chainQTC)
 

Public Attributes

uint8_t ChId = DUMMY_CHANNEL_ID
 
uint8_t ChainQTC = DUMMY_CHAIN_QTC
 
int16_t CFDTime = DUMMY_CFD_TIME
 
int16_t QTCAmpl = DUMMY_QTC_AMPL
 

Static Public Attributes

static constexpr char sChannelNameDPL [] = "DIGITSCH"
 
static constexpr char sDigitName [] = "ChannelData"
 
static constexpr char sDigitBranchName [] = "FV0DigitCh"
 
static constexpr uint8_t DUMMY_CHANNEL_ID = 0xff
 
static constexpr uint8_t DUMMY_CHAIN_QTC = 0xff
 
static constexpr int16_t DUMMY_CFD_TIME = -5000
 
static constexpr int16_t DUMMY_QTC_AMPL = -5000
 

Detailed Description

Definition at line 25 of file ChannelData.h.

Member Enumeration Documentation

◆ EEventDataBit

Enumerator
kNumberADC 
kIsDoubleEvent 
kIsTimeInfoNOTvalid 
kIsCFDinADCgate 
kIsTimeInfoLate 
kIsAmpHigh 
kIsEventInTVDC 
kIsTimeInfoLost 

Definition at line 37 of file ChannelData.h.

Constructor & Destructor Documentation

◆ ChannelData() [1/2]

o2::fv0::ChannelData::ChannelData ( )
default

◆ ChannelData() [2/2]

o2::fv0::ChannelData::ChannelData ( uint8_t  iPmt,
int  time,
int  charge,
uint8_t  chainQTC 
)
inline

Definition at line 48 of file ChannelData.h.

Member Function Documentation

◆ areAllFlagsGood()

bool o2::fv0::ChannelData::areAllFlagsGood ( ) const
inline

Definition at line 66 of file ChannelData.h.

◆ ClassDefNV()

o2::fv0::ChannelData::ClassDefNV ( ChannelData  ,
 
)

◆ clearFlag()

static void o2::fv0::ChannelData::clearFlag ( EEventDataBit  bitFlag,
uint8_t &  chainQTC 
)
inlinestatic

Definition at line 64 of file ChannelData.h.

◆ getAmp()

uint16_t o2::fv0::ChannelData::getAmp ( ) const
inline

Definition at line 80 of file ChannelData.h.

◆ getChannelID()

uint8_t o2::fv0::ChannelData::getChannelID ( ) const
inline

Definition at line 78 of file ChannelData.h.

◆ getFlag()

bool o2::fv0::ChannelData::getFlag ( EEventDataBit  bitFlag) const
inline

Definition at line 65 of file ChannelData.h.

◆ getTime()

uint16_t o2::fv0::ChannelData::getTime ( ) const
inline

Definition at line 79 of file ChannelData.h.

◆ operator==()

bool o2::fv0::ChannelData::operator== ( ChannelData const &  other) const
inline

Definition at line 82 of file ChannelData.h.

◆ print()

void ChannelData::print ( ) const

Definition at line 18 of file ChannelData.cxx.

◆ printLog()

void ChannelData::printLog ( ) const

Definition at line 23 of file ChannelData.cxx.

◆ setFlag() [1/3]

void o2::fv0::ChannelData::setFlag ( EEventDataBit  bitFlag,
bool  value 
)
inline

Definition at line 59 of file ChannelData.h.

◆ setFlag() [2/3]

static void o2::fv0::ChannelData::setFlag ( EEventDataBit  bitFlag,
uint8_t &  chainQTC 
)
inlinestatic

Definition at line 63 of file ChannelData.h.

◆ setFlag() [3/3]

void o2::fv0::ChannelData::setFlag ( uint8_t  flag)
inline

Definition at line 55 of file ChannelData.h.

Member Data Documentation

◆ CFDTime

int16_t o2::fv0::ChannelData::CFDTime = DUMMY_CFD_TIME

Definition at line 35 of file ChannelData.h.

◆ ChainQTC

uint8_t o2::fv0::ChannelData::ChainQTC = DUMMY_CHAIN_QTC

Definition at line 34 of file ChannelData.h.

◆ ChId

uint8_t o2::fv0::ChannelData::ChId = DUMMY_CHANNEL_ID

Definition at line 33 of file ChannelData.h.

◆ DUMMY_CFD_TIME

constexpr int16_t o2::fv0::ChannelData::DUMMY_CFD_TIME = -5000
staticconstexpr

Definition at line 31 of file ChannelData.h.

◆ DUMMY_CHAIN_QTC

constexpr uint8_t o2::fv0::ChannelData::DUMMY_CHAIN_QTC = 0xff
staticconstexpr

Definition at line 30 of file ChannelData.h.

◆ DUMMY_CHANNEL_ID

constexpr uint8_t o2::fv0::ChannelData::DUMMY_CHANNEL_ID = 0xff
staticconstexpr

Definition at line 29 of file ChannelData.h.

◆ DUMMY_QTC_AMPL

constexpr int16_t o2::fv0::ChannelData::DUMMY_QTC_AMPL = -5000
staticconstexpr

Definition at line 32 of file ChannelData.h.

◆ QTCAmpl

int16_t o2::fv0::ChannelData::QTCAmpl = DUMMY_QTC_AMPL

Definition at line 36 of file ChannelData.h.

◆ sChannelNameDPL

constexpr char o2::fv0::ChannelData::sChannelNameDPL[] = "DIGITSCH"
staticconstexpr

Definition at line 26 of file ChannelData.h.

◆ sDigitBranchName

constexpr char o2::fv0::ChannelData::sDigitBranchName[] = "FV0DigitCh"
staticconstexpr

Definition at line 28 of file ChannelData.h.

◆ sDigitName

constexpr char o2::fv0::ChannelData::sDigitName[] = "ChannelData"
staticconstexpr

Definition at line 27 of file ChannelData.h.


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