CMS 3D CMS Logo

SiPixelBarycenter.h
Go to the documentation of this file.
1 #ifndef DQM_SiPixelPhase1Summary_SiPixelBarycenter_h
2 #define DQM_SiPixelPhase1Summary_SiPixelBarycenter_h
3 // -*- C++ -*-
4 //
5 // Package: SiPixelPhase1Summary
6 // Class : SiPixelBarycenter
7 //
16 //
17 // Original Author: Danilo Meuser
18 // Created: 26th May 2021
19 //
20 
21 // user include files
23 
26 
29 
33 
36 
38 public:
39  explicit SiPixelBarycenter(const edm::ParameterSet& conf);
40  ~SiPixelBarycenter() override = default;
41 
42 protected:
43  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
44 
45  void dqmEndRun(DQMStore::IBooker& iBooker,
46  DQMStore::IGetter& iGetter,
47  edm::Run const& iRun,
48  edm::EventSetup const& c) override;
49  void dqmEndJob(DQMStore::IBooker& iBooker, DQMStore::IGetter& iGetter) override;
50 
51 private:
55 
56  std::map<std::string, MonitorElement*> barycenters_;
57 
58  const std::array<std::string, 9> subdetectors_ = {
59  {"BPIX", "FPIX_zm", "FPIX_zp", "BPIX_xp", "BPIX_xm", "FPIX_zp_xp", "FPIX_zm_xp", "FPIX_zp_xm", "FPIX_zm_xm"}};
60 
61  //book the barycenter histograms
63 
64  //fill the barycenter histograms
66  DQMStore::IGetter& iGetter,
67  const std::vector<AlignTransform>& input,
68  const std::vector<AlignTransform>& GPR,
69  const TrackerTopology& tTopo);
70 };
71 
72 #endif
const edm::ESGetToken< Alignments, GlobalPositionRcd > gprToken_
void fillBarycenterHistograms(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, const std::vector< AlignTransform > &input, const std::vector< AlignTransform > &GPR, const TrackerTopology &tTopo)
void dqmEndRun(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, edm::Run const &iRun, edm::EventSetup const &c) override
static std::string const input
Definition: EdmProvDump.cc:47
const std::array< std::string, 9 > subdetectors_
void dqmEndJob(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter) override
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopologyToken_
SiPixelBarycenter(const edm::ParameterSet &conf)
~SiPixelBarycenter() override=default
std::map< std::string, MonitorElement * > barycenters_
const edm::ESGetToken< Alignments, TrackerAlignmentRcd > alignmentToken_
Definition: Run.h:45
void bookBarycenterHistograms(DQMStore::IBooker &iBooker)
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override