ATLAS Offline Software
Public Member Functions | Protected Types | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
D3PD::TrigDecisionToolD3PD Class Reference

Tool for interpreting trigger information in the D3PDs. More...

#include <TrigDecisionToolD3PD.h>

Inheritance diagram for D3PD::TrigDecisionToolD3PD:
Collaboration diagram for D3PD::TrigDecisionToolD3PD:

Public Member Functions

 TrigDecisionToolD3PD (TTree *eventTree=0, TTree *confTree=0, const TString &prefix="trig_")
 Constructor specifying the D3PD trees that the tool should act on. More...
 
Bool_t IsPassed (const std::string &name, TrigDefs::DecisionTypes type=TrigDefs::Physics)
 Find out whether a given LVL1 item / HLT chain was passed in the event. More...
 
TTree * GetEventTree () const
 Get the pointer to the event-wise treee currently being used. More...
 
Bool_t SetEventTree (TTree *eventTree)
 Set the pointer to the event-wise treee. More...
 
Int_t GetEntry (Long64_t entry, Int_t getall=0)
 Load a new entry (new event) More...
 
virtual Int_t GetDetailLevel () const
 Get the detail level that the D3PD was produced with. More...
 
virtual TrigConfigSvcD3PDGetConfigSvc ()
 Return a reference to the trigger configuration service. More...
 
ChainGroup GetChainGroup (const std::vector< std::string > &patterns)
 Create a chain group from a list of patterns. More...
 
ChainGroup GetChainGroup (const std::string &pattern)
 Create a chain group from a single pattern. More...
 

Protected Types

enum  L1ResultType { TBP = 0, TAP = 1, TAV = 2 }
 Types of LVL1 result bits. More...
 
enum  HLTResultType { Physics = 0, Raw = 1, Resurrected = 2, PassedThrough = 3 }
 Types of HLT results. More...
 

Protected Member Functions

virtual Int_t GetSMK () const
 Get the Super Master Key of the current event. More...
 
virtual Int_t GetL1PSK () const
 Get the LVL1 prescale key of the current event. More...
 
virtual Int_t GetHLTPSK () const
 Get the HLT prescale key of the current event. More...
 
virtual const std::vector< unsigned int > * GetL1Result (L1ResultType type) const
 Function for retrieving the encoded LVL1 result. More...
 
virtual const std::vector< short > * GetL2Result (HLTResultType type) const
 Function for retrieving the encoded LVL2 result. More...
 
virtual const std::vector< short > * GetEFResult (HLTResultType type) const
 Function for retrieving the encoded EF result. More...
 

Private Member Functions

Bool_t Initialize ()
 Initialize the object from the specified TTree. More...
 
void Reset ()
 Reset the object. More...
 

Private Attributes

TTree * m_tree
 The event-wise TTree. More...
 
const TString m_prefix
 Prefix for the trigger branch names. More...
 
Bool_t m_initialized
 Flag for knowing if the branches have been connected. More...
 
Int_t m_detailLevel
 The detail level guessed from the available branches. More...
 
UInt_t m_smk
 
UInt_t m_l1psk
 
UInt_t m_hltpsk
 
TBranch * m_b_smk
 
TBranch * m_b_l1psk
 
TBranch * m_b_hltpsk
 
std::vector< unsigned int > * m_l1_tav
 
std::vector< short > * m_l2_physics
 
std::vector< short > * m_ef_physics
 
TBranch * m_b_l1_tav
 
TBranch * m_b_l2_physics
 
TBranch * m_b_ef_physics
 
std::vector< unsigned int > * m_l1_tbp
 
std::vector< unsigned int > * m_l1_tap
 
std::vector< short > * m_l2_raw
 
std::vector< short > * m_ef_raw
 
TBranch * m_b_l1_tbp
 
TBranch * m_b_l1_tap
 
TBranch * m_b_l2_raw
 
TBranch * m_b_ef_raw
 
std::vector< short > * m_l2_resurrected
 
std::vector< short > * m_ef_resurrected
 
TBranch * m_b_l2_resurrected
 
