53 saveFile(conf_.getUntrackedParameter<
bool>(
"saveFile",
false)),
54 slowDown(conf_.getUntrackedParameter<
bool>(
"slowDown",
false)),
55 dirName_(conf_.getUntrackedParameter<
string>(
"DirName",
"Pixel/FEDIntegrity/")) {
57 LogInfo(
"PixelDQM") <<
"SiPixelHLTSource::SiPixelHLTSource: Got DQM BackEnd interface" << endl;
63 LogInfo(
"PixelDQM") <<
"SiPixelHLTSource::~SiPixelHLTSource: Destructor" << endl;
67 LogInfo(
"PixelDQM") <<
" SiPixelHLTSource::beginJob - Initialisation ... " << std::endl;
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();
183 meRawWords_ = iBooker.
book1D(
"FEDEntries",
"Number of raw words", 40, -0.5, 39.5);
184 meRawWords_->setAxisTitle(
"Number of raw words", 1);
187 meNCRCs_ = iBooker.
book1D(
"FEDFatal",
"Number of fatal errors", 40, -0.5, 39.5);
191 meNErrors_ = iBooker.
book1D(
"FEDNonFatal",
"Number of non-fatal errors", 40, -0.5, 39.5);
194 delete RawHistogramId;
195 delete ErrorHistogramId;
T getParameter(std::string const &) const
SiPixelHLTSource(const edm::ParameterSet &conf)
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.
virtual void bookMEs(DQMStore::IBooker &)
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
#define DEFINE_FWK_MODULE(type)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void setCurrentFolder(std::string const &fullpath)
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 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.