|
ATLAS Offline Software
|
Go to the documentation of this file.
12 #ifndef ANALYSIS_PURITYANALYSIS_H
13 #define ANALYSIS_PURITYANALYSIS_H
48 std::cout <<
"PurityAnalysis::~PurityAnalysis() " <<
name() << std::endl;
51 for ( ; hitr!=hend ; ++hitr )
delete hitr->second;
56 for (
int i=4 ;
i-- ; ) {
delete heff[
i];
delete hpurity[
i]; }
65 virtual void initialise();
67 virtual void execute(
const std::vector<TIDA::Track*>& reftracks,
68 const std::vector<TIDA::Track*>& testtracks,
71 virtual void finalise();
78 std::string
name =
h->GetName();
79 m_histos.insert( std::map<std::string, TH1F*>::value_type(
name,
h) );
84 if ( hmitr!=m_histos.end() )
return hmitr->second;
130 return s << pa.
name();
137 #endif // ANALYSIS_PURITYANALYSIS_H
JetConstituentVector::iterator iterator
Efficiency1D * m_purity_pt
TDirectory & m_dir
The directory we need to return to.
virtual void execute(const std::vector< TIDA::Track * > &tracks1, const std::vector< TIDA::Track * > &tracks2, TrackAssociator *matcher)=0
void addHistogram(TH1F *h)
Efficiency1D * m_purity_phi
class to keep a directory for each object in a root sort of way, but needed to keep the root objects ...
const std::string & name() const
return identifier
Efficiency1D * m_purity_eta
TH1F * find(const std::string &n)
bool m_print
flag to print out the matched tracks etc
std::map< std::string, TH1F * > m_histos
std::ostream & operator<<(std::ostream &s, const PurityAnalysis &pa)
PurityAnalysis(const std::string &name)
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Efficiency1D * m_purity_z0
int m_Nreco
number of reconstructed tracks