ATLAS Offline Software
EventFormatElement.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: EventFormatElement.h 568357 2013-11-01 16:21:30Z krasznaa $
8 #ifndef XAODEVENTFORMAT_EVENTFORMATELEMENT_H
9 #define XAODEVENTFORMAT_EVENTFORMATELEMENT_H
10 
11 // System include(s):
12 extern "C" {
13 # include <stdint.h>
14 }
15 
16 // STL include(s):
17 #include <string>
18 #include <iosfwd>
19 
20 #include "CxxUtils/sgkey_t.h"
21 
22 namespace xAOD {
23 
40 
41  public:
43 
45  EventFormatElement( const std::string& branchName = "",
46  const std::string& className = "",
47  const std::string& parentName = "",
48  sgkey_t hash = 0 );
49 
51  const std::string& branchName() const;
53  const std::string& className() const;
55  const std::string& parentName() const;
57  sgkey_t hash() const;
58 
59  private:
61  std::string m_branchName;
63  std::string m_className;
65  std::string m_parentName;
68 
69  }; // class EventFormatElement_v1
70 
72  std::ostream& operator<<( std::ostream& out,
73  const EventFormatElement& element );
74 
75 } // namespace xAOD
76 
77 #endif // XAODEVENTFORMAT_EVENTFORMATELEMENT_H
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::EventFormatElement::parentName
const std::string & parentName() const
Get the name of the parent auxiliary object.
Definition: EventFormatElement.cxx:42
xAOD::EventFormatElement
Class describing one branch of the ROOT file.
Definition: EventFormatElement.h:39
xAOD::EventFormatElement::branchName
const std::string & branchName() const
Get the branch/key name.
Definition: EventFormatElement.cxx:30
xAOD::EventFormatElement::m_className
std::string m_className
The class name belonging to this branch/key.
Definition: EventFormatElement.h:63
xAOD::EventFormatElement::m_parentName
std::string m_parentName
The name of the parent auxiliary object.
Definition: EventFormatElement.h:65
xAOD::EventFormatElement::hash
sgkey_t hash() const
Get the hash belonging to this branch/key.
Definition: EventFormatElement.cxx:48
xAOD::EventFormatElement::sgkey_t
SG::sgkey_t sgkey_t
Definition: EventFormatElement.h:42
xAOD::EventFormatElement::className
const std::string & className() const
Get the class name of this branch/key.
Definition: EventFormatElement.cxx:36
xAOD::EventFormatElement::m_branchName
std::string m_branchName
The branch/key name.
Definition: EventFormatElement.h:61
xAOD::EventFormatElement::EventFormatElement
EventFormatElement(const std::string &branchName="", const std::string &className="", const std::string &parentName="", sgkey_t hash=0)
Constructor with all members specified.
Definition: EventFormatElement.cxx:20
SG::sgkey_t
uint32_t sgkey_t
Type used for hashed StoreGate key+CLID pairs.
Definition: CxxUtils/CxxUtils/sgkey_t.h:32
test_pythinning.out
out
Definition: test_pythinning.py:94
xAOD::EventFormatElement::m_hash
sgkey_t m_hash
The hash belonging to this branch/key.
Definition: EventFormatElement.h:67
sgkey_t.h
Define the type used for hashed StoreGate key+CLID pairs.
xAOD::operator<<
std::ostream & operator<<(std::ostream &out, const std::pair< FIRST, SECOND > &pair)
Helper print operator.
Definition: RDataSource.cxx:53