ATLAS Offline Software
Loading...
Searching...
No Matches
I4MomDumper.h
Go to the documentation of this file.
1
2
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
24class I4Momentum;
25
27{
28 public:
39
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
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Display::Type m_display
its value translated into integer
void setupOutputStream(Gaudi::Details::PropertyBase &outputStreamName)
Callback method to configure the output stream into which we'll dump the informations from I4Momentum...
I4MomDumper(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual ~I4MomDumper()
Destructor:
virtual StatusCode execute()
void setupDisplay(Gaudi::Details::PropertyBase &display)
Callback method to configure the display property which will tell how to dump the informations from I...
StringArrayProperty m_i4momContainersName
List of INavigable4Momentum containers one wants to dump.
Definition I4MomDumper.h:97
virtual StatusCode finalize()
StringProperty m_outputStreamName
Name of the output stream where we'll dump informations from the I4Assocs object.
I4MomDumper()
Default constructor:
virtual StatusCode initialize()
std::ostream * m_outputStream
pointer to the file descriptor in case the output stream is not a "MsgStream"
StringProperty m_displayName
switch for the type of printout (pxpypze/eetaphim/...)
I4Momentum is an abstract base class providing 4-momentum behavior.
Definition I4Momentum.h:31
-event-from-file