ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
MuonVal::EventInfoBranch Class Reference

#include <EventInfoBranch.h>

Inheritance diagram for MuonVal::EventInfoBranch:
Collaboration diagram for MuonVal::EventInfoBranch:

Public Types

enum  WriteOpts {
  isMC = 1, writePileUp = 1 << 1, writePRW = 1 << 2, writeBeamSpot = 1 << 3,
  writeTrigger = 1 << 4, writeLHE = 1<<5
}
 
using DataDependency = SG::VarHandleKey *
 

Public Member Functions

 EventInfoBranch (MuonTesterTree &tree, unsigned int write_mask, const std::string &evtKey="EventInfo")
 
bool fill (const EventContext &ctx) override final
 The fill method checks if enough information is provided such that the branch is cleared from the information of the prevoius event and in cases of that updates did no happen befure a default value is provided. More...
 
bool init () override final
 The init method checks whether the branch name has already registered to the MuonTree and tries then to add the branch to the tree --> return false if the branch has already been defined or the inclusion of the branch to the tree failed or the name of the branch is empty. More...
 
std::string name () const override final
 Returns the name of the branch. More...
 
bool initialized () const
 Returns whether the object has been initialized or not The outcome of the variable is bound to a successful call of the addToTree method. More...
 
TTree * tree () override final
 Returns the underlying TTree object. More...
 
const TTree * tree () const override final
 
std::vector< DataDependencydata_dependencies () override final
 Returns the data dependencies needed by the MuonTesterBranch. More...
 
bool msgLvl (const MSG::Level lvl) const
 Test the output level. More...
 
MsgStream & msg () const
 The standard message stream. More...
 
MsgStream & msg (const MSG::Level lvl) const
 The standard message stream. More...
 
void setLevel (MSG::Level lvl)
 Change the current logging level. More...
 

Static Public Member Functions

static void setNumLHE (unsigned int numLHE) ATLAS_THREAD_SAFE
 Specify the number of LHE variations that are available in the sample. More...
 
static unsigned int getNumLHE ()
 
static std::string eraseWhiteSpaces (const std::string &In)
 

Protected Member Functions

template<class T >
bool addToTree (T &variable)
 Connects the Memory buffer with the TTree. More...
 
template<class Key >
bool declare_dependency (Key &key)
 Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm. More...
 
MuonTesterTreeparent ()
 Returns the reference to the MuonTesterTree parent. More...
 

Private Types

using EvtInfoDecor = SG::ReadDecorHandleKey< xAOD::EventInfo >
 Access to the pile up weights if requested. More...
 

Private Member Functions

void initMessaging () const
 Initialize our message level and MessageSvc. More...
 

Private Attributes

SG::ReadHandleKey< xAOD::EventInfom_key {"EventInfo"}
 Common access to the EventInfo. More...
 
std::vector< EvtInfoDecorm_prwKeys {}
 
unsigned int m_writemask {0}
 
ScalarBranch< unsigned long long > & m_evtNumber {parent().newScalar<unsigned long long>("eventNumber")}
 
ScalarBranch< uint32_t > & m_runNumber {parent().newScalar<uint32_t>("runNumber")}
 
ScalarBranch< uint32_t > & m_lbNumber {parent().newScalar<uint32_t>("lbNumber")}
 
ScalarBranch< uint32_t > & m_bcid {parent().newScalar<uint32_t>("bcid")}
 
ScalarBranch< uint32_t > & m_l1id {parent().newScalar<uint32_t>("l1id")}
 Toggled by the write trigger flag. More...
 
ScalarBranch< float > & m_average_mu {parent().newScalar<float>("average_mu")}
 Toggled by the Write PileUp flag. More...
 
ScalarBranch< float > & m_actual_mu {parent().newScalar<float>("actual_mu")}
 
ScalarBranch< uint32_t > & m_mcChannel {parent().newScalar<uint32_t>("mcChannelNumber")}
 
ScalarBranch< double > & m_weight {parent().newScalar<double>("mcEventWeight")}
 Removed from output if writeLHE is switched on. More...
 
