|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef EVENT_LOOP_ALGS__NTUPLE_SVC_H
6 #define EVENT_LOOP_ALGS__NTUPLE_SVC_H
65 NTupleSvc (
const std::string& val_outputName =
"output");
JetConstituentVector::iterator iterator
bool m_initialized
description: whether we initialized the tree we are writing out
void addWhiteArray(const std::string &varName)
effects: add an array from the whiteboard guarantee: strong failures: out of memory II
std::vector< CopyInfo >::iterator copyInfoMIter
std::string m_treeName
description: the name of the output tree
std::set< std::string > m_whiteFloat
description: the list of whiteboard floats we copy
std::vector< float > * pointer
description: a pointer to the buffer rationale: this is used when writing arrays
void addWhiteFloat(const std::string &varName)
effects: add a float from the whiteboard guarantee: strong failures: out of memory II
std::vector< WhiteInfo > m_whiteInfo
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
void testInvariant() const
effects: test the invariant of this object guarantee: no-fail
TFile * m_file
description: the file we are writing out
const std::string & treeName() const
description: the name of the tree, or the empty string to use the name of the input tree guarantee: n...
std::vector< char > buffer
description: the buffer used if none is set
void treeName(const std::string &val_treeName)
TTree * tree() const
returns: the tree we are writing out guarantee: no-fail requires(soft): initialize() has been called ...
std::set< std::string >::iterator m_whiteFloatIter
void initBranches()
effects: create all the branches when called for the first time guarantee: basic, may create some fai...
std::set< std::string >::iterator m_copyBranchesIter
void copyBranchList(const std::string &fileName)
effects: read a list of branches to copy from a file.
std::string m_outputName
description: the name of the output stream
virtual StatusCode changeInput(bool firstFile)
effects: do all changes to work with a new input file, e.g.
virtual StatusCode execute()
effects: process the next event guarantee: basic failures: algorithm dependent rationale: the virtual...
string varName
end cluster ToT and charge
::StatusCode StatusCode
StatusCode definition for legacy code.
bool m_taken
description: whether we take the current event
the interface for algorithms to access IWorker
virtual const char * GetName() const
effects: return the name of this algorithm guarantee: no-fail
This module defines the arguments passed from the BATCH driver to the BATCH worker.
NTupleSvc(const std::string &val_outputName="output")
effects: standard constructor guarantee: strong failures: out of memory I requires: !...
std::string name
description: the name of the branch
std::vector< WhiteInfo >::iterator whiteInfoMIter
virtual const std::string & name() const
std::set< std::string > m_copyBranches
description: the list of branches we copy
void copyBranch(const std::string &name)
effects: add another branch to copy.
~NTupleSvc()
effects: standard destructor guarantee: no-fail
std::vector< float > buffer
description: the buffer we are writing
description: the information we need for whiteboard variables
virtual StatusCode setupJob(Job &job)
effects: give the algorithm a chance to intialize the job with anything this algorithm needs.
void findBranches(std::set< std::string > &branchList)
effects: find the branches in the input tree guarantee: basic, may create some failures: out of memor...
bool getFilterPassed() const
returns: whether the current event will be taken guarantee: no-fail
void initOutput(const std::string &branchName)
effects: create the branch in the output tree guarantee: basic, may create some failures: out of memo...
TTree * m_tree
description: the tree we are writing out
virtual StatusCode postExecute()
effects: do the post-processing for the event guarantee: basic failures: algorithm dependent rational...
description: the information we need for copying branches
bool m_connected
description: whether our output branches are properly connected to the input tree
std::set< std::string >::iterator m_whiteArrayIter
virtual bool hasName(const std::string &name) const
returns: whether this algorithm has the given name guarantee: basic failures: algorithm dependent rat...
void initOutput(const std::set< std::string > &branchList)
effects: create the branches in the output tree guarantee: basic, may create some failures: out of me...
std::set< std::string > m_whiteArray
description: the list of whiteboard arrays we copy
virtual StatusCode initialize()
effects: do everything that needs to be done before running the algorithm, e.g.
std::string name
description: the name of the branch
std::vector< CopyInfo > m_copyInfo
void setFilterPassed(bool passed=true)
effects: take the current event if passed is set, otherwise perform a no-op guarantee: no-fail
TBranch * target
description: the branch in the output tree
void copyInput()
effects: copy the input branches to the output branches guarantee: basic, may copy some failures: out...
std::string m_tree_title
description: the title of the output tree
bool array
description: whether this is an array branch
WhiteBoardSvc * m_whiteboard
description: the white board service, if we are using it
NTupleSvc * getNTupleSvc(IWorker *worker, const std::string &outputStream, const std::string &treeName="")
effects: get the skimming algorithm for the given output for this worker guarantee: strong failures: ...
TBranch * source
description: the branch in the source tree