Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:10

0001 #ifndef Alignment_CommonAlignmentMonitor_AlignmentMonitorGeneric_H
0002 #define Alignment_CommonAlignmentMonitor_AlignmentMonitorGeneric_H
0003 
0004 // Package:     CommonAlignmentMonitor
0005 // Class  :     AlignmentMonitorGeneric
0006 //
0007 // Produce histograms generic to all alignment algorithms.
0008 //
0009 // Histograms defined:
0010 //   pull of x hit residuals for positively charged tracks on each alignable
0011 //   pull of x hit residuals for negatively charged tracks on each alignable
0012 //   pull of y hit residuals for positively charged tracks on each alignable
0013 //   pull of y hit residuals for negatively charged tracks on each alignable
0014 //         pt for all tracks
0015 //        eta for all tracks
0016 //        phi for all tracks
0017 //         d0 for all tracks
0018 //         dz for all tracks
0019 //   chi2/dof for all tracks
0020 //
0021 // Original Author:  Jim Pivarski
0022 //         Created:  Thu Mar 29 13:59:56 CDT 2007
0023 // $Id: AlignmentMonitorGeneric.h,v 1.3 2007/12/04 23:29:26 ratnik Exp $
0024 
0025 #include "Alignment/CommonAlignmentMonitor/interface/AlignmentMonitorBase.h"
0026 #include "TH1.h"
0027 
0028 class AlignmentMonitorGeneric : public AlignmentMonitorBase {
0029   typedef std::vector<TH1F*> Hist1Ds;
0030 
0031 public:
0032   AlignmentMonitorGeneric(const edm::ParameterSet&, edm::ConsumesCollector iC);
0033 
0034   void book() override;
0035 
0036   void event(const edm::Event&, const edm::EventSetup&, const ConstTrajTrackPairCollection&) override;
0037 
0038 private:
0039   static const unsigned int nBin_ = 50;
0040 
0041   Hist1Ds m_trkHists;  // track parameters histograms
0042 
0043   std::map<const Alignable*, Hist1Ds> m_resHists;  // hit residuals histograms
0044 };
0045 
0046 #endif