TBranch * m_b_ef_resurrected
 
std::vector< short > * m_l2_passedThrough
 
std::vector< short > * m_ef_passedThrough
 
TBranch * m_b_l2_passedThrough
 
TBranch * m_b_ef_passedThrough
 
TrigConfigSvcD3PD m_configSvc
 The trigger configuration service. More...
 

Detailed Description

Tool for interpreting trigger information in the D3PDs.

   This tool can be used to interpret the trigger information from the
   D3PDs, which is stored in an encoded way. The way in which the data
   is stored is explained in

   https://twiki.cern.ch/twiki/bin/view/Atlas/TriggerD3PDMaker

   Currently the only implemented feature is to ask the tool if a trigger
   item passed various conditions.
Author
Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h
Revision
337331
Date
2010-08-27 13:46:34 +0200 (Fri, 27 Aug 2010)

Definition at line 44 of file TrigDecisionToolD3PD.h.

Member Enumeration Documentation

◆ HLTResultType

enum D3PD::Trig::IDataAccess::HLTResultType
protectedinherited

Types of HLT results.

Enumerator
Physics 
Raw 
Resurrected 
PassedThrough 

Definition at line 57 of file IDataAccess.h.

57  {
58  Physics = 0,
59  Raw = 1,
60  Resurrected = 2,
61  PassedThrough = 3
62  };

◆ L1ResultType

enum D3PD::Trig::IDataAccess::L1ResultType
protectedinherited

Types of LVL1 result bits.

Enumerator
TBP 
TAP 
TAV 

Definition at line 51 of file IDataAccess.h.

51  {
52  TBP = 0,
53  TAP = 1,
54  TAV = 2
55  };

Constructor & Destructor Documentation

◆ TrigDecisionToolD3PD()

D3PD::TrigDecisionToolD3PD::TrigDecisionToolD3PD ( TTree *  eventTree = 0,
TTree *  confTree = 0,
const TString &  prefix = "trig_" 
)

Constructor specifying the D3PD trees that the tool should act on.

Member Function Documentation

◆ GetChainGroup() [1/2]

ChainGroup D3PD::Trig::ChainGroupHandling::GetChainGroup ( const std::string &  pattern)
inherited

Create a chain group from a single pattern.

◆ GetChainGroup() [2/2]

ChainGroup D3PD::Trig::ChainGroupHandling::GetChainGroup ( const std::vector< std::string > &  patterns)
inherited

Create a chain group from a list of patterns.

◆ GetConfigSvc()

virtual TrigConfigSvcD3PD& D3PD::Trig::ConfigAccess::GetConfigSvc ( )
virtualinherited

Return a reference to the trigger configuration service.

Implements D3PD::Trig::IConfigAccess.

◆ GetDetailLevel()

virtual Int_t D3PD::Trig::DataAccess::GetDetailLevel ( ) const
virtualinherited

Get the detail level that the D3PD was produced with.

Implements D3PD::Trig::IDataAccess.

◆ GetEFResult()

virtual const std::vector< short >* D3PD::Trig::DataAccess::GetEFResult ( HLTResultType  type) const
protectedvirtualinherited

Function for retrieving the encoded EF result.

Implements D3PD::Trig::IDataAccess.

◆ GetEntry()

Int_t D3PD::Trig::DataAccess::GetEntry ( Long64_t  entry,
Int_t  getall = 0 
)
inherited

Load a new entry (new event)

◆ GetEventTree()

TTree* D3PD::Trig::DataAccess::GetEventTree ( ) const
inherited

Get the pointer to the event-wise treee currently being used.

◆ GetHLTPSK()

virtual Int_t D3PD::Trig::DataAccess::GetHLTPSK ( ) const
protectedvirtualinherited

Get the HLT prescale key of the current event.

Implements D3PD::Trig::IDataAccess.

◆ GetL1PSK()

virtual Int_t D3PD::Trig::DataAccess::GetL1PSK ( ) const
protectedvirtualinherited

Get the LVL1 prescale key of the current event.

Implements D3PD::Trig::IDataAccess.