std::map< unsigned int, std::shared_ptr< ScalarBranch< double > > > m_lhe_weights {}
 
ScalarBranch< double > & m_prwWeight {parent().newScalar<double>("prwWeight")}
 Branches toggled by the write prw Flag. More...
 
ScalarBranch< uint32_t > & m_rnd_run {parent().newScalar<uint32_t>("randomRunNumber")}
 
ScalarBranch< uint32_t > & m_rnd_lumi_block {parent().newScalar<uint32_t>("randomLumiBlockNumber")}
 
ScalarBranch< double > & m_beamSpotWeight {parent().newScalar<double>("BeamSpotWeight")}
 
TTree * m_tree {nullptr}
 
MuonTesterTreem_parent {nullptr}
 
std::string m_name {}
 
bool m_init {false}
 
std::vector< DataDependencym_dependencies {}
 
std::string m_nm
 Message source name. More...
 
boost::thread_specific_ptr< MsgStream > m_msg_tls
 MsgStream instance (a std::cout like with print-out levels) More...
 
std::atomic< IMessageSvc * > m_imsg { nullptr }
 MessageSvc pointer. More...
 
std::atomic< MSG::Level > m_lvl { MSG::NIL }
 Current logging level. More...
 

Static Private Attributes

static std::atomic< unsigned int > s_num_lhe ATLAS_THREAD_SAFE
 

Detailed Description

Definition at line 15 of file EventInfoBranch.h.

Member Typedef Documentation

◆ DataDependency

Definition at line 39 of file IMuonTesterBranch.h.

◆ EvtInfoDecor

Access to the pile up weights if requested.

Definition at line 48 of file EventInfoBranch.h.

Member Enumeration Documentation

◆ WriteOpts

Enumerator
isMC 

Flag determining whether the branch is simulation.

writePileUp 

Write pile-up information.

writePRW 

Write the corrected pile-up.

writeBeamSpot 

Write the beamspot weight.

writeTrigger 

Write the trigger information.

writeLHE 

Write each of the LHE weights.

Definition at line 18 of file EventInfoBranch.h.

18  {
20  isMC = 1,
22  writePileUp = 1 << 1,
24  writePRW = 1 << 2,
26  writeBeamSpot = 1 << 3,
28  writeTrigger = 1 << 4,
30  writeLHE = 1<<5
31  };

Constructor & Destructor Documentation

◆ EventInfoBranch()

MuonVal::EventInfoBranch::EventInfoBranch ( MuonTesterTree tree,
unsigned int  write_mask,
const std::string &  evtKey = "EventInfo" 
)

Definition at line 17 of file EventInfoBranch.cxx.

18  :
19  MuonTesterBranch{tree, " event info "},
20  m_key{evtKey},
21  m_writemask{write_mask}{
23  if (m_writemask & WriteOpts::writeLHE) {
24  for (unsigned int lhe = 1; lhe < s_num_lhe ; ++lhe ) {
25  std::shared_ptr<ScalarBranch<double>>& new_br = m_lhe_weights[lhe];
26  new_br = std::make_shared<ScalarBranch<double>>(tree.tree(), "mcEventWeight_LHE_" + std::to_string(lhe),0.);
27  if (!tree.addBranch(new_br)) {
28  THROW_EXCEPTION("EventInfoBranch: Failed to create Scalar branch in c'tor");
29  }
30  }
31  }
32  } else {
33  tree.disableBranch(m_mcChannel.name());
34  tree.disableBranch(m_weight.name());
35  m_writemask&= ~(WriteOpts::writePRW | WriteOpts::writeBeamSpot);
36  }
37 
38  if (m_writemask & WriteOpts::writePRW) {
39  m_prwKeys.emplace_back(m_key.key() + "." + SG::AuxTypeRegistry::instance().getName(acc_Random.auxid()));
40  m_prwKeys.emplace_back(m_key.key() + "." + SG::AuxTypeRegistry::instance().getName(acc_LumiBlock.auxid()));
41  m_prwKeys.emplace_back(m_key.key() + "." + SG::AuxTypeRegistry::instance().getName(acc_PuW.auxid()));
42  } else {
43  tree.disableBranch(m_prwWeight.name());
44  tree.disableBranch(m_rnd_run.name());
45  tree.disableBranch(m_rnd_lumi_block.name());
46  }
47  if (!(m_writemask & WriteOpts::writeBeamSpot)) tree.disableBranch(m_beamSpotWeight.name());
48  if (!(m_writemask & WriteOpts::writePileUp)) {
49  tree.disableBranch(m_average_mu.name());
50  tree.disableBranch(m_actual_mu.name());
51  }
52  if (!(m_writemask & WriteOpts::writeTrigger)) tree.disableBranch(m_l1id.name());
53 }

