ATLAS Offline Software
|
#include <iostream>
#include <vector>
#include <string>
#include <boost/program_options.hpp>
#include <boost/regex.hpp>
#include <TFile.h>
#include <TTree.h>
#include <TList.h>
#include <TKey.h>
#include <TBranch.h>
#include <TBranchElement.h>
#include <TLeaf.h>
#include <TError.h>
#include "GaudiKernel/StatusCode.h"
#include "GaudiKernel/Bootstrap.h"
#include "GaudiKernel/IMessageSvc.h"
#include "GaudiKernel/ISvcLocator.h"
#include "AthenaKernel/errorcheck.h"
#include "CxxUtils/checker_macros.h"
#include "../CodeGenerator_v2.h"
#include "../RootObjectMetadata.h"
Go to the source code of this file.
Functions | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &out, const std::vector< T > &vec) |
Formatted printing for vector objects. More... | |
StatusCode | extractVariables (const std::string &file_name, const std::string &tree_name, const std::vector< std::string > &patterns, D3PD::RootObjectMetadata &metadata) |
This function is used to extract the variable descriptions from the D3PD file. More... | |
StatusCode | extractVariables (const std::string &file_name, const std::string &tree_name, const std::string &pattern, D3PD::RootObjectMetadata &metadata) |
int main | ATLAS_NOT_THREAD_SAFE (int argc, char *argv[]) |
A convenience declaration to save myself some typeing. More... | |
int main ATLAS_NOT_THREAD_SAFE | ( | int | argc, |
char * | argv[] | ||
) |
A convenience declaration to save myself some typeing.
Definition at line 89 of file d3pdReaderMaker.cxx.
StatusCode extractVariables | ( | const std::string & | file_name, |
const std::string & | tree_name, | ||
const std::string & | pattern, | ||
D3PD::RootObjectMetadata & | metadata | ||
) |
Definition at line 512 of file d3pdReaderMaker.cxx.
StatusCode extractVariables | ( | const std::string & | file_name, |
const std::string & | tree_name, | ||
const std::vector< std::string > & | patterns, | ||
D3PD::RootObjectMetadata & | metadata | ||
) |
This function is used to extract the variable descriptions from the D3PD file.
This function is used to parse the variables in the specified D3PD file, and collect the types and names of them.
This information is then used to generate the D3PDReader sources.
file_name | Name of the input D3PD file |
tree_name | Name of the D3PD TTree in the file |
patterns | A vector of regular expressions to select the variables with |
vars | The vector which is filled with the extracted information |
Definition at line 361 of file d3pdReaderMaker.cxx.
std::ostream& operator<< | ( | std::ostream & | out, |
const std::vector< T > & | vec | ||
) |
Formatted printing for vector objects.
The code has to print a vector in at least one place. To make it easily readable in the code, I like to use such an output operator. It can be used for any kind of vector as long as the template type can also be printed with the << operator.
out | An STL output stream |
vec | The vector that should be printed |
Definition at line 63 of file d3pdReaderMaker.cxx.