AliPhysics  a6017e1 (a6017e1)
PWG::EMCAL::Triggerinfo Class Reference

Decoded structure of a trigger string. More...

#include <AliEmcalTriggerStringDecoder.h>

Inheritance diagram for PWG::EMCAL::Triggerinfo:

Public Member Functions

 Triggerinfo ()
 
 Triggerinfo (const std::string &triggerclass, const std::string &bc, const std::string &pf, const std::string &clust)
 
virtual ~Triggerinfo ()
 
std::string ExpandClassName () const
 Reconstruct trigger string from information in the Triggerinfo object. More...
 
bool IsTriggerClass (const std::string &triggerclass) const
 Check if the trigger info corresponds to a certain trigger input class. More...
 
const std::string & Triggerclass () const
 
const std::string & BunchCrossing () const
 
const std::string & PastFutureProtection () const
 
const std::string & Triggercluster () const
 

Static Public Member Functions

static std::vector< PWG::EMCAL::TriggerinfoDecodeTriggerString (const std::string &triggerstring)
 Decoding trigger string. More...
 

Private Attributes

std::string fTriggerClass
 Trigger class. More...
 
std::string fBunchCrossing
 Bunch crossing type. More...
 
std::string fPastFutureProtection
 Type of the past-future protection. More...
 
std::string fTriggerCluster
 Trigger cluster. More...
 

Detailed Description

Decoded structure of a trigger string.

A trigger class string consists of 4 characteristic information

  • Name of the trigger input
  • Bunch crossing type
  • Type of the past-future protection algorithm
  • Name of the trigger cluster

For easy determinaton of the various information within a trigger string the struct provides access to the different information within the trigger string.

Definition at line 51 of file AliEmcalTriggerStringDecoder.h.

Constructor & Destructor Documentation

PWG::EMCAL::Triggerinfo::Triggerinfo ( )
inline

Definition at line 53 of file AliEmcalTriggerStringDecoder.h.

PWG::EMCAL::Triggerinfo::Triggerinfo ( const std::string &  triggerclass,
const std::string &  bc,
const std::string &  pf,
const std::string &  clust 
)
inline

Definition at line 54 of file AliEmcalTriggerStringDecoder.h.

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

Definition at line 57 of file AliEmcalTriggerStringDecoder.h.

Member Function Documentation

const std::string& PWG::EMCAL::Triggerinfo::BunchCrossing ( ) const
inline

Definition at line 75 of file AliEmcalTriggerStringDecoder.h.

std::vector< Triggerinfo > Triggerinfo::DecodeTriggerString ( const std::string &  triggerstring)
static

Decoding trigger string.

For easy access of the various components of a trigger string the trigger string is decoded into Tiggerinfo structs. Each entry in the struct corresponds to one trigger class present in the trigger string

Parameters
triggerstringValid trigger class string
Returns
std::vector<Triggerinfo> Trigger info objects for all trigger classes found in the trigger string

Definition at line 43 of file AliEmcalTriggerStringDecoder.cxx.

Referenced by EmcalTriggerJets::AliAnalysisTaskEmcalJetSubstructureTree::FillLuminosity(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalRecalcPatchesRef::GetAcceptedTriggerClusters(), EmcalTriggerJets::AliAnalysisTaskEmcalJetEnergySpectrum::GetTriggerClusterIndices(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalClustersRef::IsUserEventSelected(), EmcalTriggerJets::AliAnalysisTaskEmcalJetSubstructureTree::Run(), Triggercluster(), EMCalTriggerPtAnalysis::AliAnalysisTaskEmcalTriggerBase::TriggerSelection(), and EmcalTriggerJets::AliAnalysisTaskEmcalEG1Correlation::UserExec().

std::string Triggerinfo::ExpandClassName ( ) const

Reconstruct trigger string from information in the Triggerinfo object.

Returns
std::string Trigger class representation of the trigger info

Definition at line 34 of file AliEmcalTriggerStringDecoder.cxx.

Referenced by ~Triggerinfo().

bool Triggerinfo::IsTriggerClass ( const std::string &  triggerclass) const

Check if the trigger info corresponds to a certain trigger input class.

Parameters
triggerclassName of the trigger class without C
Returns
true Trigger class matches
false Trigger class does not match

Definition at line 39 of file AliEmcalTriggerStringDecoder.cxx.

Referenced by ~Triggerinfo().

const std::string& PWG::EMCAL::Triggerinfo::PastFutureProtection ( ) const
inline

Definition at line 76 of file AliEmcalTriggerStringDecoder.h.

const std::string& PWG::EMCAL::Triggerinfo::Triggerclass ( ) const
inline

Definition at line 74 of file AliEmcalTriggerStringDecoder.h.

const std::string& PWG::EMCAL::Triggerinfo::Triggercluster ( ) const
inline

Definition at line 77 of file AliEmcalTriggerStringDecoder.h.

Member Data Documentation

std::string PWG::EMCAL::Triggerinfo::fBunchCrossing
private

Bunch crossing type.

Definition at line 93 of file AliEmcalTriggerStringDecoder.h.

Referenced by BunchCrossing(), and ExpandClassName().

std::string PWG::EMCAL::Triggerinfo::fPastFutureProtection
private

Type of the past-future protection.

Definition at line 94 of file AliEmcalTriggerStringDecoder.h.

Referenced by ExpandClassName(), and PastFutureProtection().

std::string PWG::EMCAL::Triggerinfo::fTriggerClass
private

Trigger class.

Definition at line 92 of file AliEmcalTriggerStringDecoder.h.

Referenced by ExpandClassName(), IsTriggerClass(), and Triggerclass().

std::string PWG::EMCAL::Triggerinfo::fTriggerCluster
private

Trigger cluster.

Definition at line 95 of file AliEmcalTriggerStringDecoder.h.

Referenced by ExpandClassName(), and Triggercluster().


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