Member Function Documentation

◆ addToTree()

template<class T >
bool MuonVal::MuonTesterBranch::addToTree ( T &  variable)
protectedinherited

Connects the Memory buffer with the TTree.

◆ data_dependencies()

std::vector< MuonTesterBranch::DataDependency > MuonVal::MuonTesterBranch::data_dependencies ( )
finaloverridevirtualinherited

Returns the data dependencies needed by the MuonTesterBranch.

Implements MuonVal::IMuonTesterBranch.

Definition at line 61 of file MuonTesterBranch.cxx.

61 { return m_dependencies;}

◆ declare_dependency()

template<class Key >
bool MuonVal::MuonTesterBranch::declare_dependency ( Key &  key)
protectedinherited

Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.

◆ eraseWhiteSpaces()

std::string MuonVal::MuonTesterBranch::eraseWhiteSpaces ( const std::string &  In)
staticinherited

Definition at line 56 of file MuonTesterBranch.cxx.

56  {
57  std::string out = In;
58  out.erase(std::remove_if(out.begin(), out.end(), isspace), out.end());
59  return out;
60 }

◆ fill()

bool MuonVal::EventInfoBranch::fill ( const EventContext &  ctx)
finaloverridevirtual

The fill method checks if enough information is provided such that the branch is cleared from the information of the prevoius event and in cases of that updates did no happen befure a default value is provided.

--> returns false if no update is called or the dummy value has not been defined

Implements MuonVal::IMuonTesterBranch.

Definition at line 57 of file EventInfoBranch.cxx.

57  {
59  if (!evt_info.isValid()) {
60  ATH_MSG_ERROR("Could not retrieve the EventInfo " << m_key.fullKey());
61  return false;
62  }
63 
64  m_evtNumber = evt_info->eventNumber();
65  m_runNumber = evt_info->runNumber();
66  m_lbNumber = evt_info->lumiBlock();
67  m_bcid = evt_info->bcid();
68 
69  m_average_mu = evt_info->averageInteractionsPerCrossing();
70  m_actual_mu = evt_info->actualInteractionsPerCrossing();
71  if (m_writemask & WriteOpts::writeTrigger) {
72  m_l1id = evt_info->extendedLevel1ID();
73  }
75  m_mcChannel = evt_info->mcChannelNumber();
76  m_weight = evt_info->mcEventWeight(0);
77  const unsigned int n_weights = evt_info->mcEventWeights().size();
78  for (auto & [lhe_idx, lhe_branch] : m_lhe_weights) {
79  (*lhe_branch) = lhe_idx < n_weights ? evt_info->mcEventWeight(lhe_idx) : 0.;
80  }
81  }
82  if (m_writemask & WriteOpts::writePRW) {
83  m_prwWeight = acc_PuW(*evt_info);
84  m_rnd_run = acc_Random(*evt_info);
85  m_rnd_lumi_block = acc_LumiBlock(*evt_info);
86  }
87  if (m_writemask & WriteOpts::writeBeamSpot) {
88  m_beamSpotWeight = evt_info->beamSpotWeight();
89  }
90  return true;
91 }

◆ getNumLHE()

unsigned int MuonVal::EventInfoBranch::getNumLHE ( )
static

Definition at line 16 of file EventInfoBranch.cxx.

16 { return s_num_lhe;}

◆ init()

bool MuonVal::EventInfoBranch::init ( )
finaloverridevirtual