◆ GetL1Result()

virtual const std::vector< unsigned int >* D3PD::Trig::DataAccess::GetL1Result ( L1ResultType  type) const
protectedvirtualinherited

Function for retrieving the encoded LVL1 result.

Implements D3PD::Trig::IDataAccess.

◆ GetL2Result()

virtual const std::vector< short >* D3PD::Trig::DataAccess::GetL2Result ( HLTResultType  type) const
protectedvirtualinherited

Function for retrieving the encoded LVL2 result.

Implements D3PD::Trig::IDataAccess.

◆ GetSMK()

virtual Int_t D3PD::Trig::DataAccess::GetSMK ( ) const
protectedvirtualinherited

Get the Super Master Key of the current event.

Implements D3PD::Trig::IDataAccess.

◆ Initialize()

Bool_t D3PD::Trig::DataAccess::Initialize ( )
privateinherited

Initialize the object from the specified TTree.

◆ IsPassed()

Bool_t D3PD::TrigDecisionToolD3PD::IsPassed ( const std::string &  name,
TrigDefs::DecisionTypes  type = TrigDefs::Physics 
)

Find out whether a given LVL1 item / HLT chain was passed in the event.

◆ Reset()

void D3PD::Trig::DataAccess::Reset ( )
privateinherited

Reset the object.

◆ SetEventTree()

Bool_t D3PD::Trig::DataAccess::SetEventTree ( TTree *  eventTree)
inherited

Set the pointer to the event-wise treee.

Member Data Documentation

◆ m_b_ef_passedThrough

TBranch* D3PD::Trig::DataAccess::m_b_ef_passedThrough
privateinherited

Definition at line 138 of file DataAccess.h.

◆ m_b_ef_physics

TBranch* D3PD::Trig::DataAccess::m_b_ef_physics
privateinherited

Definition at line 116 of file DataAccess.h.

◆ m_b_ef_raw

TBranch* D3PD::Trig::DataAccess::m_b_ef_raw
privateinherited

Definition at line 126 of file DataAccess.h.

◆ m_b_ef_resurrected

TBranch* D3PD::Trig::DataAccess::m_b_ef_resurrected
privateinherited

Definition at line 132 of file DataAccess.h.

◆ m_b_hltpsk

TBranch* D3PD::Trig::DataAccess::m_b_hltpsk
privateinherited

Definition at line 108 of file DataAccess.h.

◆ m_b_l1_tap

TBranch* D3PD::Trig::DataAccess::m_b_l1_tap
privateinherited

Definition at line 124 of file DataAccess.h.

◆ m_b_l1_tav

TBranch* D3PD::Trig::DataAccess::m_b_l1_tav
privateinherited

Definition at line 114 of file DataAccess.h.

◆ m_b_l1_tbp

TBranch* D3PD::Trig::DataAccess::m_b_l1_tbp
privateinherited

Definition at line 123 of file DataAccess.h.

◆ m_b_l1psk

TBranch* D3PD::Trig::DataAccess::m_b_l1psk
privateinherited

Definition at line 107 of file DataAccess.h.

◆ m_b_l2_passedThrough

TBranch* D3PD::Trig::DataAccess::m_b_l2_passedThrough
privateinherited

Definition at line 137 of file DataAccess.h.

◆ m_b_l2_physics

TBranch* D3PD::Trig::DataAccess::m_b_l2_physics
privateinherited

Definition at line 115 of file DataAccess.h.

◆ m_b_l2_raw

TBranch* D3PD::Trig::DataAccess::m_b_l2_raw
privateinherited

Definition at line 125 of file DataAccess.h.

◆ m_b_l2_resurrected

TBranch* D3PD::Trig::DataAccess::m_b_l2_resurrected
privateinherited

Definition at line 131 of file DataAccess.h.

◆ m_b_smk

TBranch* D3PD::Trig::DataAccess::m_b_smk
privateinherited

Definition at line 106 of file DataAccess.h.

◆ m_configSvc

TrigConfigSvcD3PD D3PD::Trig::ConfigAccess::m_configSvc
privateinherited

