ATLAS Offline Software
Loading...
Searching...
No Matches
RootReaderD3PD_v2.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5// $Id: RootReaderD3PD_v2.cxx 516932 2012-09-10 09:29:08Z krasznaa $
6
7// Gaudi/Athena include(s):
9
10// Local include(s):
11#include "RootReaderD3PD_v2.h"
12#include "CodeGenerator_v2.h"
13
14namespace D3PD {
15
19
20 StatusCode RootReaderD3PD_v2::createReader( const std::string& classname,
21 const std::string& dir ) const {
22
23 //
24 // Create the source files:
25 //
28 if( m_metadata.container() ) {
30 }
35 CHECK( Version2::writeHeader( classname, dir, m_metadata ) );
36 CHECK( Version2::writeSource( classname, dir, m_metadata ) );
37
38 return StatusCode::SUCCESS;
39 }
40
41} // namespace D3PD
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
ObjectMetadata m_metadata
Object holding the information about the variables.
RootReaderD3PD_v2()
Constructor specifying whether it's a container's D3PD.
StatusCode createReader(const std::string &classname, const std::string &dir="./") const
Function creating the D3PDReader C++ code.
StatusCode writeUtils(const std::string &dir)
This function can be used to create source files containing some utility functions.
StatusCode writeHeader(const std::string &classname, const std::string &dir, const ObjectMetadata &metadata)
This function is used to create the header of the class describing a set of D3PD variables.
StatusCode writeD3PDReadStats(const std::string &dir)
This function can be used to create the D3PDReader::D3PDReadStats class's source files.
StatusCode writeSource(const std::string &classname, const std::string &dir, const ObjectMetadata &metadata)
This function is used to generate the source file of a D3PDReader class.
StatusCode writeVarHandle(const std::string &dir)
This function can be used to create the D3PDReader::VarHandle class's source files.
StatusCode writeVarProxy(const std::string &dir)
This function can be used to create the D3PDReader::VarProxy class's source files.
StatusCode writeD3PDObjectBase(const std::string &dir)
This function can be used to create the D3PDReader::D3PDObjectBase class's source files.
StatusCode writeUserD3PDObject(const std::string &dir)
This function can be used to create the D3PDReader::UserD3PDObject class's source files.
StatusCode writeD3PDPerfStats(const std::string &dir)
This function can be used to create the D3PDReader::D3PDPerfStats class's source files.
Block filler tool for noisy FEB information.