HerdSoftware  0.1.1
Public Member Functions | Private Attributes | List of all members
Herd::PsdTriggerComparatorAlgo Class Reference

An algorithm that compares variables from Psd trigger inputs and fills flags needed for the offline trigger. More...

#include <algorithms/trigger/PsdTriggerComparatorAlgo.h>

Inheritance diagram for Herd::PsdTriggerComparatorAlgo:

Public Member Functions

 PsdTriggerComparatorAlgo (const std::string &name)
 Constructor. More...
 
bool Initialize ()
 Initialization of the algorithm. Retrieve data store. More...
 
bool Process ()
 Compares the quantities in the trigger inputs with the thresholds and sets the flags accordingly. More...
 
bool Finalize ()
 Do nothing. More...
 

Private Attributes

PsdTriggerFlags _psdTriggerFlags
 
StorePtr _evStore
 
float _sideEDepThr_leg
 

Detailed Description

An algorithm that compares variables from Psd trigger inputs and fills flags needed for the offline trigger.

Needed event objects:

name type store optional description
psdTriggerInputs PsdTriggerInputs evStore no Container with trigger input

quantities for Psd

Produced event objects:

name type store description
psdTriggerFlags PsdTriggerFlags evStore Container with the bitmask of the result of the comparation

with thresholds

Parameters:

name type default description
sideEdepThr_leg float 1e-3 [GeV] threshold on the energy deposited in each Psd side

Constructor & Destructor Documentation

◆ PsdTriggerComparatorAlgo()

Herd::PsdTriggerComparatorAlgo::PsdTriggerComparatorAlgo ( const std::string &  name)

Constructor.

Parameters
nameThe name of the algorithm object.

Member Function Documentation

◆ Finalize()

bool Herd::PsdTriggerComparatorAlgo::Finalize ( )

Do nothing.

Returns
true

◆ Initialize()

bool Herd::PsdTriggerComparatorAlgo::Initialize ( )

Initialization of the algorithm. Retrieve data store.

Returns
true if data store are available, false otherwise.

◆ Process()

bool Herd::PsdTriggerComparatorAlgo::Process ( )

Compares the quantities in the trigger inputs with the thresholds and sets the flags accordingly.

Returns
true if no error occurs during processing, false otherwise.

Member Data Documentation

◆ _evStore

StorePtr Herd::PsdTriggerComparatorAlgo::_evStore
private

◆ _psdTriggerFlags

PsdTriggerFlags Herd::PsdTriggerComparatorAlgo::_psdTriggerFlags
private

◆ _sideEDepThr_leg

float Herd::PsdTriggerComparatorAlgo::_sideEDepThr_leg
private

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