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

Class handling the access to the trigger data in the events. More...

#include <DataAccess.h>

Inheritance diagram for D3PD::Trig::DataAccess:
Collaboration diagram for D3PD::Trig::DataAccess:

Public Member Functions

 DataAccess (TTree *eventTree=0, const TString &prefix="trig_")
 Constructor specifying the event-wise tree. More...
 
 ~DataAccess ()
 Destructor. 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...
 

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
 

Detailed Description

Class handling the access to the trigger data in the events.

   The TDT implementation is broken into separate pieces. This piece
   takes care of accessing the trigger decision information.

   Should not be used directly.
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
339277
Date
2011-01-07 17:30:10 +0100 (Fri, 07 Jan 2011)

Definition at line 53 of file DataAccess.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

◆ DataAccess()

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

Constructor specifying the event-wise tree.

◆ ~DataAccess()

D3PD::Trig::DataAccess::~DataAccess ( )

Destructor.

Member Function Documentation

◆ GetDetailLevel()

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

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
protectedvirtual

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 
)

Load a new entry (new event)

◆ GetEventTree()

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

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

◆ GetHLTPSK()

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

Get the HLT prescale key of the current event.

Implements D3PD::Trig::IDataAccess.

◆ GetL1PSK()

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

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
protectedvirtual

Function for retrieving the encoded LVL1 result.

Implements D3PD::Trig::IDataAccess.

◆ GetL2Result()

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

Function for retrieving the encoded LVL2 result.

Implements D3PD::Trig::IDataAccess.

◆ GetSMK()

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

Get the Super Master Key of the current event.

Implements D3PD::Trig::IDataAccess.

◆ Initialize()

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

Initialize the object from the specified TTree.

◆ Reset()

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

Reset the object.

◆ SetEventTree()

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

Set the pointer to the event-wise treee.

Member Data Documentation

◆ m_b_ef_passedThrough

TBranch* D3PD::Trig::DataAccess::m_b_ef_passedThrough
private

Definition at line 138 of file DataAccess.h.

◆ m_b_ef_physics

TBranch* D3PD::Trig::DataAccess::m_b_ef_physics
private

Definition at line 116 of file DataAccess.h.

◆ m_b_ef_raw

TBranch* D3PD::Trig::DataAccess::m_b_ef_raw
private

Definition at line 126 of file DataAccess.h.

◆ m_b_ef_resurrected

TBranch* D3PD::Trig::DataAccess::m_b_ef_resurrected
private

Definition at line 132 of file DataAccess.h.

◆ m_b_hltpsk

TBranch* D3PD::Trig::DataAccess::m_b_hltpsk
private

Definition at line 108 of file DataAccess.h.

◆ m_b_l1_tap

TBranch* D3PD::Trig::DataAccess::m_b_l1_tap
private

Definition at line 124 of file DataAccess.h.

◆ m_b_l1_tav

TBranch* D3PD::Trig::DataAccess::m_b_l1_tav
private

Definition at line 114 of file DataAccess.h.

◆ m_b_l1_tbp

TBranch* D3PD::Trig::DataAccess::m_b_l1_tbp
private

Definition at line 123 of file DataAccess.h.

◆ m_b_l1psk

TBranch* D3PD::Trig::DataAccess::m_b_l1psk
private

Definition at line 107 of file DataAccess.h.

◆ m_b_l2_passedThrough

TBranch* D3PD::Trig::DataAccess::m_b_l2_passedThrough
private

Definition at line 137 of file DataAccess.h.

◆ m_b_l2_physics

TBranch* D3PD::Trig::DataAccess::m_b_l2_physics
private

Definition at line 115 of file DataAccess.h.

◆ m_b_l2_raw

TBranch* D3PD::Trig::DataAccess::m_b_l2_raw
private

Definition at line 125 of file DataAccess.h.

◆ m_b_l2_resurrected

TBranch* D3PD::Trig::DataAccess::m_b_l2_resurrected
private

Definition at line 131 of file DataAccess.h.

◆ m_b_smk

TBranch* D3PD::Trig::DataAccess::m_b_smk
private

Definition at line 106 of file DataAccess.h.

◆ m_detailLevel

Int_t D3PD::Trig::DataAccess::m_detailLevel
private

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
private

Definition at line 135 of file DataAccess.h.

◆ m_ef_physics

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

Definition at line 112 of file DataAccess.h.

◆ m_ef_raw

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

Definition at line 121 of file DataAccess.h.

◆ m_ef_resurrected

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

Definition at line 129 of file DataAccess.h.

◆ m_hltpsk

UInt_t D3PD::Trig::DataAccess::m_hltpsk
private

Definition at line 104 of file DataAccess.h.

◆ m_initialized

Bool_t D3PD::Trig::DataAccess::m_initialized
private

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
private

Definition at line 119 of file DataAccess.h.

◆ m_l1_tav

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

Definition at line 110 of file DataAccess.h.

◆ m_l1_tbp

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

Definition at line 118 of file DataAccess.h.

◆ m_l1psk

UInt_t D3PD::Trig::DataAccess::m_l1psk
private

Definition at line 103 of file DataAccess.h.

◆ m_l2_passedThrough

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

Definition at line 134 of file DataAccess.h.

◆ m_l2_physics

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

Definition at line 111 of file DataAccess.h.

◆ m_l2_raw

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

Definition at line 120 of file DataAccess.h.

◆ m_l2_resurrected

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

Definition at line 128 of file DataAccess.h.

◆ m_prefix

const TString D3PD::Trig::DataAccess::m_prefix
private

Prefix for the trigger branch names.

Definition at line 95 of file DataAccess.h.

◆ m_smk

UInt_t D3PD::Trig::DataAccess::m_smk
private

Definition at line 102 of file DataAccess.h.

◆ m_tree

TTree* D3PD::Trig::DataAccess::m_tree
private

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