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 
39 
45 
47 
48 #include <boost/cstdint.hpp>
49 
59 
61  public:
62  explicit SiPixelClusterSource(const edm::ParameterSet& conf);
63  ~SiPixelClusterSource() override;
64 
66 
67  void analyze(const edm::Event&, const edm::EventSetup&) override;
68  void dqmBeginRun(const edm::Run&, edm::EventSetup const&) override;
69  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
70 
71  virtual void buildStructure(edm::EventSetup const&);
72  virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup& iSetup);
73 
75 
76  private:
80  bool saveFile;
81  bool isPIB;
82  bool slowDown;
83  int eventNo;
84  std::map<uint32_t,SiPixelClusterModule*> thePixelStructure;
85  bool modOn;
86  bool twoDimOn;
87  bool reducedSet;
88  //barrel:
89  bool ladOn, layOn, phiOn;
90  //forward:
92  bool smileyOn; //cluster sizeY vs Cluster eta plot
93  bool firstRun;
94  int lumSec;
95  int nLumiSecs;
99  bool isUpgrade;
100 
101  std::vector<MonitorElement*> meClPosLayer;
102  std::vector<MonitorElement*> meClPosDiskpz;
103  std::vector<MonitorElement*> meClPosDiskmz;
104 
108 
109  std::vector<MonitorElement*> meZeroRocBPIX;
111 
114 
115  void getrococcupancy(DetId detId,const edm::DetSetVector<PixelDigi> & diginp,const TrackerTopology* const tTopo,
116  std::vector<MonitorElement*> const & meinput);
117  void getrococcupancye(DetId detId,const edmNew::DetSetVector<SiPixelCluster> & clustColl, const TrackerTopology* const pTT,
119 
120  //define Token(-s)
123 };
124 
125 #endif
virtual void buildStructure(edm::EventSetup const &)
std::vector< MonitorElement * > meClPosDiskmz
void getrococcupancy(DetId detId, const edm::DetSetVector< PixelDigi > &diginp, const TrackerTopology *const tTopo, std::vector< MonitorElement * > const &meinput)
data_type const * const_iterator
Definition: DetSetNew.h:30
void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > srcToken_
std::vector< MonitorElement * > meZeroRocBPIX
MonitorElement * meZeroRocFPIX
SiPixelClusterSource(const edm::ParameterSet &conf)
std::vector< MonitorElement * > meClPosDiskpz
MonitorElement * meClusBarrelProf
std::vector< MonitorElement * > meClPosLayer
MonitorElement * meClusFpixMProf
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::ParameterSet conf_
Definition: DetId.h:18
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
edmNew::DetSet< SiPixelCluster >::const_iterator ClusterIterator
virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup)
std::map< uint32_t, SiPixelClusterModule * > thePixelStructure
MonitorElement * bigFpixClusterEventRate
Definition: Run.h:43