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 
56 #include <cstdint>
57 
59 public:
60  explicit SiPixelClusterSource(const edm::ParameterSet &conf);
61  ~SiPixelClusterSource() override;
62 
64 
65  void analyze(const edm::Event &, const edm::EventSetup &) override;
66  void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override;
67  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
68 
69  virtual void buildStructure(edm::EventSetup const &);
70  virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup);
71 
73 
74 private:
78  bool saveFile;
79  bool isPIB;
80  bool slowDown;
81  int eventNo;
82  std::map<uint32_t, SiPixelClusterModule *> thePixelStructure;
83  bool modOn;
84  bool twoDimOn;
85  bool reducedSet;
86  // barrel:
87  bool ladOn, layOn, phiOn;
88  // forward:
90  bool smileyOn; // cluster sizeY vs Cluster eta plot
91  bool firstRun;
92  int lumSec;
93  int nLumiSecs;
97  bool isUpgrade;
98 
99  std::vector<MonitorElement *> meClPosLayer;
100  std::vector<MonitorElement *> meClPosDiskpz;
101  std::vector<MonitorElement *> meClPosDiskmz;
102 
106 
107  std::vector<MonitorElement *> meZeroRocBPIX;
109 
112 
113  void getrococcupancy(DetId detId,
114  const edm::DetSetVector<PixelDigi> &diginp,
115  const TrackerTopology *const tTopo,
116  std::vector<MonitorElement *> const &meinput);
117  void getrococcupancye(DetId detId,
118  const edmNew::DetSetVector<SiPixelCluster> &clustColl,
119  const TrackerTopology *const pTT,
121  MonitorElement *meinput);
122 
123  // define Token(-s)
126 };
127 
128 #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: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 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::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