The trigger configuration service.

Definition at line 47 of file ConfigAccess.h.

◆ m_detailLevel

Int_t D3PD::Trig::DataAccess::m_detailLevel
privateinherited

The detail level guessed from the available branches.

Definition at line 97 of file DataAccess.h.

◆ m_ef_passedThrough

std::vector< short >* D3PD::Trig::DataAccess::m_ef_passedThrough
privateinherited

Definition at line 135 of file DataAccess.h.

◆ m_ef_physics

std::vector< short >* D3PD::Trig::DataAccess::m_ef_physics
privateinherited

Definition at line 112 of file DataAccess.h.

◆ m_ef_raw

std::vector< short >* D3PD::Trig::DataAccess::m_ef_raw
privateinherited

Definition at line 121 of file DataAccess.h.

◆ m_ef_resurrected

std::vector< short >* D3PD::Trig::DataAccess::m_ef_resurrected
privateinherited

Definition at line 129 of file DataAccess.h.

◆ m_hltpsk

UInt_t D3PD::Trig::DataAccess::m_hltpsk
privateinherited

Definition at line 104 of file DataAccess.h.

◆ m_initialized

Bool_t D3PD::Trig::DataAccess::m_initialized
privateinherited

Flag for knowing if the branches have been connected.

Definition at line 96 of file DataAccess.h.

◆ m_l1_tap

std::vector< unsigned int >* D3PD::Trig::DataAccess::m_l1_tap
privateinherited

Definition at line 119 of file DataAccess.h.

◆ m_l1_tav

std::vector< unsigned int >* D3PD::Trig::DataAccess::m_l1_tav
privateinherited

Definition at line 110 of file DataAccess.h.

◆ m_l1_tbp

std::vector< unsigned int >* D3PD::Trig::DataAccess::m_l1_tbp
privateinherited

Definition at line 118 of file DataAccess.h.

◆ m_l1psk

UInt_t D3PD::Trig::DataAccess::m_l1psk
privateinherited

Definition at line 103 of file DataAccess.h.

◆ m_l2_passedThrough

std::vector< short >* D3PD::Trig::DataAccess::m_l2_passedThrough
privateinherited

Definition at line 134 of file DataAccess.h.

◆ m_l2_physics

std::vector< short >* D3PD::Trig::DataAccess::m_l2_physics
privateinherited

Definition at line 111 of file DataAccess.h.

◆ m_l2_raw

std::vector< short >* D3PD::Trig::DataAccess::m_l2_raw
privateinherited

Definition at line 120 of file DataAccess.h.

◆ m_l2_resurrected

std::vector< short >* D3PD::Trig::DataAccess::m_l2_resurrected
privateinherited

Definition at line 128 of file DataAccess.h.

◆ m_prefix

const TString D3PD::Trig::DataAccess::m_prefix
privateinherited

Prefix for the trigger branch names.

Definition at line 95 of file DataAccess.h.

◆ m_smk

UInt_t D3PD::Trig::DataAccess::m_smk
privateinherited

Definition at line 102 of file DataAccess.h.

◆ m_tree

TTree* D3PD::Trig::DataAccess::m_tree
privateinherited

The event-wise TTree.

Definition at line 94 of file DataAccess.h.


The documentation for this class was generated from the following file:
D3PD::Trig::IDataAccess::Resurrected
@ Resurrected
Definition: IDataAccess.h:60
D3PD::Trig::IDataAccess::TAV
@ TAV
Definition: IDataAccess.h:54
D3PD::Trig::IDataAccess::TAP
@ TAP
Definition: IDataAccess.h:53
D3PD::Trig::IDataAccess::PassedThrough
@ PassedThrough
Definition: IDataAccess.h:61
D3PD::Trig::IDataAccess::Physics
@ Physics
Definition: IDataAccess.h:58
D3PD::Trig::IDataAccess::Raw
@ Raw
Definition: IDataAccess.h:59
D3PD::Trig::IDataAccess::TBP
@ TBP
Definition: IDataAccess.h:52