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
29 
32 
34 
38 
44 
46 
47 #include <boost/cstdint.hpp>
48 
58 
60 public:
61  explicit SiPixelClusterSource(const edm::ParameterSet &conf);
62  ~SiPixelClusterSource() override;
63 
65 
66  void analyze(const edm::Event &, const edm::EventSetup &) override;
67  void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override;
68  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
69 
70  virtual void buildStructure(edm::EventSetup const &);
71  virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup);
72 
74 
75 private:
79  bool saveFile;
80  bool isPIB;
81  bool slowDown;
82  int eventNo;
83  std::map<uint32_t, SiPixelClusterModule *> thePixelStructure;
84  bool modOn;
85  bool twoDimOn;
86  bool reducedSet;
87  // barrel:
88  bool ladOn, layOn, phiOn;
89  // forward:
91  bool smileyOn; // cluster sizeY vs Cluster eta plot
92  bool firstRun;
93  int lumSec;
94  int nLumiSecs;
98  bool isUpgrade;
99 
100  std::vector<MonitorElement *> meClPosLayer;
101  std::vector<MonitorElement *> meClPosDiskpz;
102  std::vector<MonitorElement *> meClPosDiskmz;
103 
107 
108  std::vector<MonitorElement *> meZeroRocBPIX;
110 
113 
114  void getrococcupancy(DetId detId,
115  const edm::DetSetVector<PixelDigi> &diginp,
116  const TrackerTopology *const tTopo,
117  std::vector<MonitorElement *> const &meinput);
118  void getrococcupancye(DetId detId,
119  const edmNew::DetSetVector<SiPixelCluster> &clustColl,
120  const TrackerTopology *const pTT,
122  MonitorElement *meinput);
123 
124  // define Token(-s)
127 };
128 
129 #endif
virtual void buildStructure(edm::EventSetup const &)
std::vector< MonitorElement * > meClPosLayer
void getrococcupancy(DetId detId, const edm::DetSetVector< PixelDigi > &diginp, const TrackerTopology *const tTopo, std::vector< MonitorElement * > const &meinput)
std::vector< MonitorElement * > meClPosDiskmz
data_type const * const_iterator
Definition: DetSetNew.h:30
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 analyze(const edm::Event &, const edm::EventSetup &) override
edm::ParameterSet conf_
Definition: DetId.h:18
std::vector< MonitorElement * > meZeroRocBPIX
void getrococcupancye(DetId detId, const edmNew::DetSetVector< SiPixelCluster > &clustColl, const TrackerTopology *const pTT, edm::ESHandle< TrackerGeometry > pDD, MonitorElement *meinput)
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)
MonitorElement * bigFpixClusterEventRate
Definition: Run.h:45