ATLAS Offline Software
Loading...
Searching...
No Matches
AnalysisR4.cxx
Go to the documentation of this file.
1
11
12
13
14#include "AnalysisR4.h"
15
17#include "TrackView.h"
18
19#include "Tier0.h"
20#include "Resolutions.h"
21#include "Efficiencies.h"
22#include "VertexPlots.h"
23#include "TrackParameters.h"
24#include "SiHitPlots.h"
25#include "TRTPlots.h"
26
27#include <cmath>
28#include <iostream>
29
30
43
44
45
47
48 if ( !monTool() ) throw std::runtime_error( "AnalysisR4:initialize() monTool not found" );
49
55 // m_tools.emplace_back( create( "Tier0" ) );
56 // m_tools.emplace_back( create( "Resolutions" ) );
57 // m_tools.emplace_back( create( "Efficiencies" ) );
58 // ...
59
61 for ( size_t i=m_tools.size() ; i-- ; ) m_tools[i]->initialize();
62
63}
64
65
66
68 // if ( m_tools.empty() ) throw std::runtime_error( "AnalysisR4::execute() cowardly: won't run analysis with no output" );
69 for ( size_t i=m_tools.size() ; i-- ; ) m_tools[i]->execute( collections );
70}
71
72
73
75 for ( size_t i=m_tools.size() ; i-- ; ) m_tools[i]->finalize();
76}
77
78
79
80
81
82
83
emacs: this is -*- c++ -*-
emacs: this is -*- c++ -*-
emacs: this is -*- c++ -*-
emacs: this is -*- c++ -*-
AnalysisR4(const std::string &name)
ToolHandle< GenericMonitoringTool > * m_monTool
the parent montool
Definition AnalysisR4.h:91
std::vector< std::unique_ptr< IPlotBase > > m_tools
the tool children
Definition AnalysisR4.h:94
void registerCreator(const std::string &key, FactoryFn builder)
do we want this to be public ??
Definition AnalysisR4.h:73
std::string m_name
Definition AnalysisR4.h:88
ToolHandle< GenericMonitoringTool > * monTool()
Definition AnalysisR4.h:49
const std::string & name() const
Definition AnalysisR4.h:45
void execute(TrackAnalysisStore &collections) const
static std::unique_ptr< IPlotBase > create(const std::string &name, ToolHandle< GenericMonitoringTool > *m)
factory creation mathod
Definition IPlotBase.h:50