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
SiPixelClusterSource::getrococcupancye
void getrococcupancye(DetId detId, const edmNew::DetSetVector< SiPixelCluster > &clustColl, const TrackerTopology *const pTT, edm::ESHandle< TrackerGeometry > pDD, MonitorElement *meinput)
Definition: SiPixelClusterSource.cc:526
edm::DetSetVector
Definition: DetSetVector.h:61
TrackerGeometry.h
SiPixelClusterSource::meClusBarrelProf
MonitorElement * meClusBarrelProf
Definition: SiPixelClusterSource.h:80
SiPixelClusterSource::isPIB
bool isPIB
Definition: SiPixelClusterSource.h:56
SiPixelClusterSource::smileyOn
bool smileyOn
Definition: SiPixelClusterSource.h:67
SiPixelClusterSource
Definition: SiPixelClusterSource.h:35
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:84
SiPixelClusterSource::twoDimOn
bool twoDimOn
Definition: SiPixelClusterSource.h:61
SiPixelClusterSource::buildStructure
virtual void buildStructure(edm::EventSetup const &)
Definition: SiPixelClusterSource.cc:314
SiPixelClusterSource::srcToken_
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > srcToken_
Definition: SiPixelClusterSource.h:101
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
PixelDigi.h
SiPixelClusterSource::diskOn
bool diskOn
Definition: SiPixelClusterSource.h:66
SiPixelClusterSource::digisrcToken_
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > digisrcToken_
Definition: SiPixelClusterSource.h:102
DetId
Definition: DetId.h:17
TrackerTopology.h
TrackerTopologyRcd.h
SiPixelClusterSource::phiOn
bool phiOn
Definition: SiPixelClusterSource.h:64
SiPixelClusterSource::conf_
edm::ParameterSet conf_
Definition: SiPixelClusterSource.h:52
SiPixelClusterSource::digisrc_
edm::InputTag digisrc_
Definition: SiPixelClusterSource.h:54
edm::ESHandle< TrackerGeometry >
SiPixelClusterSource::trackerGeomTokenBeginRun_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomTokenBeginRun_
Definition: SiPixelClusterSource.h:107
SiPixelClusterSource::SiPixelClusterSource
SiPixelClusterSource(const edm::ParameterSet &conf)
Definition: SiPixelClusterSource.cc:45
SiPixelClusterSource::firstRun
bool firstRun
Definition: SiPixelClusterSource.h:68
SiPixelClusterSource::saveFile
bool saveFile
Definition: SiPixelClusterSource.h:55
SiPixelClusterModule.h
SiPixelClusterSource::trackerTopoTokenBeginRun_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoTokenBeginRun_
Definition: SiPixelClusterSource.h:106
DQMEDAnalyzer.h
SiPixelClusterSource::reducedSet
bool reducedSet
Definition: SiPixelClusterSource.h:62
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiPixelClusterSource::meClPosDiskmz
std::vector< MonitorElement * > meClPosDiskmz
Definition: SiPixelClusterSource.h:78
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
SiPixelClusterSource::noOfLayers
int noOfLayers
Definition: SiPixelClusterSource.h:87
SiPixelClusterSource::meClPosLayer
std::vector< MonitorElement * > meClPosLayer
Definition: SiPixelClusterSource.h:76
SiPixelClusterSource::meZeroRocFPIX
MonitorElement * meZeroRocFPIX
Definition: SiPixelClusterSource.h:85
TrackerDigiGeometryRecord.h
SiPixelClusterSource::isUpgrade
bool isUpgrade
Definition: SiPixelClusterSource.h:74
edm::ParameterSet
Definition: ParameterSet.h:47
SiPixelClusterSource::dqmBeginRun
void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override
Definition: SiPixelClusterSource.cc:93
SiPixelClusterSource::meClusFpixMProf
MonitorElement * meClusFpixMProf
Definition: SiPixelClusterSource.h:82
SiPixelClusterSource::meClPosDiskpz
std::vector< MonitorElement * > meClPosDiskpz
Definition: SiPixelClusterSource.h:77
SiPixelClusterSource::thePixelStructure
std::map< uint32_t, SiPixelClusterModule * > thePixelStructure
Definition: SiPixelClusterSource.h:59
SiPixelClusterSource::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: SiPixelClusterSource.cc:112
SiPixelClusterSource::modOn
bool modOn
Definition: SiPixelClusterSource.h:60
SiPixelClusterSource::~SiPixelClusterSource
~SiPixelClusterSource() override
Definition: SiPixelClusterSource.cc:81
SiPixelClusterSource::slowDown
bool slowDown
Definition: SiPixelClusterSource.h:57
edm::EventSetup
Definition: EventSetup.h:58
SiPixelClusterSource::layOn
bool layOn
Definition: SiPixelClusterSource.h:64
SiPixelClusterSource::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: SiPixelClusterSource.cc:216
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd >
SiPixelClusterSource::src_
edm::InputTag src_
Definition: SiPixelClusterSource.h:53
SiPixelClusterSource::trackerGeomToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomToken_
Definition: SiPixelClusterSource.h:105
edmNew::DetSetVector
Definition: DetSetNew.h:13
SiPixelClusterSource::trackerTopoToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoToken_
Definition: SiPixelClusterSource.h:104
SiPixelClusterSource::eventNo
int eventNo
Definition: SiPixelClusterSource.h:58
SiPixelClusterSource::lumSec
int lumSec
Definition: SiPixelClusterSource.h:69
SiPixelClusterSource::bladeOn
bool bladeOn
Definition: SiPixelClusterSource.h:66
dqm::implementation::IBooker
Definition: DQMStore.h:43
SiPixelClusterSource::nLumiSecs
int nLumiSecs
Definition: SiPixelClusterSource.h:70
SiPixelClusterSource::nBigEvents
int nBigEvents
Definition: SiPixelClusterSource.h:71
SiPixelClusterSource::bigFpixClusterEventRate
MonitorElement * bigFpixClusterEventRate
Definition: SiPixelClusterSource.h:72
SiPixelClusterSource::ladOn
bool ladOn
Definition: SiPixelClusterSource.h:64
SiPixelClusterSource::noOfDisks
int noOfDisks
Definition: SiPixelClusterSource.h:88
SiPixelClusterSource::getrococcupancy
void getrococcupancy(DetId detId, const edm::DetSetVector< PixelDigi > &diginp, const TrackerTopology *const tTopo, std::vector< MonitorElement * > const &meinput)
Definition: SiPixelClusterSource.cc:465
edm::Event
Definition: Event.h:73
SiPixelClusterSource::bigEventSize
int bigEventSize
Definition: SiPixelClusterSource.h:73
edm::InputTag
Definition: InputTag.h:15
SiPixelClusterSource::topFolderName_
std::string topFolderName_
Definition: SiPixelClusterSource.h:49
SiPixelClusterSource::ringOn
bool ringOn
Definition: SiPixelClusterSource.h:66
SiPixelClusterSource::ClusterIterator
edmNew::DetSet< SiPixelCluster >::const_iterator ClusterIterator
Definition: SiPixelClusterSource.h:40
SiPixelClusterSource::bookMEs
virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup)
Definition: SiPixelClusterSource.cc:384
SiPixelClusterSource::meClusFpixPProf
MonitorElement * meClusFpixPProf
Definition: SiPixelClusterSource.h:81
edmNew::DetSet::const_iterator
const data_type * const_iterator
Definition: DetSetNew.h:31