35 m_test.initialize(
this,
"test");
120 float vxErr = v->dx();
121 float vyErr = v->dy();
122 float vzErr = v->dz();
130 float vchi2 = v->chiSquared();
131 float vndof = v->numberDoF();
135 float vtype = v->vertexType();
156 size_t nvTracks = v->nTrackParticles();
164 for(
size_t it=0 ; it<nvTracks ; it++ ) {
167 float tpt = pT( *associatedTracks[it] ) / Gaudi::Units::GeV;
168 float teta =
eta( *associatedTracks[it] );
169 float tnSiHits = nSiHits( *associatedTracks[it] );
170 float tnSiHoles = nSiHoles( *associatedTracks[it] );
171 float td0 = d0( *associatedTracks[it] );
172 float tz0 = z0( *associatedTracks[it] ) - vz;
203 mu = collections.eventInfo()->averageInteractionsPerCrossing();
206 const std::vector<const VertexView*>&
ref = collections.refvertices();
207 const std::vector<const VertexView*>& test = collections.testvertices();
216 m_test.m_nVtx.Fill( test.size() );
217 m_test.m_nVtx_vs_actualMu.Fill( mu, test.size() );
222 for (
size_t i=0 ; i<test.size() ; i++ ) {
m_test.fill( test[i] ); }
230 for (
size_t i=0 ; i<
ref.size() ; i++ ) {
236 bool matched =
false;
238 if ( vt ) matched =
true;
240 size_t nvTracks = vr->nTrackParticles();
252 float dx = vt->x() - vr->x();
253 float dy = vt->y() - vr->y();
254 float dz = vt->z() - vr->z();
297 std::string realpath =
realPath(
"/Vertex/" );
const std::regex ref(r_ef)
Scalar eta() const
pseudorapidity method
emacs: this is -*- c++ -*-
void processResolution(const std::string &path, bool writeflag=false)
ToolHandle< GenericMonitoringTool > * monTool()
mon tool
std::string realPath(const std::string &tag="")
This is a horrific function, has to get ALL the histograms, just to be able to work out how to get th...
const std::string & name() const
generic utilities, just in case
IPlotBase(const std::string &name, ToolHandle< GenericMonitoringTool > *m=0)
built from dirName and anaTag
TIDA::Histogram2D< float > m_vtx_eff_vs_z
efficiencies ...
void initialize()
Book the histograms.
TIDA::Histogram2D< float > m_vtx_res_z_vs_mu
TIDA::Histogram2D< float > m_vtx_eff_vs_ntracks
ParHistograms m_test
why mess about with separate tools for the distributions, the efficiencies and resolutions
TIDA::Histogram2D< float > m_vtx_res_z_vs_z
diferential residuals ...
TIDA::Histogram< float > m_vtx_res_y
VertexPlots(const std::string &name, ToolHandle< GenericMonitoringTool > *m=0)
Constructor.
TIDA::Histogram2D< float > m_vtx_res_z_vs_ntracks
ParHistograms m_reference
TIDA::Histogram< float > m_vtx_res_z
TIDA::Histogram2D< float > m_vtx_res_z_vs_nvtx
void execute(const TrackAnalysisStore &collections) const
this can be over ridden if need be
void finalize()
Print out final stats on histograms.
TIDA::Histogram< float > m_vtx_res_x
residuals ...
TIDA::Histogram2D< float > m_vtx_eff_vs_nvtx
TIDA::Histogram2D< float > m_vtx_ntest_vs_nref
ParHisrograms matched;.
TIDA::Histogram2D< float > m_vtx_eff_vs_mu
Type-erased view on a generic vertex class - implementation won't bother with any VertexTraits at the...
EventInfo_v1 EventInfo
Definition of the latest event info version.
TIDA::Histogram< float > m_vtx_time_err
TIDA::Histogram< float > m_vtx_track_weight
vertex-associated tracks plots, maybe we want things like sumpt^2 as well ?
TIDA::Histogram< float > m_vtx_track_nSiHoles
TIDA::Histogram< float > m_vtx_x_err
void fill(const VertexView *v) const
TIDA::Histogram< float > m_vtx_type
no ndof as well ?
TIDA::Histogram< float > m_nVtx
global vertex quantities ...
TIDA::Histogram< float > m_vtx_track_eta
TIDA::Histogram< float > m_vtx_track_z0_err
TIDA::Histogram< float > m_vtx_track_d0_err
TIDA::Histogram< float > m_vtx_track_d0
TIDA::Histogram< float > m_vtx_track_pt
TIDA::Histogram< float > m_vtx_x
vertex parameter plots ...
TIDA::Histogram< float > m_vtx_z
TIDA::Histogram< float > m_vtx_track_z0
TIDA::Histogram< float > m_vtx_y
TIDA::Histogram< float > m_vtx_y_err
TIDA::Histogram2D< float > m_nVtx_vs_actualMu
TIDA::Histogram< float > m_vtx_nTracks
TIDA::Histogram< float > m_vtx_track_nSiHits
TIDA::Histogram< float > m_vtx_time
TIDA::Histogram< float > m_vtx_z_err
void initialize(VertexPlots *p, const std::string &s="")
TIDA::Histogram< float > m_vtx_chi2OverNdof