CMS 3D CMS Logo

SiPixelClusterSource.h
Go to the documentation of this file.
1 #ifndef SiPixelMonitorCluster_SiPixelClusterSource_h
2 #define SiPixelMonitorCluster_SiPixelClusterSource_h
3 // -*- C++ -*-
4 //
5 // Package: SiPixelMonitorCluster
6 // Class : SiPixelClusterSource
7 //
8 /*
9 
10  Description: <one line class summary>
11 
12  Usage:
13  <usage>
14 
15 */
16 //
17 // Original Author: Vincenzo Chiochia & Andrew York
18 //
19 // Updated by: Lukas Wehrli
20 // for pixel offline DQM
21 // Created:
22 
23 #include <memory>
24 
25 // user include files
33 #include <cstdint>
34 
36 public:
37  explicit SiPixelClusterSource(const edm::ParameterSet &conf);
38  ~SiPixelClusterSource() override;
39 
41 
42  void analyze(const edm::Event &, const edm::EventSetup &) override;
43  void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override;
44  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
45 
46  virtual void buildStructure(edm::EventSetup const &);
47  virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup);
48 
50 
51 private:
55  bool saveFile;
56  bool isPIB;
57  bool slowDown;
58  int eventNo;
59  std::map<uint32_t, SiPixelClusterModule *> thePixelStructure;
60  bool modOn;
61  bool twoDimOn;
62  bool reducedSet;
63  // barrel:
64  bool ladOn, layOn, phiOn;
65  // forward:
67  bool smileyOn; // cluster sizeY vs Cluster eta plot
68  bool firstRun;
69  int lumSec;
70  int nLumiSecs;
74  bool isUpgrade;
75 
76  std::vector<MonitorElement *> meClPosLayer;
77  std::vector<MonitorElement *> meClPosDiskpz;
78  std::vector<MonitorElement *> meClPosDiskmz;
79 
83 
84  std::vector<MonitorElement *> meZeroRocBPIX;
86 
88  int noOfDisks;
89 
90  void getrococcupancy(DetId detId,
91  const edm::DetSetVector<PixelDigi> &diginp,
92  const TrackerTopology *const tTopo,
93  std::vector<MonitorElement *> const &meinput);
94  void getrococcupancye(DetId detId,
95  const edmNew::DetSetVector<SiPixelCluster> &clustColl,
96  const TrackerTopology *const pTT,
98  MonitorElement *meinput);
99 
100  // define Token(-s)
103 
108 };
109 
110 #endif
virtual void buildStructure(edm::EventSetup const &)
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoToken_
std::vector< MonitorElement * > meClPosLayer
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomTokenBeginRun_
std::vector< MonitorElement * > meClPosDiskmz
data_type const * const_iterator
Definition: DetSetNew.h:31
void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > srcToken_
MonitorElement * meZeroRocFPIX
std::map< uint32_t, SiPixelClusterModule * > thePixelStructure
SiPixelClusterSource(const edm::ParameterSet &conf)
MonitorElement * meClusBarrelProf
MonitorElement * meClusFpixMProf
void getrococcupancy(DetId detId, const edm::DetSetVector< PixelDigi > &diginp, const TrackerTopology *const tTopo, std::vector< MonitorElement *> const &meinput)
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::ParameterSet conf_
Definition: DetId.h:17
std::vector< MonitorElement * > meZeroRocBPIX
void getrococcupancye(DetId detId, const edmNew::DetSetVector< SiPixelCluster > &clustColl, const TrackerTopology *const pTT, edm::ESHandle< TrackerGeometry > pDD, MonitorElement *meinput)
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoTokenBeginRun_
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > digisrcToken_
MonitorElement * meClusFpixPProf
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< MonitorElement * > meClPosDiskpz
edmNew::DetSet< SiPixelCluster >::const_iterator ClusterIterator
virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup)
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomToken_
MonitorElement * bigFpixClusterEventRate
Definition: Run.h:45