Project
Loading...
Searching...
No Matches
o2::phos::TriggerMap Class Reference

#include <TriggerMap.h>

Public Member Functions

 TriggerMap ()=default
 Constructor.
 
 TriggerMap (int test)
 Constructor for tests.
 
TriggerMapoperator= (const TriggerMap &other)=default
 
 ~TriggerMap ()=default
 Destructor.
 
bool isGood2x2 (short cellID) const
 tests if cell is in active trigger region
 
void addBad2x2Channel (short cellID)
 Add bad triger cell to the container.
 
void set2x2ChannelGood (short cellID)
 Mark trigger channel as good.
 
bool isGood4x4 (short cellID) const
 tests if cell is in active trigger region
 
void addBad4x4Channel (short cellID)
 Add bad triger cell to the container.
 
void set4x4ChannelGood (short cellID)
 Mark trigger channel as good.
 
void setTurnOnCurvesVestion (int v=0)
 
bool isFiredMC2x2 (float a, short iTRU, short ix, short iz) const
 random return true with probability to fire trigger
 
bool isFiredMC4x4 (float a, short iTRU, short ix, short iz) const
 random return true with probability to fire trigger
 
bool try2x2 (float a, short iTRU) const
 
bool try4x4 (float a, short iTRU) const
 
void addTurnOnCurvesParams (std::string_view versionName, std::array< std::array< float, 10 >, 14 > &params)
 
bool selectTurnOnCurvesParams (std::string_view versionName)
 
float L0triggerProbability (float e, short ddl) const
 

Detailed Description

Definition at line 34 of file TriggerMap.h.

Constructor & Destructor Documentation

◆ TriggerMap() [1/2]

o2::phos::TriggerMap::TriggerMap ( )
default

Constructor.

◆ TriggerMap() [2/2]

TriggerMap::TriggerMap ( int  test)

Constructor for tests.

Definition at line 24 of file TriggerMap.cxx.

◆ ~TriggerMap()

o2::phos::TriggerMap::~TriggerMap ( )
default

Destructor.

Member Function Documentation

◆ addBad2x2Channel()

void o2::phos::TriggerMap::addBad2x2Channel ( short  cellID)
inline

Add bad triger cell to the container.

Parameters
cellIDAbsolute ID of the bad channel

Definition at line 55 of file TriggerMap.h.

◆ addBad4x4Channel()

void o2::phos::TriggerMap::addBad4x4Channel ( short  cellID)
inline

Add bad triger cell to the container.

Parameters
cellIDAbsolute ID of the bad channel

Definition at line 68 of file TriggerMap.h.

◆ addTurnOnCurvesParams()

void TriggerMap::addTurnOnCurvesParams ( std::string_view  versionName,
std::array< std::array< float, 10 >, 14 > &  params 
)

Definition at line 42 of file TriggerMap.cxx.

◆ isFiredMC2x2()

bool TriggerMap::isFiredMC2x2 ( float  a,
short  iTRU,
short  ix,
short  iz 
) const

random return true with probability to fire trigger

Parameters
aamplitude of trigger tile
iTRU,ix,izcoordinates of trigger tile

Definition at line 96 of file TriggerMap.cxx.

◆ isFiredMC4x4()

bool TriggerMap::isFiredMC4x4 ( float  a,
short  iTRU,
short  ix,
short  iz 
) const

random return true with probability to fire trigger

Parameters
aamplitude of trigger tile
iTRU,ix,izcoordinates of trigger tile

Definition at line 104 of file TriggerMap.cxx.

◆ isGood2x2()

bool o2::phos::TriggerMap::isGood2x2 ( short  cellID) const
inline

tests if cell is in active trigger region

Parameters
cellIDAbsolute ID of cell
Returns
true if cell is in active trigger region

Definition at line 51 of file TriggerMap.h.

◆ isGood4x4()

bool o2::phos::TriggerMap::isGood4x4 ( short  cellID) const
inline

tests if cell is in active trigger region

Parameters
cellIDAbsolute ID of cell
Returns
true if cell is in active trigger region

Definition at line 64 of file TriggerMap.h.

◆ L0triggerProbability()

float TriggerMap::L0triggerProbability ( float  e,
short  ddl 
) const

Definition at line 82 of file TriggerMap.cxx.

◆ operator=()

TriggerMap & o2::phos::TriggerMap::operator= ( const TriggerMap other)
default

◆ selectTurnOnCurvesParams()

bool TriggerMap::selectTurnOnCurvesParams ( std::string_view  versionName)

Definition at line 64 of file TriggerMap.cxx.

◆ set2x2ChannelGood()

void o2::phos::TriggerMap::set2x2ChannelGood ( short  cellID)
inline

Mark trigger channel as good.

Parameters
cellIDAbsolute ID of the channel

Definition at line 59 of file TriggerMap.h.

◆ set4x4ChannelGood()

void o2::phos::TriggerMap::set4x4ChannelGood ( short  cellID)
inline

Mark trigger channel as good.

Parameters
cellIDAbsolute ID of the channel

Definition at line 72 of file TriggerMap.h.

◆ setTurnOnCurvesVestion()

void TriggerMap::setTurnOnCurvesVestion ( int  v = 0)

Definition at line 48 of file TriggerMap.cxx.

◆ try2x2()

bool TriggerMap::try2x2 ( float  a,
short  iTRU 
) const

Definition at line 111 of file TriggerMap.cxx.

◆ try4x4()

bool TriggerMap::try4x4 ( float  a,
short  iTRU 
) const

Definition at line 115 of file TriggerMap.cxx.


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