ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
TrackAnalysis Class Referenceabstract

#include <TrackAnalysis.h>

Inherited by Analysis_Distribution, Analysis_Efficiency, Analysis_Fake, Analysis_Missed, Analysis_Resolution, Analysis_ResolutionCosmics, Analysis_Tier0, AnalysisR3_Tier0, ConfAnalysis, PurityAnalysis, SigAnalysis, TrackDistributions, and TrackEfficiency.

Collaboration diagram for TrackAnalysis:

Public Member Functions

 TrackAnalysis (const std::string &name)
 the beam test parts are not really usable in a multithreaded environment More...
 
virtual ~TrackAnalysis ()
 
 TrackAnalysis (const TrackAnalysis &)=delete
 
TrackAnalysisoperator= (const TrackAnalysis &)=delete
 
std::string name () const
 return identifier More...
 
virtual void initialise ()=0
 standard operation interface More...
 
virtual void execute (const std::vector< TIDA::Track * > &tracks1, const std::vector< TIDA::Track * > &tracks2, TrackAssociator *matcher)=0
 
virtual void execute (const std::vector< TIDA::Track * > &tracks1, const std::vector< TIDA::Track * > &tracks2, TrackAssociator *matcher, TrigObjectMatcher *)
 
virtual void execute (const std::vector< TIDA::Track * > &, const std::vector< TIDA::Track * > &, TrackAssociator *, const TIDA::Event *)
 
virtual void execute (const std::vector< TIDA::Track * > &tracks1, const std::vector< TIDA::Track * > &tracks2, TrackAssociator *matcher, const TIDA::Event *event, double *)
 
virtual void execute (const std::vector< TIDA::Track * > &, const std::vector< TIDA::Track * > &, TrackAssociator *, const TIDA::Event *, double *, TIDARoiDescriptor *)
 
virtual void execute_vtx (const std::vector< TIDA::Vertex * > &, const std::vector< TIDA::Vertex * > &, const TIDA::Event *=0)
 
virtual void finalise ()=0
 
void addHistogram (TH1 *h)
 
const std::map< std::string, TH1 * > & getHistograms () const
 access the histograms More...
 
std::map< std::string, TH1 * >::const_iterator begin () const
 
std::map< std::string, TH1 * >::const_iterator end () const
 
void setBeamRef (double x, double y, double z=0)
 set the beamline positions More...
 
void setBeamTest (double x, double y, double z=0)
 
void setBeamRef (const std::vector< double > &v)
 
void setBeamTest (const std::vector< double > &v)
 
double beamRefx () const
 
double beamRefy () const
 
double beamRefz () const
 
double beamTestx () const
 
double beamTesty () const
 
double beamTestz () const
 
TIDA::FeatureStorestore ()
 
const TIDA::Eventevent () const
 
void setevent (TIDA::Event *e)
 
const TIDARoiDescriptorroi () const
 
void setroi (TIDARoiDescriptor *r)
 

Protected Attributes

std::string m_name
 identifier of the of the analysis - also used for the root directory into which the histograms are put More...
 
std::map< std::string, TH1 * > m_histos
 lookup table for the histograms by name - does this need to be in the base class?
More...
 
double m_xBeamReference
 beamline positions reference sample
More...
 
double m_yBeamReference
 
double m_zBeamReference
 
double m_xBeamTest
 test sample More...
 
double m_yBeamTest
 
double m_zBeamTest
 
TIDA::FeatureStore m_store
 
TIDA::Eventm_event
 
TIDARoiDescriptorm_roi
 

Detailed Description

Definition at line 32 of file TrackAnalysis.h.

Constructor & Destructor Documentation

◆ TrackAnalysis() [1/2]

TrackAnalysis::TrackAnalysis ( const std::string &  name)
inline

the beam test parts are not really usable in a multithreaded environment

Definition at line 38 of file TrackAnalysis.h.

38  :
39  m_name(name),
42  m_event(0), m_roi(0)
43  { }

◆ ~TrackAnalysis()

virtual TrackAnalysis::~TrackAnalysis ( )
inlinevirtual

Definition at line 45 of file TrackAnalysis.h.

45 { }

◆ TrackAnalysis() [2/2]

TrackAnalysis::TrackAnalysis ( const TrackAnalysis )
delete

Member Function Documentation

◆ addHistogram()

void TrackAnalysis::addHistogram ( TH1 *  h)
inline

Definition at line 97 of file TrackAnalysis.h.

97  {
98  std::string name = h->GetName();
99  m_histos.insert( std::map<std::string, TH1*>::value_type( name, h) );
100  }

◆ beamRefx()

double TrackAnalysis::beamRefx ( ) const
inline

Definition at line 124 of file TrackAnalysis.h.

124 { return m_xBeamReference; }

◆ beamRefy()

double TrackAnalysis::beamRefy ( ) const
inline

Definition at line 125 of file TrackAnalysis.h.

125 { return m_yBeamReference; }

◆ beamRefz()

double TrackAnalysis::beamRefz ( ) const
inline

