53 saveFile( conf_.getUntrackedParameter<bool>(
"saveFile",
false) ),
54 slowDown( conf_.getUntrackedParameter<bool>(
"slowDown",
false) )
57 LogInfo (
"PixelDQM") <<
"SiPixelHLTSource::SiPixelHLTSource: Got DQM BackEnd interface"<<endl;
66 LogInfo (
"PixelDQM") <<
"SiPixelHLTSource::~SiPixelHLTSource: Destructor"<<endl;
71 LogInfo (
"PixelDQM") <<
" SiPixelHLTSource::beginJob - Initialisation ... " << std::endl;
97 if (!errorinput.
isValid())
return;
101 for(fedId = 0; fedId <= 39; fedId++) {
103 const FEDRawData& fedRawData = rawinput->FEDData( fedId );
109 for(TrackerGeometry::DetContainer::const_iterator it =
pDD->dets().begin(); it !=
pDD->dets().end(); it++){
111 uint32_t detId = (*it)->geographicalId();
113 if( isearch != errorinput->end() ) {
114 for(di = isearch->data.
begin(); di != isearch->data.
end(); di++) {
115 fedId = di->getFedId();
116 int errorType = di->getType();
131 if( isearch != errorinput->end() ) {
132 for(di = isearch->data.
begin(); di != isearch->data.
end(); di++) {
133 fedId = di->getFedId();
134 int errorType = di->getType();
168 meRawWords_->setAxisTitle(
"Number of raw words",1);
171 meNCRCs_ = iBooker.
book1D(
"FEDFatal",
"Number of fatal errors",40,-0.5,39.5);
175 meNErrors_ = iBooker.
book1D(
"FEDNonFatal",
"Number of non-fatal errors",40,-0.5,39.5);
178 delete RawHistogramId;
179 delete ErrorHistogramId;
T getParameter(std::string const &) const
SiPixelHLTSource(const edm::ParameterSet &conf)
std::string topFolderName_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
MonitorElement * meNErrors_
edm::EDGetTokenT< edm::DetSetVector< SiPixelRawDataError > > errin_
MonitorElement * meNCRCs_
size_t size() const
Lenght of the data buffer in bytes.
virtual void bookMEs(DQMStore::IBooker &)
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * book1D(Args &&...args)
edm::EDGetTokenT< FEDRawDataCollection > rawin_
iterator end()
Return the off-the-end iterator.
MonitorElement * meRawWords_
void setCurrentFolder(const std::string &fullpath)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
bool isTrackerPixel(const GeomDetEnumerators::SubDetector m)
virtual void dqmBeginRun(const edm::Run &, edm::EventSetup const &)
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
iterator begin()
Return an iterator to the first DetSet.
volatile std::atomic< bool > shutdown_flag false
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
edm::ESHandle< TrackerGeometry > pDD
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
Pixel error – collection of errors and error information.