The init method checks whether the branch name has already registered to the MuonTree and tries then to add the branch to the tree --> return false if the branch has already been defined or the inclusion of the branch to the tree failed or the name of the branch is empty.

Implements MuonVal::IMuonTesterBranch.

Definition at line 92 of file EventInfoBranch.cxx.

92  {
93  return declare_dependency(m_key) && std::find_if(m_prwKeys.begin(), m_prwKeys.end(),
94  [this](EvtInfoDecor& decor){
95  return !declare_dependency(decor);
96  }) == m_prwKeys.end();
97 }

◆ initialized()

bool MuonVal::MuonTesterBranch::initialized ( ) const
inherited

Returns whether the object has been initialized or not The outcome of the variable is bound to a successful call of the addToTree method.

Definition at line 52 of file MuonTesterBranch.cxx.

52 { return m_init; }

◆ initMessaging()

void AthMessaging::initMessaging ( ) const
privateinherited

Initialize our message level and MessageSvc.

This method should only be called once.

Definition at line 39 of file AthMessaging.cxx.

40 {
42  m_lvl = m_imsg ?
43  static_cast<MSG::Level>( m_imsg.load()->outputLevel(m_nm) ) :
44  MSG::INFO;
45 }

◆ msg() [1/2]

MsgStream & AthMessaging::msg ( ) const
inlineinherited

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 164 of file AthMessaging.h.

165 {
166  MsgStream* ms = m_msg_tls.get();
167  if (!ms) {
168  if (!m_initialized.test_and_set()) initMessaging();
169  ms = new MsgStream(m_imsg,m_nm);
170  m_msg_tls.reset( ms );
171  }
172 
173  ms->setLevel (m_lvl);
174  return *ms;
175 }

◆ msg() [2/2]

MsgStream & AthMessaging::msg ( const MSG::Level  lvl) const
inlineinherited

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 179 of file AthMessaging.h.

180 { return msg() << lvl; }

◆ msgLvl()

bool AthMessaging::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Test the output level.

Parameters
lvlThe message level to test against
Returns
boolean Indicating if messages at given level will be printed
Return values
trueMessages at level "lvl" will be printed

Definition at line 151 of file AthMessaging.h.

152 {
153  if (!m_initialized.test_and_set()) initMessaging();
154  if (m_lvl <= lvl) {
155  msg() << lvl;
156  return true;
157  } else {
158  return false;
159  }
160 }

◆ name()

std::string MuonVal::MuonTesterBranch::name ( ) const
finaloverridevirtualinherited

Returns the name of the branch.

Implements MuonVal::IMuonTesterBranch.

Definition at line 51 of file MuonTesterBranch.cxx.

51 { return m_name; }

◆ parent()

MuonTesterTree & MuonVal::MuonTesterBranch::parent ( )
protectedinherited

Returns the reference to the MuonTesterTree parent.

Definition at line 38 of file MuonTesterBranch.cxx.

38  {
39  if (!m_parent) {
40  ATH_MSG_WARNING("The parent of " << name() << " is null.");
41  }
42  return *m_parent;
43 }

◆ setLevel()

void AthMessaging::setLevel ( MSG::Level  lvl)
inherited

Change the current logging level.

Use this rather than msg().setLevel() for proper operation with MT.

Definition at line 28 of file AthMessaging.cxx.

29 {
30  m_lvl = lvl;
31 }

◆ setNumLHE()

void MuonVal::EventInfoBranch::setNumLHE ( unsigned int  numLHE)
static

Specify the number of LHE variations that are available in the sample.

Definition at line 15 of file EventInfoBranch.cxx.

15 { s_num_lhe = n;}

◆ tree() [1/2]

const TTree * MuonVal::MuonTesterBranch::tree ( ) const
finaloverridevirtualinherited

Implements MuonVal::IMuonTesterBranch.

Definition at line 54 of file MuonTesterBranch.cxx.

54 { return m_tree; }

◆ tree() [2/2]

TTree * MuonVal::MuonTesterBranch::tree ( )
finaloverridevirtualinherited

Returns the underlying TTree object.

Implements MuonVal::IMuonTesterBranch.

