Description: Produces histograms for error information generated at the raw2digi stage for the pixel tracker.
Implementation: Takes raw data and error data as input, and uses it to populate three histograms indexed by FED id.
Definition at line 49 of file SiPixelHLTSource.h.
Definition at line 84 of file SiPixelHLTSource.cc.
References edm::DetSetVector< T >::begin(), TrackerGeometry::dets(), edm::DetSetVector< T >::end(), errin_, eventNo, FEDRawDataCollection::FEDData(), l1t::stage2::layer2::fedId, HcalObjRepresent::Fill(), edm::Event::getByToken(), GeomDetEnumerators::isTrackerPixel(), edm::HandleBase::isValid(), meNCRCs_, meNErrors_, meRawWords_, pDD, rawin_, FEDRawData::size(), and slowDown.
97 for (fedId = 0; fedId <= 39; fedId++) {
100 if (fedRawData.
size() != 0)
106 for (TrackerGeometry::DetContainer::const_iterator it =
pDD->
dets().begin(); it !=
pDD->
dets().end(); it++) {
108 uint32_t detId = (*it)->geographicalId();
110 if (isearch != errorinput->end()) {
111 for (di = isearch->data.
begin(); di != isearch->data.
end(); di++) {
112 fedId = di->getFedId();
113 int errorType = di->getType();
137 if (isearch != errorinput->end()) {
138 for (di = isearch->data.
begin(); di != isearch->data.
end(); di++) {
139 fedId = di->getFedId();
140 int errorType = di->getType();
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * meNErrors_
edm::EDGetTokenT< edm::DetSetVector< SiPixelRawDataError > > errin_
MonitorElement * meNCRCs_
size_t size() const
Lenght of the data buffer in bytes.
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
edm::EDGetTokenT< FEDRawDataCollection > rawin_
iterator end()
Return the off-the-end iterator.
MonitorElement * meRawWords_
iterator begin()
Return an iterator to the first DetSet.
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
edm::ESHandle< TrackerGeometry > pDD
bool isTrackerPixel(GeomDetEnumerators::SubDetector m)