CMS 3D CMS Logo

SiPixelStatusProducer.h
Go to the documentation of this file.
1 #ifndef CalibTracker_SiPixelQuality_SiPixelStatusProducer_h
2 #define CalibTracker_SiPixelQuality_SiPixelStatusProducer_h
3 
10 // C++ standard
11 #include <string>
12 // CMS FW
19 
20 // Pixel data format
27 // Tracker Geo
33 
35  : public edm::one::EDProducer<edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, edm::Accumulator> {
36 public:
38  ~SiPixelStatusProducer() override;
39 
40  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
41 
42 private:
43  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, const edm::EventSetup&) final;
44  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, const edm::EventSetup&) final;
46  void accumulate(edm::Event const&, const edm::EventSetup&) final;
47 
48  virtual void onlineRocColRow(const DetId& detId, int offlineRow, int offlineCol, int& roc, int& row, int& col) final;
49 
50  virtual int indexROC(int irow, int icol, int nROCcolumns) final;
51 
52  // time granularity control
53  unsigned long int ftotalevents;
55  int countLumi_; //counter
56 
58  int endLumi_;
59  int beginRun_;
60  int endRun_;
61 
62  // condition watchers
63  // CablingMaps
66 
67  // TrackerDIGIGeo
70 
71  // TrackerTopology
73 
77 
78  // SiPixel offline<->online conversion
79  // -- map (for each detid) of the map from offline col/row to the online roc/col/row
81 
82  // ROC size (number of row, number of columns for each det id)
83  std::map<int, std::pair<int, int>> fSensors;
84  // the roc layout on a module
85  std::map<int, std::pair<int, int>> fSensorLayout;
86  // fedId as a function of detId
87  std::unordered_map<uint32_t, unsigned int> fFedIds;
88  // map the index ROC to rocId
89  std::map<int, std::map<int, int>> fRocIds;
90 
91  // Producer inputs / controls
94  std::vector<edm::EDGetTokenT<PixelFEDChannelCollection>> theBadPixelFEDChannelsTokens_;
95 
96  // Channels always have FEDerror25 for the full lumi section
97  std::map<int, std::vector<PixelFEDChannel>> FEDerror25_;
98 
99  // Producer production (output collection)
101 };
102 
103 #endif
ConfigurationDescriptions.h
EDProducer.h
SiPixelStatusProducer::fDet
SiPixelDetectorStatus fDet
Definition: SiPixelStatusProducer.h:100
TrackerGeometry.h
edm::ESWatcher< SiPixelFedCablingMapRcd >
SiPixelStatusProducer::siPixelFedCablingMapWatcher_
edm::ESWatcher< SiPixelFedCablingMapRcd > siPixelFedCablingMapWatcher_
Definition: SiPixelStatusProducer.h:64
SiPixelStatusProducer::theBadPixelFEDChannelsTokens_
std::vector< edm::EDGetTokenT< PixelFEDChannelCollection > > theBadPixelFEDChannelsTokens_
Definition: SiPixelStatusProducer.h:94
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
SiPixelStatusProducer
Definition: SiPixelStatusProducer.h:34
edm::EDGetTokenT
Definition: EDGetToken.h:33
SiPixelStatusProducer::ftotalevents
unsigned long int ftotalevents
Definition: SiPixelStatusProducer.h:53
SiPixelStatusProducer::resetNLumi_
int resetNLumi_
Definition: SiPixelStatusProducer.h:54
cuy.col
col
Definition: cuy.py:1010
PixelFEDChannel.h
SiPixelStatusProducer::fSiPixelClusterToken_
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > fSiPixelClusterToken_
Definition: SiPixelStatusProducer.h:93
SiPixelFedCablingMap.h
SiPixelStatusProducer::endLumi_
int endLumi_
Definition: SiPixelStatusProducer.h:58
SiPixelStatusProducer::trackerGeometryToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeometryToken_
Definition: SiPixelStatusProducer.h:74
edm::one::EDProducer
Definition: EDProducer.h:30
SiPixelStatusProducer::fSensorLayout
std::map< int, std::pair< int, int > > fSensorLayout
Definition: SiPixelStatusProducer.h:85
ESGetToken.h
SiPixelStatusProducer::fSensors
std::map< int, std::pair< int, int > > fSensors
Definition: SiPixelStatusProducer.h:83
SiPixelStatusProducer::trackerTopoWatcher_
edm::ESWatcher< TrackerTopologyRcd > trackerTopoWatcher_
Definition: SiPixelStatusProducer.h:72
SiPixelStatusProducer::SiPixelStatusProducer
SiPixelStatusProducer(const edm::ParameterSet &)
Definition: SiPixelStatusProducer.cc:46
SiPixelStatusProducer::fCablingMap_
const SiPixelFedCablingMap * fCablingMap_
Definition: SiPixelStatusProducer.h:65
SiPixelStatusProducer::trackerTopologyToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopologyToken_
Definition: SiPixelStatusProducer.h:75
SiPixelDetectorStatus
Definition: SiPixelDetectorStatus.h:11
DetId
Definition: DetId.h:17
TrackerTopology.h
TrackerTopologyRcd.h
SiPixelStatusProducer::endLuminosityBlockProduce
void endLuminosityBlockProduce(edm::LuminosityBlock &lumiSeg, const edm::EventSetup &) final
Definition: SiPixelStatusProducer.cc:302
SiPixelStatusProducer::endLuminosityBlock
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, const edm::EventSetup &) final
Definition: SiPixelStatusProducer.cc:299
SiPixelStatusProducer::siPixelFedCablingMapToken_
edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > siPixelFedCablingMapToken_
Definition: SiPixelStatusProducer.h:76
SiPixelStatusProducer::trackerGeometry_
const TrackerGeometry * trackerGeometry_
Definition: SiPixelStatusProducer.h:69
SiPixelStatusProducer::accumulate
void accumulate(edm::Event const &, const edm::EventSetup &) final
Definition: SiPixelStatusProducer.cc:154
SiPixelStatusProducer::beginRun_
int beginRun_
Definition: SiPixelStatusProducer.h:59
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
TrackerDigiGeometryRecord.h
edm::ParameterSet
Definition: ParameterSet.h:36
SiPixelStatusProducer::onlineRocColRow
virtual void onlineRocColRow(const DetId &detId, int offlineRow, int offlineCol, int &roc, int &row, int &col) final
Definition: SiPixelStatusProducer.cc:347
Event.h
SiPixelFedCablingMapRcd.h
SiPixelStatusProducer::fFedIds
std::unordered_map< uint32_t, unsigned int > fFedIds
Definition: SiPixelStatusProducer.h:87
SiPixelStatusProducer::~SiPixelStatusProducer
~SiPixelStatusProducer() override
Definition: SiPixelStatusProducer.cc:78
edm::EventSetup
Definition: EventSetup.h:57
SiPixelStatusProducer::endRun_
int endRun_
Definition: SiPixelStatusProducer.h:60
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord >
SiPixelFedCablingMap
Definition: SiPixelFedCablingMap.h:19
SiPixelDetectorStatus.h
SiPixelStatusProducer::coord_
SiPixelCoordinates coord_
Definition: SiPixelStatusProducer.h:80
SiPixelStatusProducer::fPixelClusterLabel_
edm::InputTag fPixelClusterLabel_
Definition: SiPixelStatusProducer.h:92
SiPixelStatusProducer::beginLumi_
int beginLumi_
Definition: SiPixelStatusProducer.h:57
DetId.h
Frameworkfwd.h
SiPixelStatusProducer::indexROC
virtual int indexROC(int irow, int icol, int nROCcolumns) final
Definition: SiPixelStatusProducer.cc:382
PixelMapPlotter.roc
roc
Definition: PixelMapPlotter.py:498
SiPixelStatusProducer::FEDerror25_
std::map< int, std::vector< PixelFEDChannel > > FEDerror25_
Definition: SiPixelStatusProducer.h:97
SiPixelStatusProducer::trackerDIGIGeoWatcher_
edm::ESWatcher< TrackerDigiGeometryRecord > trackerDIGIGeoWatcher_
Definition: SiPixelStatusProducer.h:68
SiPixelStatusProducer::countLumi_
int countLumi_
Definition: SiPixelStatusProducer.h:55
SiPixelStatusProducer::beginLuminosityBlock
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, const edm::EventSetup &) final
Definition: SiPixelStatusProducer.cc:81
ParameterSet.h
SiPixelStatusProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: SiPixelStatusProducer.cc:392
edm::Event
Definition: Event.h:73
SiPixelCoordinates
Definition: SiPixelCoordinates.h:35
DetSetVectorNew.h
edm::InputTag
Definition: InputTag.h:15
SiPixelStatusProducer::fRocIds
std::map< int, std::map< int, int > > fRocIds
Definition: SiPixelStatusProducer.h:89
SiPixelCoordinates.h
TrackerGeometry
Definition: TrackerGeometry.h:14