Definition at line 53 of file MuonTesterBranch.cxx.

53 { return m_tree; }

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::atomic<unsigned int> s_num_lhe MuonVal::EventInfoBranch::ATLAS_THREAD_SAFE
staticprivate

Definition at line 44 of file EventInfoBranch.h.

◆ m_actual_mu

ScalarBranch<float>& MuonVal::EventInfoBranch::m_actual_mu {parent().newScalar<float>("actual_mu")}
private

Definition at line 64 of file EventInfoBranch.h.

◆ m_average_mu

ScalarBranch<float>& MuonVal::EventInfoBranch::m_average_mu {parent().newScalar<float>("average_mu")}
private

Toggled by the Write PileUp flag.

Definition at line 63 of file EventInfoBranch.h.

◆ m_bcid

ScalarBranch<uint32_t>& MuonVal::EventInfoBranch::m_bcid {parent().newScalar<uint32_t>("bcid")}
private

Definition at line 57 of file EventInfoBranch.h.

◆ m_beamSpotWeight

ScalarBranch<double>& MuonVal::EventInfoBranch::m_beamSpotWeight {parent().newScalar<double>("BeamSpotWeight")}
private

Definition at line 77 of file EventInfoBranch.h.

◆ m_dependencies

std::vector<DataDependency> MuonVal::MuonTesterBranch::m_dependencies {}
privateinherited

Definition at line 62 of file MuonTesterBranch.h.

◆ m_evtNumber

ScalarBranch<unsigned long long>& MuonVal::EventInfoBranch::m_evtNumber {parent().newScalar<unsigned long long>("eventNumber")}
private

Definition at line 53 of file EventInfoBranch.h.

◆ m_imsg

std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr }
mutableprivateinherited

MessageSvc pointer.

Definition at line 135 of file AthMessaging.h.

◆ m_init

bool MuonVal::MuonTesterBranch::m_init {false}
privateinherited

Definition at line 61 of file MuonTesterBranch.h.

◆ m_key

SG::ReadHandleKey<xAOD::EventInfo> MuonVal::EventInfoBranch::m_key {"EventInfo"}
private

Common access to the EventInfo.

Definition at line 46 of file EventInfoBranch.h.

◆ m_l1id

ScalarBranch<uint32_t>& MuonVal::EventInfoBranch::m_l1id {parent().newScalar<uint32_t>("l1id")}
private

Toggled by the write trigger flag.

Definition at line 60 of file EventInfoBranch.h.

◆ m_lbNumber

ScalarBranch<uint32_t>& MuonVal::EventInfoBranch::m_lbNumber {parent().newScalar<uint32_t>("lbNumber")}
private

Definition at line 56 of file EventInfoBranch.h.

◆ m_lhe_weights

std::map<unsigned int, std::shared_ptr<ScalarBranch<double> > > MuonVal::EventInfoBranch::m_lhe_weights {}
private

Definition at line 71 of file EventInfoBranch.h.

◆ m_lvl

std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL }
mutableprivateinherited

Current logging level.

Definition at line 138 of file AthMessaging.h.

◆ m_mcChannel

ScalarBranch<uint32_t>& MuonVal::EventInfoBranch::m_mcChannel {parent().newScalar<uint32_t>("mcChannelNumber")}
private

Disabled if the job runs on data #

Definition at line 68 of file EventInfoBranch.h.

◆ m_msg_tls

boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls
mutableprivateinherited

MsgStream instance (a std::cout like with print-out levels)

Definition at line 132 of file AthMessaging.h.

◆ m_name

std::string MuonVal::MuonTesterBranch::m_name {}
privateinherited

Definition at line 60 of file MuonTesterBranch.h.

◆ m_nm

std::string AthMessaging::m_nm
privateinherited

Message source name.

Definition at line 129 of file AthMessaging.h.

◆ m_parent

MuonTesterTree* MuonVal::MuonTesterBranch::m_parent {nullptr}
privateinherited

Definition at line 59 of file MuonTesterBranch.h.

◆ m_prwKeys

std::vector<EvtInfoDecor> MuonVal::EventInfoBranch::m_prwKeys {}
private

