LDMX Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ldmx::TriggerResult Class Reference

Represents the trigger decision (pass/fail) for reconstruction. More...

#include <TriggerResult.h>

Public Member Functions

 TriggerResult ()
 Class constructor.
 
virtual ~TriggerResult ()
 Class destructor.
 
void Print () const
 Print a description of this object.
 
void Clear ()
 Reset the TriggerResult object.
 
const TString & getName () const
 Return the name of the trigger.
 
bool passed () const
 Return pass/fail status of the trigger.
 
double getAlgoVar (int element) const
 Return algorithm variable i (see algorithm code for details).
 
double getAlgoVar0 () const
 Return algorithm variable 0 (see algorithm code for details).
 
double getAlgoVar1 () const
 Return algorithm variable 1 (see algorithm code for details).
 
double getAlgoVar2 () const
 Return algorithm variable 2 (see algorithm code for details).
 
double getAlgoVar3 () const
 Return algorithm variable 3 (see algorithm code for details).
 
double getAlgoVar4 () const
 Return algorithm variable 4 (see algorithm code for details).
 
void set (const TString &name, bool pass, int nvar)
 Set name and pass of trigger.
 
void setAlgoVar (int element, double value)
 Set an algorithm variable.
 

Private Member Functions

 ClassDef (TriggerResult, 1)
 

Private Attributes

TString name_ {}
 Name of the trigger algorithm.
 
bool pass_ {false}
 
TArrayD variables_
 

Detailed Description

Represents the trigger decision (pass/fail) for reconstruction.

Definition at line 25 of file TriggerResult.h.

Member Function Documentation

◆ getAlgoVar()

double ldmx::TriggerResult::getAlgoVar ( int  element) const
inline

Return algorithm variable i (see algorithm code for details).

Parameters
elementThe index of the variable.
Returns
Algorithm variable at the index.

Definition at line 64 of file TriggerResult.h.

64{ return variables_[element]; }

◆ getAlgoVar0()

double ldmx::TriggerResult::getAlgoVar0 ( ) const
inline

Return algorithm variable 0 (see algorithm code for details).

Note
Provided for interactive ROOT use.
Returns
Algorithm variable 0.

Definition at line 71 of file TriggerResult.h.

71 {
72 return (variables_.GetSize() < 1) ? (0) : (variables_[0]);
73 }

◆ getAlgoVar1()

double ldmx::TriggerResult::getAlgoVar1 ( ) const
inline

Return algorithm variable 1 (see algorithm code for details).

Note
Provided for interactive ROOT use.
Returns
Algorithm variable 1.

Definition at line 80 of file TriggerResult.h.

80 {
81 return (variables_.GetSize() < 2) ? (0) : (variables_[1]);
82 }

◆ getAlgoVar2()

double ldmx::TriggerResult::getAlgoVar2 ( ) const
inline

Return algorithm variable 2 (see algorithm code for details).

Note
Provided for interactive ROOT use.
Returns
Algorithm variable 2.

Definition at line 89 of file TriggerResult.h.

89 {
90 return (variables_.GetSize() < 3) ? (0) : (variables_[2]);
91 }

◆ getAlgoVar3()

double ldmx::TriggerResult::getAlgoVar3 ( ) const
inline

Return algorithm variable 3 (see algorithm code for details).

Note
Provided for interactive ROOT use.
Returns
Algorithm variable 3.

Definition at line 98 of file TriggerResult.h.

98 {
99 return (variables_.GetSize() < 4) ? (0) : (variables_[3]);
100 }

◆ getAlgoVar4()

double ldmx::TriggerResult::getAlgoVar4 ( ) const
inline

Return algorithm variable 4 (see algorithm code for details).

Note
Provided for interactive ROOT use.
Returns
Algorithm variable 4.

Definition at line 107 of file TriggerResult.h.

107 {
108 return (variables_.GetSize() < 5) ? (0) : (variables_[4]);
109 }

◆ getName()

const TString & ldmx::TriggerResult::getName ( ) const
inline

Return the name of the trigger.

Returns
The name of the trigger.

Definition at line 51 of file TriggerResult.h.

51{ return name_; }
TString name_
Name of the trigger algorithm.

References name_.

◆ passed()

bool ldmx::TriggerResult::passed ( ) const
inline

Return pass/fail status of the trigger.

Returns
True if trigger passed.

Definition at line 57 of file TriggerResult.h.

57{ return pass_; }

◆ set()

void ldmx::TriggerResult::set ( const TString &  name,
bool  pass,
int  nvar 
)

Set name and pass of trigger.

Parameters
nameThe name of the trigger.
passThe pass/fail status of the trigger.
nvarThe number of algorithm variables.

Referenced by recon::TriggerProcessor::produce().

◆ setAlgoVar()

void ldmx::TriggerResult::setAlgoVar ( int  element,
double  value 
)

Set an algorithm variable.

Parameters
elementThe index of the variable.
valueThe variable's new value.

Referenced by recon::TriggerProcessor::produce().

Member Data Documentation

◆ name_

TString ldmx::TriggerResult::name_ {}
private

Name of the trigger algorithm.

Definition at line 128 of file TriggerResult.h.

128{};

Referenced by getName().

◆ pass_

bool ldmx::TriggerResult::pass_ {false}
private

Definition at line 131 of file TriggerResult.h.

131{false};

◆ variables_

TArrayD ldmx::TriggerResult::variables_
private

Definition at line 134 of file TriggerResult.h.


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