CMS 3D CMS Logo

AlignmentMonitorGeneric.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignmentMonitor_AlignmentMonitorGeneric_H
2 #define Alignment_CommonAlignmentMonitor_AlignmentMonitorGeneric_H
3 
4 // Package: CommonAlignmentMonitor
5 // Class : AlignmentMonitorGeneric
6 //
7 // Produce histograms generic to all alignment algorithms.
8 //
9 // Histograms defined:
10 // pull of x hit residuals for positively charged tracks on each alignable
11 // pull of x hit residuals for negatively charged tracks on each alignable
12 // pull of y hit residuals for positively charged tracks on each alignable
13 // pull of y hit residuals for negatively charged tracks on each alignable
14 // pt for all tracks
15 // eta for all tracks
16 // phi for all tracks
17 // d0 for all tracks
18 // dz for all tracks
19 // chi2/dof for all tracks
20 //
21 // Original Author: Jim Pivarski
22 // Created: Thu Mar 29 13:59:56 CDT 2007
23 // $Id: AlignmentMonitorGeneric.h,v 1.3 2007/12/04 23:29:26 ratnik Exp $
24 
26 #include "TH1.h"
27 
29  typedef std::vector<TH1F*> Hist1Ds;
30 
31 public:
33 
34  void book() override;
35 
36  void event(const edm::Event&, const edm::EventSetup&, const ConstTrajTrackPairCollection&) override;
37 
38 private:
39  static const unsigned int nBin_ = 50;
40 
41  Hist1Ds m_trkHists; // track parameters histograms
42 
43  std::map<const Alignable*, Hist1Ds> m_resHists; // hit residuals histograms
44 };
45 
46 #endif
std::map< const Alignable *, Hist1Ds > m_resHists
void event(const edm::Event &, const edm::EventSetup &, const ConstTrajTrackPairCollection &) override
Called for each event (by "run()"): may be reimplemented.
void book() override
Book or retrieve histograms; MUST be reimplemented.
std::vector< TH1F * > Hist1Ds
AlignmentMonitorGeneric(const edm::ParameterSet &)
std::vector< ConstTrajTrackPair > ConstTrajTrackPairCollection
static const unsigned int nBin_