AliPhysics  master (3d17d9d)
PWG::EMCAL::AliEmcalTriggerAlias Class Reference

Class for trigger aliases. More...

#include <AliEmcalTriggerAlias.h>

Inheritance diagram for PWG::EMCAL::AliEmcalTriggerAlias:

Public Member Functions

 AliEmcalTriggerAlias ()
 Default I/O constructor. More...
 
 AliEmcalTriggerAlias (const char *triggernames)
 Constructor, creates a new trigger alias from a list of trigger names. More...
 
 AliEmcalTriggerAlias (const TList &triggernames)
 Constructor, creates a new trigger alias from a list of trigger names. More...
 
virtual ~AliEmcalTriggerAlias ()
 Destructor. More...
 
Bool_t HasTriggerClass (const char *triggername) const
 check whether trigger name is handled by the trigger alias More...
 
void SetTriggerClasses (const char *triggernames)
 Set the trigger classes handled by the trigger alias. More...
 
void SetTriggerClasses (const TList &triggernames)
 Set the trigger classes handled by the trigger alias. More...
 
void PrintStream (std::ostream &stream) const
 Print trigger alias on a stream. More...
 

Private Member Functions

void DecodeTriggerClasses (const char *triggernames)
 Decode trigger classes handled by the alias. More...
 

Private Attributes

TList fTriggerClasses
 List of trigger classes handled by Alias. More...
 

Detailed Description

Class for trigger aliases.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Oak Ridge National Laboratory
Since
Jan. 20, 2020

A trigger alias is a collection of trigger classes connected to the same trigger condition. In case the trigger condition is fulfilled, any of the trigger aliases is accepted. In order to check for a specific class name check

~~~.{cxx} AliEmcalTriggerAlias myalias("EGA;EG1"); bool accepted = myalias.HasTriggerClass("EG1"); //true bool notaccepted = myalias.HasTriggerClass("EG2"); //false ~~~.{cxx}

Definition at line 60 of file AliEmcalTriggerAlias.h.

Constructor & Destructor Documentation

PWG::EMCAL::AliEmcalTriggerAlias::AliEmcalTriggerAlias ( )

Default I/O constructor.

Definition at line 40 of file AliEmcalTriggerAlias.cxx.

PWG::EMCAL::AliEmcalTriggerAlias::AliEmcalTriggerAlias ( const char *  triggernames)

Constructor, creates a new trigger alias from a list of trigger names.

Parameters
triggernamesList of the trigger classes handled by the alias, separated by ";"

Definition at line 46 of file AliEmcalTriggerAlias.cxx.

PWG::EMCAL::AliEmcalTriggerAlias::AliEmcalTriggerAlias ( const TList triggernames)

Constructor, creates a new trigger alias from a list of trigger names.

Parameters
triggernamesList of trigger classes handled

Definition at line 54 of file AliEmcalTriggerAlias.cxx.

virtual PWG::EMCAL::AliEmcalTriggerAlias::~AliEmcalTriggerAlias ( )
inlinevirtual

Destructor.

Definition at line 84 of file AliEmcalTriggerAlias.h.

Member Function Documentation

void PWG::EMCAL::AliEmcalTriggerAlias::DecodeTriggerClasses ( const char *  triggernames)
private

Decode trigger classes handled by the alias.

Parameters
triggernamesString representation of the trigger classes

Helper function used in the constructor or the setter decoding the trigger classes handled by the trigger alias from a string. Trigger classes are separated by ";"

Definition at line 80 of file AliEmcalTriggerAlias.cxx.

Referenced by AliEmcalTriggerAlias(), and SetTriggerClasses().

bool PWG::EMCAL::AliEmcalTriggerAlias::HasTriggerClass ( const char *  triggername) const

check whether trigger name is handled by the trigger alias

Parameters
triggernameName of the trigger class to be checked
Returns
True if the trigger class is handled, false otherwise

Definition at line 90 of file AliEmcalTriggerAlias.cxx.

void PWG::EMCAL::AliEmcalTriggerAlias::PrintStream ( std::ostream &  stream) const

Print trigger alias on a stream.

Parameters
streamStream where the trigger alias is printed on

Helper function used in the streaming operator to print the trigger classes handled by the alias

Definition at line 95 of file AliEmcalTriggerAlias.cxx.

Referenced by operator<<().

void PWG::EMCAL::AliEmcalTriggerAlias::SetTriggerClasses ( const char *  triggernames)

Set the trigger classes handled by the trigger alias.

Parameters
triggernamesList of the trigger classes handled by the alias, separated by ";"

Definition at line 66 of file AliEmcalTriggerAlias.cxx.

void PWG::EMCAL::AliEmcalTriggerAlias::SetTriggerClasses ( const TList triggernames)

Set the trigger classes handled by the trigger alias.

Parameters
triggernamesList of trigger classes handled

Definition at line 71 of file AliEmcalTriggerAlias.cxx.

Member Data Documentation

TList PWG::EMCAL::AliEmcalTriggerAlias::fTriggerClasses
private

List of trigger classes handled by Alias.

Definition at line 126 of file AliEmcalTriggerAlias.h.

Referenced by AliEmcalTriggerAlias(), DecodeTriggerClasses(), HasTriggerClass(), PrintStream(), and SetTriggerClasses().


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