ATLAS Offline Software
TrkAndVtxPlots.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef PHYSVALMONITORING_TRKANDVTXPLOTS_H
6 #define PHYSVALMONITORING_TRKANDVTXPLOTS_H
7 
9 #include "CLHEP/Units/SystemOfUnits.h"
11 #include "xAODTracking/Vertex.h"
13 
14 namespace PhysVal{
15 
16 class TrkAndVtxPlots:public PlotBase {
17  public:
18  TrkAndVtxPlots(PlotBase* pParent, const std::string& sDir);
19  void fill(const xAOD::TrackParticle* trk,const xAOD::EventInfo* evt);
20  void fill(const xAOD::Vertex* vtx,const xAOD::EventInfo* evt);
21  void fill(unsigned int ntrack, unsigned int nvertex, const xAOD::EventInfo* evt=NULL);
22 
23  // Reco only information
24  TH1* ntrk = nullptr;
25 
26  TH1* nvtx = nullptr;
27  TH1* vtx_x = nullptr;
28  TH1* vtx_y = nullptr;
29  TH1* vtx_z = nullptr;
30 
31  private:
32  virtual void initializePlots();
33 
34 
35 };
36 
37 }
38 
39 #endif
PlotBase
Definition: PlotBase.h:34
PhysVal::TrkAndVtxPlots::TrkAndVtxPlots
TrkAndVtxPlots(PlotBase *pParent, const std::string &sDir)
Definition: TrkAndVtxPlots.cxx:13
python.copyTCTOutput.sDir
sDir
Definition: copyTCTOutput.py:60
PhysVal::TrkAndVtxPlots::ntrk
TH1 * ntrk
Definition: TrkAndVtxPlots.h:24
PhysVal::TrkAndVtxPlots
Definition: TrkAndVtxPlots.h:16
LArG4FSStartPointFilter.evt
evt
Definition: LArG4FSStartPointFilter.py:42
PhysVal::TrkAndVtxPlots::vtx_z
TH1 * vtx_z
Definition: TrkAndVtxPlots.h:29
PhysVal::TrkAndVtxPlots::fill
void fill(const xAOD::TrackParticle *trk, const xAOD::EventInfo *evt)
Definition: TrkAndVtxPlots.cxx:33
Vertex.h
PhysVal::TrkAndVtxPlots::nvtx
TH1 * nvtx
Definition: TrkAndVtxPlots.h:26
PhysVal
Definition: BTagPlots.cxx:13
EventInfo.h
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
TrackParticle.h
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
PhysVal::TrkAndVtxPlots::initializePlots
virtual void initializePlots()
Definition: TrkAndVtxPlots.cxx:16
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
PlotBase.h
PhysVal::TrkAndVtxPlots::vtx_x
TH1 * vtx_x
Definition: TrkAndVtxPlots.h:27
PhysVal::TrkAndVtxPlots::vtx_y
TH1 * vtx_y
Definition: TrkAndVtxPlots.h:28