Definition at line 49 of file EventInfoBranch.h.

◆ m_prwWeight

ScalarBranch<double>& MuonVal::EventInfoBranch::m_prwWeight {parent().newScalar<double>("prwWeight")}
private

Branches toggled by the write prw Flag.

Definition at line 74 of file EventInfoBranch.h.

◆ m_rnd_lumi_block

ScalarBranch<uint32_t>& MuonVal::EventInfoBranch::m_rnd_lumi_block {parent().newScalar<uint32_t>("randomLumiBlockNumber")}
private

Definition at line 76 of file EventInfoBranch.h.

◆ m_rnd_run

ScalarBranch<uint32_t>& MuonVal::EventInfoBranch::m_rnd_run {parent().newScalar<uint32_t>("randomRunNumber")}
private

Definition at line 75 of file EventInfoBranch.h.

◆ m_runNumber

ScalarBranch<uint32_t>& MuonVal::EventInfoBranch::m_runNumber {parent().newScalar<uint32_t>("runNumber")}
private

Definition at line 54 of file EventInfoBranch.h.

◆ m_tree

TTree* MuonVal::MuonTesterBranch::m_tree {nullptr}
privateinherited

Definition at line 58 of file MuonTesterBranch.h.

◆ m_weight

ScalarBranch<double>& MuonVal::EventInfoBranch::m_weight {parent().newScalar<double>("mcEventWeight")}
private

Removed from output if writeLHE is switched on.

Definition at line 70 of file EventInfoBranch.h.

◆ m_writemask

unsigned int MuonVal::EventInfoBranch::m_writemask {0}
private

Definition at line 50 of file EventInfoBranch.h.


