53 saveFile( conf_.getUntrackedParameter<
bool>(
"saveFile",
false) ),
54 slowDown( conf_.getUntrackedParameter<
bool>(
"slowDown",
false) ),
55 dirName_( conf_.getUntrackedParameter<
string>(
"DirName",
"Pixel/FEDIntegrity/") )
58 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++) {
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)
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 &)
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)
MonitorElement * book1D(Args &&...args)
edm::EDGetTokenT< FEDRawDataCollection > rawin_
iterator end()
Return the off-the-end iterator.
MonitorElement * meRawWords_
void setCurrentFolder(const std::string &fullpath)
void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
iterator begin()
Return an iterator to the first DetSet.
~SiPixelHLTSource() override
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)
void analyze(const edm::Event &, const edm::EventSetup &) override
bool isTrackerPixel(GeomDetEnumerators::SubDetector m)
Pixel error – collection of errors and error information.