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
SiPixelClusterSource::getrococcupancye
void getrococcupancye(DetId detId, const edmNew::DetSetVector< SiPixelCluster > &clustColl, const TrackerTopology *const pTT, edm::ESHandle< TrackerGeometry > pDD, MonitorElement *meinput)
Definition: SiPixelClusterSource.cc:523
edm::DetSetVector
Definition: DetSetVector.h:61
dqm::impl::MonitorElement
Definition: MonitorElement.h:98
Handle.h
TrackerGeometry.h
PixelTopology.h
EDProducer.h
SiPixelClusterSource::meClusBarrelProf
MonitorElement * meClusBarrelProf
Definition: SiPixelClusterSource.h:103
ESHandle.h
SiPixelClusterSource::isPIB
bool isPIB
Definition: SiPixelClusterSource.h:79
SiPixelClusterSource::smileyOn
bool smileyOn
Definition: SiPixelClusterSource.h:90
SiPixelClusterSource
Definition: SiPixelClusterSource.h:58
edm::Run
Definition: Run.h:45
edm::EDGetTokenT
Definition: EDGetToken.h:33
TrackerTopology
Definition: TrackerTopology.h:16
SiPixelClusterSource::meZeroRocBPIX
std::vector< MonitorElement * > meZeroRocBPIX
Definition: SiPixelClusterSource.h:107
SiPixelCluster.h
SiPixelClusterSource::twoDimOn
bool twoDimOn
Definition: SiPixelClusterSource.h:84
SiPixelClusterSource::buildStructure
virtual void buildStructure(edm::EventSetup const &)
Definition: SiPixelClusterSource.cc:312
GeomDetType.h
GluedGeomDet.h
DQMStore.h
SiPixelClusterSource::srcToken_
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > srcToken_
Definition: SiPixelClusterSource.h:124
EDAnalyzer.h
PixelDigi.h
SiPixelClusterSource::diskOn
bool diskOn
Definition: SiPixelClusterSource.h:89
SiPixelClusterSource::digisrcToken_
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > digisrcToken_
Definition: SiPixelClusterSource.h:125
DetId
Definition: DetId.h:17
MakerMacros.h
SiPixelClusterSource::phiOn
bool phiOn
Definition: SiPixelClusterSource.h:87
SiPixelClusterSource::conf_
edm::ParameterSet conf_
Definition: SiPixelClusterSource.h:75
SiPixelClusterSource::digisrc_
edm::InputTag digisrc_
Definition: SiPixelClusterSource.h:77
edm::ESHandle< TrackerGeometry >
SiPixelClusterSource::SiPixelClusterSource
SiPixelClusterSource(const edm::ParameterSet &conf)
Definition: SiPixelClusterSource.cc:48
SiPixelClusterSource::firstRun
bool firstRun
Definition: SiPixelClusterSource.h:91
SiPixelClusterSource::saveFile
bool saveFile
Definition: SiPixelClusterSource.h:78
SiPixelClusterModule.h
PixelGeomDetType.h
DQMEDAnalyzer.h
SiPixelClusterSource::reducedSet
bool reducedSet
Definition: SiPixelClusterSource.h:85
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiPixelClusterSource::meClPosDiskmz
std::vector< MonitorElement * > meClPosDiskmz
Definition: SiPixelClusterSource.h:101
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
SiPixelClusterSource::noOfLayers
int noOfLayers
Definition: SiPixelClusterSource.h:110
SiPixelClusterSource::meClPosLayer
std::vector< MonitorElement * > meClPosLayer
Definition: SiPixelClusterSource.h:99
SiPixelClusterSource::meZeroRocFPIX
MonitorElement * meZeroRocFPIX
Definition: SiPixelClusterSource.h:108
TrackerDigiGeometryRecord.h
SiPixelClusterSource::isUpgrade
bool isUpgrade
Definition: SiPixelClusterSource.h:97
edm::ParameterSet
Definition: ParameterSet.h:36
SiPixelClusterSource::dqmBeginRun
void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override
Definition: SiPixelClusterSource.cc:90
Event.h
SiPixelClusterSource::meClusFpixMProf
MonitorElement * meClusFpixMProf
Definition: SiPixelClusterSource.h:105
SiPixelClusterSource::meClPosDiskpz
std::vector< MonitorElement * > meClPosDiskpz
Definition: SiPixelClusterSource.h:100
SiPixelClusterSource::thePixelStructure
std::map< uint32_t, SiPixelClusterModule * > thePixelStructure
Definition: SiPixelClusterSource.h:82
SiPixelClusterSource::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: SiPixelClusterSource.cc:109
SiPixelClusterSource::modOn
bool modOn
Definition: SiPixelClusterSource.h:83
SiPixelClusterSource::~SiPixelClusterSource
~SiPixelClusterSource() override
Definition: SiPixelClusterSource.cc:78
SiPixelClusterSource::slowDown
bool slowDown
Definition: SiPixelClusterSource.h:80
edm::EventSetup
Definition: EventSetup.h:57
SiPixelClusterSource::layOn
bool layOn
Definition: SiPixelClusterSource.h:87
GeometricDet.h
SiPixelClusterSource::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: SiPixelClusterSource.cc:213
SiPixelClusterSource::src_
edm::InputTag src_
Definition: SiPixelClusterSource.h:76
GeomDet.h
edmNew::DetSetVector
Definition: DetSetNew.h:13
Frameworkfwd.h
SiPixelClusterSource::eventNo
int eventNo
Definition: SiPixelClusterSource.h:81
PixelGeomDetUnit.h
EventSetup.h
SiPixelClusterSource::lumSec
int lumSec
Definition: SiPixelClusterSource.h:92
SiPixelClusterSource::bladeOn
bool bladeOn
Definition: SiPixelClusterSource.h:89
dqm::implementation::IBooker
Definition: DQMStore.h:43
SiPixelClusterSource::nLumiSecs
int nLumiSecs
Definition: SiPixelClusterSource.h:93
SiPixelClusterSource::nBigEvents
int nBigEvents
Definition: SiPixelClusterSource.h:94
SiPixelClusterSource::bigFpixClusterEventRate
MonitorElement * bigFpixClusterEventRate
Definition: SiPixelClusterSource.h:95
SiPixelClusterSource::ladOn
bool ladOn
Definition: SiPixelClusterSource.h:87
SiPixelClusterSource::noOfDisks
int noOfDisks
Definition: SiPixelClusterSource.h:111
ParameterSet.h
SiPixelClusterSource::getrococcupancy
void getrococcupancy(DetId detId, const edm::DetSetVector< PixelDigi > &diginp, const TrackerTopology *const tTopo, std::vector< MonitorElement * > const &meinput)
Definition: SiPixelClusterSource.cc:462
edm::Event
Definition: Event.h:73
SiPixelClusterSource::bigEventSize
int bigEventSize
Definition: SiPixelClusterSource.h:96
DetSetVectorNew.h
edm::InputTag
Definition: InputTag.h:15
SiPixelClusterSource::topFolderName_
std::string topFolderName_
Definition: SiPixelClusterSource.h:72
SiPixelClusterSource::ringOn
bool ringOn
Definition: SiPixelClusterSource.h:89
SiPixelClusterSource::ClusterIterator
edmNew::DetSet< SiPixelCluster >::const_iterator ClusterIterator
Definition: SiPixelClusterSource.h:63
SiPixelClusterSource::bookMEs
virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup)
Definition: SiPixelClusterSource.cc:384
SiPixelClusterSource::meClusFpixPProf
MonitorElement * meClusFpixPProf
Definition: SiPixelClusterSource.h:104
edmNew::DetSet::const_iterator
const data_type * const_iterator
Definition: DetSetNew.h:31