MyMarlinTPC  170316
Functions | Variables
marlintpc::pulseflag Namespace Reference

Functions

void setMultiplePulseCandidate (int &i)
 
void setAnomalousShape (int &j)
 
void setOverflow (int &k)
 
void setUnderflow (int &m)
 
void setSplit (int &n)
 
void setPlateauCutoff (int &l)
 
bool isMultiplePulseCandidate (int i)
 
bool isAnomalousShape (int j)
 
bool isOverflow (int k)
 
bool isUnderflow (int m)
 
bool isSplit (int n)
 
bool isPlateauCutoff (int l)
 

Variables

int const MULTIPLE_PULSE_CANDIDATE_BIT = 1
 
int const ANOMALOUS_SHAPE_BIT = 1 << 1
 
int const OVERFLOW_BIN_BIT = 1 << 2
 
int const UNDERFLOW_BIN_BIT = 1 << 3
 
int const WAS_SPLIT_BIT = 1 << 4
 
int const PLATEAU_CUTOFF_BIT = 1 << 5
 

Detailed Description

a collection of the quality flagwords that are stored in the respective LCIO classes: these are collected into three different namespaces (for pulses, hits and tracks), and equipped with "global" functions (within this namespace) to ease the usage

the flags were discussed in the forum

example usage: EVENT::TrackerPulse* aPulse; if(isUnderflow(aPulse->getQuality()) {...}

int quality = 0; quality = setMultiplePulseCandidate(quality); quality = setOverflow(quality);

Function Documentation

◆ isAnomalousShape()

bool marlintpc::pulseflag::isAnomalousShape ( int  j)
inline

◆ isMultiplePulseCandidate()

bool marlintpc::pulseflag::isMultiplePulseCandidate ( int  i)
inline

◆ isOverflow()

bool marlintpc::pulseflag::isOverflow ( int  k)
inline

◆ isPlateauCutoff()

bool marlintpc::pulseflag::isPlateauCutoff ( int  l)
inline

◆ isSplit()

bool marlintpc::pulseflag::isSplit ( int  n)
inline

◆ isUnderflow()

bool marlintpc::pulseflag::isUnderflow ( int  m)
inline

Definition at line 70 of file FlagwordDefinitions.h.

References UNDERFLOW_BIN_BIT.

◆ setAnomalousShape()

void marlintpc::pulseflag::setAnomalousShape ( int &  j)
inline

Definition at line 36 of file FlagwordDefinitions.h.

References ANOMALOUS_SHAPE_BIT.

◆ setMultiplePulseCandidate()

void marlintpc::pulseflag::setMultiplePulseCandidate ( int &  i)
inline

Definition at line 32 of file FlagwordDefinitions.h.

References MULTIPLE_PULSE_CANDIDATE_BIT.

◆ setOverflow()

void marlintpc::pulseflag::setOverflow ( int &  k)
inline

Definition at line 40 of file FlagwordDefinitions.h.

References OVERFLOW_BIN_BIT.

◆ setPlateauCutoff()

void marlintpc::pulseflag::setPlateauCutoff ( int &  l)
inline

Definition at line 52 of file FlagwordDefinitions.h.

References PLATEAU_CUTOFF_BIT.

◆ setSplit()

void marlintpc::pulseflag::setSplit ( int &  n)
inline

Definition at line 48 of file FlagwordDefinitions.h.

References WAS_SPLIT_BIT.

◆ setUnderflow()

void marlintpc::pulseflag::setUnderflow ( int &  m)
inline

Definition at line 44 of file FlagwordDefinitions.h.

References UNDERFLOW_BIN_BIT.

Variable Documentation

◆ ANOMALOUS_SHAPE_BIT

int const marlintpc::pulseflag::ANOMALOUS_SHAPE_BIT = 1 << 1

Definition at line 26 of file FlagwordDefinitions.h.

Referenced by isAnomalousShape(), and setAnomalousShape().

◆ MULTIPLE_PULSE_CANDIDATE_BIT

int const marlintpc::pulseflag::MULTIPLE_PULSE_CANDIDATE_BIT = 1

Definition at line 25 of file FlagwordDefinitions.h.

Referenced by isMultiplePulseCandidate(), and setMultiplePulseCandidate().

◆ OVERFLOW_BIN_BIT

int const marlintpc::pulseflag::OVERFLOW_BIN_BIT = 1 << 2

Definition at line 27 of file FlagwordDefinitions.h.

Referenced by isOverflow(), and setOverflow().

◆ PLATEAU_CUTOFF_BIT

int const marlintpc::pulseflag::PLATEAU_CUTOFF_BIT = 1 << 5

Definition at line 30 of file FlagwordDefinitions.h.

Referenced by isPlateauCutoff(), and setPlateauCutoff().

◆ UNDERFLOW_BIN_BIT

int const marlintpc::pulseflag::UNDERFLOW_BIN_BIT = 1 << 3

Definition at line 28 of file FlagwordDefinitions.h.

Referenced by isUnderflow(), and setUnderflow().

◆ WAS_SPLIT_BIT

int const marlintpc::pulseflag::WAS_SPLIT_BIT = 1 << 4

Definition at line 29 of file FlagwordDefinitions.h.

Referenced by isSplit(), and setSplit().