Definition at line 126 of file TrackAnalysis.h.

126 { return m_zBeamReference; }

◆ beamTestx()

double TrackAnalysis::beamTestx ( ) const
inline

Definition at line 128 of file TrackAnalysis.h.

128 { return m_xBeamTest; }

◆ beamTesty()

double TrackAnalysis::beamTesty ( ) const
inline

Definition at line 129 of file TrackAnalysis.h.

129 { return m_yBeamTest; }

◆ beamTestz()

double TrackAnalysis::beamTestz ( ) const
inline

Definition at line 130 of file TrackAnalysis.h.

130 { return m_zBeamTest; }

◆ begin()

std::map<std::string, TH1*>::const_iterator TrackAnalysis::begin ( ) const
inline

Definition at line 105 of file TrackAnalysis.h.

105 { return m_histos.begin(); }

◆ end()

std::map<std::string, TH1*>::const_iterator TrackAnalysis::end ( ) const
inline

Definition at line 106 of file TrackAnalysis.h.

106 { return m_histos.end(); }

◆ event()

const TIDA::Event* TrackAnalysis::event ( ) const
inline

Definition at line 135 of file TrackAnalysis.h.

135 { return m_event; }

◆ execute() [1/5]

virtual void TrackAnalysis::execute ( const std::vector< TIDA::Track * > &  ,
const std::vector< TIDA::Track * > &  ,
TrackAssociator ,
const TIDA::Event  
)
inlinevirtual

Reimplemented in ConfAnalysis, and AnalysisR3_Tier0.

Definition at line 68 of file TrackAnalysis.h.

71  { }

◆ execute() [2/5]

virtual void TrackAnalysis::execute ( const std::vector< TIDA::Track * > &  ,
const std::vector< TIDA::Track * > &  ,
TrackAssociator ,
const TIDA::Event ,
double *  ,
TIDARoiDescriptor  
)
inlinevirtual

Reimplemented in AnalysisR3_Tier0.

Definition at line 81 of file TrackAnalysis.h.

86  { }

◆ execute() [3/5]

virtual void TrackAnalysis::execute ( const std::vector< TIDA::Track * > &  tracks1,
const std::vector< TIDA::Track * > &  tracks2,
TrackAssociator matcher 
)
pure virtual

◆ execute() [4/5]

virtual void TrackAnalysis::execute ( const std::vector< TIDA::Track * > &  tracks1,
const std::vector< TIDA::Track * > &  tracks2,
TrackAssociator matcher,
const TIDA::Event event,
double *   
)
inlinevirtual

Reimplemented in AnalysisR3_Tier0.

Definition at line 73 of file TrackAnalysis.h.

77  {
78  execute( tracks1, tracks2, matcher, event );
79  }

◆ execute() [5/5]

virtual void TrackAnalysis::execute ( const std::vector< TIDA::Track * > &  tracks1,
const std::vector< TIDA::Track * > &  tracks2,
TrackAssociator matcher,
TrigObjectMatcher  
)
inlinevirtual

Reimplemented in ConfAnalysis.

Definition at line 61 of file TrackAnalysis.h.

64  {
65  execute( tracks1, tracks2, matcher );
66  }

◆ execute_vtx()

virtual void TrackAnalysis::execute_vtx ( const std::vector< TIDA::Vertex * > &  ,
const std::vector< TIDA::Vertex * > &  ,
const TIDA::Event = 0 
)
inlinevirtual

Reimplemented in AnalysisR3_Tier0, and Analysis_Tier0.

Definition at line 89 of file TrackAnalysis.h.

91  { }

◆ finalise()

virtual void TrackAnalysis::finalise ( )
pure virtual

◆ getHistograms()

const std::map<std::string, TH1*>& TrackAnalysis::getHistograms ( ) const
inline

access the histograms

Definition at line 103 of file TrackAnalysis.h.

103 { return m_histos; }

◆ initialise()

virtual void TrackAnalysis::initialise ( )
pure virtual

◆ name()

std::string TrackAnalysis::name ( ) const
inline

return identifier

Definition at line 52 of file TrackAnalysis.h.

52 { return m_name; }

◆ operator=()

TrackAnalysis& TrackAnalysis::operator= ( const TrackAnalysis )
delete

◆ roi()

const TIDARoiDescriptor* TrackAnalysis::roi ( ) const
inline

Definition at line 138 of file TrackAnalysis.h.

138 { return m_roi; }

◆ setBeamRef() [1/2]

void TrackAnalysis::setBeamRef ( const std::vector< double > &  v)
inline

Definition at line 112 of file TrackAnalysis.h.

112  {
113  if ( v.size()>0 ) m_xBeamReference = v[0];
114  if ( v.size()>1 ) m_yBeamReference = v[1];
115  if ( v.size()>2 ) m_zBeamReference = v[2];
116  }

◆ setBeamRef() [2/2]

void TrackAnalysis::setBeamRef ( double  x,
double  y,
double  z = 0 
)
inline

set the beamline positions

