ATLAS Offline Software
I4MomDumper.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // I4MomDumper.h
8 // Header file for class I4MomDumper
9 // Author: S.Binet<binet@cern.ch>
11 #ifndef EVENTCOMMONALGS_I4MOMDUMPER_H
12 #define EVENTCOMMONALGS_I4MOMDUMPER_H
13 
14 // STL includes
15 #include <string>
16 #include <iosfwd>
17 
18 
19 // FrameWork includes
21 #include "GaudiKernel/ServiceHandle.h"
22 
23 // Forward declaration
24 class I4Momentum;
25 
26 class I4MomDumper : public AthAlgorithm
27 {
28  public:
29  struct Display {
30  enum Type {
31  EEtaPhiM = 0,
35 
36  Size
37  };
38  };
40  // Public methods:
42  public:
43 
44  // Copy constructor:
45 
47  I4MomDumper( const std::string& name, ISvcLocator* pSvcLocator );
48 
50  virtual ~I4MomDumper();
51 
52  // Assignment operator:
53  //I4MomDumper &operator=(const I4MomDumper &alg);
54 
55  // Athena algorithm's Hooks
56  virtual StatusCode initialize();
57  virtual StatusCode execute();
58  virtual StatusCode finalize();
59 
61  // Const methods:
63 
65  // Non-const methods:
67 
72  StatusCode dump( const std::string& collName );
73 
75  // Protected methods:
77  protected:
78 
81 
84  void setupDisplay( Gaudi::Details::PropertyBase& display );
85 
88  void setupOutputStream( Gaudi::Details::PropertyBase& outputStreamName );
89 
91  // Protected data:
93  protected:
94  // Containers
95 
97  StringArrayProperty m_i4momContainersName;
98 
100  StringProperty m_displayName;
101 
104 
109  StringProperty m_outputStreamName;
110 
113  std::ostream * m_outputStream;
114 
115 };
116 
119 
123 
124 #endif //> EVENTCOMMONALGS_I4MOMDUMPER_H
AthenaPoolExample_WriteCond.outputStreamName
string outputStreamName
Definition: AthenaPoolExample_WriteCond.py:21
I4Momentum
Definition: I4Momentum.h:31
I4MomDumper::execute
virtual StatusCode execute()
Definition: I4MomDumper.cxx:137
I4MomDumper::m_display
Display::Type m_display
its value translated into integer
Definition: I4MomDumper.h:103
I4MomDumper::setupOutputStream
void setupOutputStream(Gaudi::Details::PropertyBase &outputStreamName)
Callback method to configure the output stream into which we'll dump the informations from I4Momentum...
Definition: I4MomDumper.cxx:294
I4MomDumper::I4MomDumper
I4MomDumper()
Default constructor:
I4MomDumper::~I4MomDumper
virtual ~I4MomDumper()
Destructor:
Definition: I4MomDumper.cxx:97
AthAlgorithm.h
I4MomDumper::Display::PxPyPzE
@ PxPyPzE
Definition: I4MomDumper.h:34
I4MomDumper::Display
Definition: I4MomDumper.h:29
I4MomDumper::finalize
virtual StatusCode finalize()
Definition: I4MomDumper.cxx:131
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
I4MomDumper::Display::Type
Type
Definition: I4MomDumper.h:30
xAODType
Definition: ObjectType.h:13
pyroot.display
display
Definition: pyroot.py:44
I4MomDumper::m_outputStreamName
StringProperty m_outputStreamName
Name of the output stream where we'll dump informations from the I4Assocs object.
Definition: I4MomDumper.h:109
AthAlgorithm
Definition: AthAlgorithm.h:47
I4MomDumper::initialize
virtual StatusCode initialize()
Definition: I4MomDumper.cxx:111
I4MomDumper
Definition: I4MomDumper.h:27
I4MomDumper::Display::EEtaPhiM
@ EEtaPhiM
Definition: I4MomDumper.h:31
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
I4MomDumper::Display::Size
@ Size
Definition: I4MomDumper.h:36
I4MomDumper::dump
StatusCode dump(const std::string &collName)
Prints out (on the configured output stream) the content of an INavigable4MomentumCollection object,...
Definition: I4MomDumper.cxx:166
I4MomDumper::setupDisplay
void setupDisplay(Gaudi::Details::PropertyBase &display)
Callback method to configure the display property which will tell how to dump the informations from I...
Definition: I4MomDumper.cxx:271
I4MomDumper::m_displayName
StringProperty m_displayName
switch for the type of printout (pxpypze/eetaphim/...)
Definition: I4MomDumper.h:100
I4MomDumper::m_i4momContainersName
StringArrayProperty m_i4momContainersName
List of INavigable4Momentum containers one wants to dump.
Definition: I4MomDumper.h:97
I4MomDumper::Display::IPtCotThPhiM
@ IPtCotThPhiM
Definition: I4MomDumper.h:32
I4MomDumper::m_outputStream
std::ostream * m_outputStream
pointer to the file descriptor in case the output stream is not a "MsgStream"
Definition: I4MomDumper.h:113
I4MomDumper::Display::PtEtaPhiM
@ PtEtaPhiM
Definition: I4MomDumper.h:33