The documentation for this class was generated from the following files:
AthMessaging::m_lvl
std::atomic< MSG::Level > m_lvl
Current logging level.
Definition: AthMessaging.h:138
MuonVal::EventInfoBranch::m_average_mu
ScalarBranch< float > & m_average_mu
Toggled by the Write PileUp flag.
Definition: EventInfoBranch.h:63
MuonVal::EventInfoBranch::m_mcChannel
ScalarBranch< uint32_t > & m_mcChannel
Definition: EventInfoBranch.h:68
MuonVal::EventInfoBranch::m_lbNumber
ScalarBranch< uint32_t > & m_lbNumber
Definition: EventInfoBranch.h:56
SG::AuxTypeRegistry::instance
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Definition: AuxTypeRegistry.cxx:640
MuonVal::EventInfoBranch::isMC
@ isMC
Flag determining whether the branch is simulation.
Definition: EventInfoBranch.h:20
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
MuonVal::EventInfoBranch::m_weight
ScalarBranch< double > & m_weight
Removed from output if writeLHE is switched on.
Definition: EventInfoBranch.h:70
SG::AuxTypeRegistry::getName
std::string getName(SG::auxid_t auxid) const
Return the name of an aux data item.
Definition: AuxTypeRegistry.cxx:882
MuonVal::MuonTesterBranch::m_dependencies
std::vector< DataDependency > m_dependencies
Definition: MuonTesterBranch.h:62
MuonVal::MuonTesterBranch::m_tree
TTree * m_tree
Definition: MuonTesterBranch.h:58
test_athena_ntuple_filter.evt_info
evt_info
Definition: test_athena_ntuple_filter.py:24
MuonVal::EventInfoBranch::writeBeamSpot
@ writeBeamSpot
Write the beamspot weight.
Definition: EventInfoBranch.h:26
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
MuonVal::EventInfoBranch::m_key
SG::ReadHandleKey< xAOD::EventInfo > m_key
Common access to the EventInfo.
Definition: EventInfoBranch.h:46
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
MuonVal::MuonTesterBranch::MuonTesterBranch
MuonTesterBranch(MuonTesterTree &tree, const std::string &br_name)
Definition: MuonTesterBranch.cxx:33
THROW_EXCEPTION
#define THROW_EXCEPTION(MSG)
Definition: MMReadoutElement.cxx:48
MuonVal::EventInfoBranch::m_runNumber
ScalarBranch< uint32_t > & m_runNumber
Definition: EventInfoBranch.h:54
AthMessaging::m_imsg
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
Definition: AthMessaging.h:135
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
MuonVal::MuonTesterBranch::tree
TTree * tree() override final
Returns the underlying TTree object.
Definition: MuonTesterBranch.cxx:53
MuonVal::MuonTesterBranch::m_parent
MuonTesterTree * m_parent
Definition: MuonTesterBranch.h:59
MuonVal::EventInfoBranch::EvtInfoDecor
SG::ReadDecorHandleKey< xAOD::EventInfo > EvtInfoDecor
Access to the pile up weights if requested.
Definition: EventInfoBranch.h:48
MuonVal::MuonTesterBranch::declare_dependency
bool declare_dependency(Key &key)
Declares the ReadHandle/ ReadCondHandleKey as data dependency of the algorithm.
MuonVal::EventInfoBranch::m_rnd_lumi_block
ScalarBranch< uint32_t > & m_rnd_lumi_block
Definition: EventInfoBranch.h:76
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
beamspotman.n
n
Definition: beamspotman.py:731
MuonVal::EventInfoBranch::m_rnd_run
ScalarBranch< uint32_t > & m_rnd_run
Definition: EventInfoBranch.h:75
MuonVal::EventInfoBranch::m_actual_mu
ScalarBranch< float > & m_actual_mu
Definition: EventInfoBranch.h:64
MuonVal::MuonTesterBranch::m_init
bool m_init
Definition: MuonTesterBranch.h:61
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
MuonVal::MuonTesterBranch::name
std::string name() const override final
Returns the name of the branch.
Definition: MuonTesterBranch.cxx:51
MuonVal::EventInfoBranch::m_l1id
ScalarBranch< uint32_t > & m_l1id
Toggled by the write trigger flag.
Definition: EventInfoBranch.h:60
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
MuonVal::EventInfoBranch::m_prwWeight
ScalarBranch< double > & m_prwWeight
Branches toggled by the write prw Flag.
Definition: EventInfoBranch.h:74
MuonVal::EventInfoBranch::m_beamSpotWeight
ScalarBranch< double > & m_beamSpotWeight
Definition: EventInfoBranch.h:77
MuonVal::EventInfoBranch::m_evtNumber
ScalarBranch< unsigned long long > & m_evtNumber
Definition: EventInfoBranch.h:53
MuonVal::MuonTesterBranch::m_name
std::string m_name
Definition: MuonTesterBranch.h:60
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthMessaging::m_nm
std::string m_nm
Message source name.
Definition: AthMessaging.h:129
MuonVal::EventInfoBranch::writePRW
@ writePRW
Write the corrected pile-up.
Definition: EventInfoBranch.h:24
MuonVal::EventInfoBranch::writePileUp
@ writePileUp
Write pile-up information.
Definition: EventInfoBranch.h:22
MuonVal::EventInfoBranch::m_prwKeys
std::vector< EvtInfoDecor > m_prwKeys
Definition: EventInfoBranch.h:49
EventInfoRead.isMC
isMC
Definition: EventInfoRead.py:11
AthMessaging::initMessaging
void initMessaging() const
Initialize our message level and MessageSvc.
Definition: AthMessaging.cxx:39
MuonVal::EventInfoBranch::writeTrigger
@ writeTrigger
Write the trigger information.
Definition: EventInfoBranch.h:28
MuonVal::EventInfoBranch::writeLHE
@ writeLHE
Write each of the LHE weights.
Definition: EventInfoBranch.h:30
AthMessaging::m_msg_tls
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
Definition: AthMessaging.h:132
MuonVal::EventInfoBranch::m_writemask
unsigned int m_writemask
Definition: EventInfoBranch.h:50
MuonVal::EventInfoBranch::m_bcid
ScalarBranch< uint32_t > & m_bcid
Definition: EventInfoBranch.h:57
MuonVal::EventInfoBranch::m_lhe_weights
std::map< unsigned int, std::shared_ptr< ScalarBranch< double > > > m_lhe_weights
Definition: EventInfoBranch.h:71