Definition at line 109 of file TrackAnalysis.h.

◆ setBeamTest() [1/2]

void TrackAnalysis::setBeamTest ( const std::vector< double > &  v)
inline

Definition at line 118 of file TrackAnalysis.h.

118  {
119  if ( v.size()>0 ) m_xBeamTest = v[0];
120  if ( v.size()>1 ) m_yBeamTest = v[1];
121  if ( v.size()>2 ) m_zBeamTest = v[2];
122  }

◆ setBeamTest() [2/2]

void TrackAnalysis::setBeamTest ( double  x,
double  y,
double  z = 0 
)
inline

Definition at line 110 of file TrackAnalysis.h.

110 { m_xBeamTest = x; m_yBeamTest = y; m_zBeamTest = z; }

◆ setevent()

void TrackAnalysis::setevent ( TIDA::Event e)
inline

Definition at line 136 of file TrackAnalysis.h.

136 { m_event=e; }

◆ setroi()

void TrackAnalysis::setroi ( TIDARoiDescriptor r)
inline

Definition at line 139 of file TrackAnalysis.h.

139 { m_roi=r; }

◆ store()

TIDA::FeatureStore& TrackAnalysis::store ( )
inline

Definition at line 133 of file TrackAnalysis.h.

133 { return m_store; }

Member Data Documentation

◆ m_event

TIDA::Event* TrackAnalysis::m_event
protected

Definition at line 164 of file TrackAnalysis.h.

◆ m_histos

std::map<std::string, TH1*> TrackAnalysis::m_histos
protected

lookup table for the histograms by name - does this need to be in the base class?

Definition at line 149 of file TrackAnalysis.h.

◆ m_name

std::string TrackAnalysis::m_name
protected

identifier of the of the analysis - also used for the root directory into which the histograms are put

Definition at line 145 of file TrackAnalysis.h.

◆ m_roi

TIDARoiDescriptor* TrackAnalysis::m_roi
protected

Definition at line 165 of file TrackAnalysis.h.

◆ m_store

TIDA::FeatureStore TrackAnalysis::m_store
protected

Definition at line 162 of file TrackAnalysis.h.

◆ m_xBeamReference

double TrackAnalysis::m_xBeamReference
protected

beamline positions reference sample

Definition at line 153 of file TrackAnalysis.h.

◆ m_xBeamTest

double TrackAnalysis::m_xBeamTest
protected

test sample

Definition at line 158 of file TrackAnalysis.h.

◆ m_yBeamReference

double TrackAnalysis::m_yBeamReference
protected

Definition at line 154 of file TrackAnalysis.h.

◆ m_yBeamTest

double TrackAnalysis::m_yBeamTest
protected

Definition at line 159 of file TrackAnalysis.h.

◆ m_zBeamReference

double TrackAnalysis::m_zBeamReference
protected

Definition at line 155 of file TrackAnalysis.h.

◆ m_zBeamTest

double TrackAnalysis::m_zBeamTest
protected

Definition at line 160 of file TrackAnalysis.h.


The documentation for this class was generated from the following file:
TrackAnalysis::m_roi
TIDARoiDescriptor * m_roi
Definition: TrackAnalysis.h:165
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
beamspotman.r
def r
Definition: beamspotman.py:676
TrackAnalysis::execute
virtual void execute(const std::vector< TIDA::Track * > &tracks1, const std::vector< TIDA::Track * > &tracks2, TrackAssociator *matcher)=0
x
#define x
z
#define z
TrackAnalysis::name
std::string name() const
return identifier
Definition: TrackAnalysis.h:52
TrackAnalysis::event
const TIDA::Event * event() const
Definition: TrackAnalysis.h:135
TrackAnalysis::m_histos
std::map< std::string, TH1 * > m_histos
lookup table for the histograms by name - does this need to be in the base class?
Definition: TrackAnalysis.h:149
TrackAnalysis::m_yBeamReference
double m_yBeamReference
Definition: TrackAnalysis.h:154
TrackAnalysis::m_event
TIDA::Event * m_event
Definition: TrackAnalysis.h:164
TrackAnalysis::m_zBeamTest
double m_zBeamTest
Definition: TrackAnalysis.h:160
TrackAnalysis::m_store
TIDA::FeatureStore m_store
Definition: TrackAnalysis.h:162
python.PyAthena.v
v
Definition: PyAthena.py:154
y
#define y
h
TrackAnalysis::m_xBeamTest
double m_xBeamTest
test sample
Definition: TrackAnalysis.h:158
TrackAnalysis::m_yBeamTest
double m_yBeamTest
Definition: TrackAnalysis.h:159
TrackAnalysis::m_zBeamReference
double m_zBeamReference
Definition: TrackAnalysis.h:155
TrackAnalysis::m_name
std::string m_name
identifier of the of the analysis - also used for the root directory into which the histograms are pu...
Definition: TrackAnalysis.h:145
TrackAnalysis::m_xBeamReference
double m_xBeamReference
beamline positions reference sample
Definition: TrackAnalysis.h:153