![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
19 #define __STDC_FORMAT_MACROS
28 #include "Gaudi/Property.h"
44 ISvcLocator* pSvcLocator ) :
62 "Name of the ascii file where the content of the "
63 "ROOT n-tuple file will be dumped.");
82 return StatusCode::FAILURE;
85 O_WRONLY | O_CREAT | O_TRUNC,
86 S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
90 "write permissions.");
91 return StatusCode::FAILURE;
94 return StatusCode::SUCCESS;
103 if (close(
m_ofd) < 0) {
108 return StatusCode::SUCCESS;
120 return StatusCode::RECOVERABLE;
125 return StatusCode::RECOVERABLE;
130 return StatusCode::RECOVERABLE;
136 return StatusCode::RECOVERABLE;
140 std::string collName = collectionName(*ei);
141 std::string::size_type
pos = collName.rfind (
"/");
142 if (
pos != std::string::npos) {
143 collName.erase (0,
pos+1);
148 int buf_sz = asprintf
150 "%03" PRId64
".%s = %s\n"
151 "%03" PRId64
".%s = %s\n"
152 "%03" PRId64
".%s = %u\n"
153 "%03" PRId64
".%s = %u\n"
154 "%03" PRId64
".%s = %i\n",
160 tupleName(*ei).c_str(),
177 return StatusCode::RECOVERABLE;
181 "el_jetcone_dr").isSuccess()) {
183 return StatusCode::RECOVERABLE;
187 std::stringstream bufv;
188 for (int32_t ii = 0; ii < *
m_el_n; ++ii) {
189 bufv << (*m_el_eta)[ii];
195 int buf_sz = asprintf
197 "%03" PRId64
".%s = [%s]\n",
207 std::stringstream bufv;
208 for (int32_t ii = 0; ii < *
m_el_n; ++ii) {
213 bufv << (*m_el_jetcone_dr)[ii][jj];
224 int buf_sz = asprintf
226 "%03" PRId64
".%s = [%s]\n",
235 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
uint64_t m_nentries
number of entries processed so-far
Helper class to provide type-safe access to aux data.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual StatusCode initialize()
const int32_t * m_el_n
number of electrons
virtual StatusCode execute()
const uint32_t * m_runnbr
run number
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Some weak symbol referencing magic...
::StatusCode StatusCode
StatusCode definition for legacy code.
const std::vector< float > * m_el_eta
eta of electrons
virtual ~RootAsciiDumperAlg()
Destructor:
std::string m_ofname
ASCII output file name.
Class describing the basic event information.
RootAsciiDumperAlg()
Default constructor:
#define ATH_MSG_WARNING(x)
const uint32_t * m_evtnbr
event number
int m_ofd
file handle to the ASCII output file
const std::vector< std::vector< float > > * m_el_jetcone_dr
jetcone dR
virtual StatusCode finalize()