51 saveFile( conf_.getUntrackedParameter<bool>(
"saveFile",
false) ),
52 slowDown( conf_.getUntrackedParameter<bool>(
"slowDown",
false) ),
53 dirName_( conf_.getUntrackedParameter<std::
string>(
"DirName",
"Pixel/FEDIntegrity/") )
56 LogInfo (
"PixelDQM") <<
"SiPixelHLTSource::SiPixelHLTSource: Got DQM BackEnd interface"<<endl;
64 LogInfo (
"PixelDQM") <<
"SiPixelHLTSource::~SiPixelHLTSource: Destructor"<<endl;
73 LogInfo (
"PixelDQM") <<
" SiPixelHLTSource::beginJob - Initialisation ... " << std::endl;
88 LogInfo (
"PixelDQM") <<
" SiPixelHLTSource::endJob - Saving Root File " << std::endl;
107 if (!errorinput.
isValid())
return;
111 for(fedId = 0; fedId <= 39; fedId++) {
113 const FEDRawData& fedRawData = rawinput->FEDData( fedId );
119 for(TrackerGeometry::DetContainer::const_iterator it =
pDD->dets().begin(); it !=
pDD->dets().end(); it++){
121 uint32_t detId = (*it)->geographicalId();
123 if( isearch != errorinput->end() ) {
124 for(di = isearch->data.
begin(); di != isearch->data.
end(); di++) {
125 fedId = di->getFedId();
126 int errorType = di->getType();
141 if( isearch != errorinput->end() ) {
142 for(di = isearch->data.
begin(); di != isearch->data.
end(); di++) {
143 fedId = di->getFedId();
144 int errorType = di->getType();
179 meRawWords_ = theDMBE->book1D(
"FEDEntries",
"Number of raw words",40,-0.5,39.5);
183 meNCRCs_ = theDMBE->book1D(
"FEDFatal",
"Number of fatal errors",40,-0.5,39.5);
187 meNErrors_ = theDMBE->book1D(
"FEDNonFatal",
"Number of non-fatal errors",40,-0.5,39.5);
190 delete RawHistogramId;
191 delete ErrorHistogramId;
T getParameter(std::string const &) const
SiPixelHLTSource(const edm::ParameterSet &conf)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void cd(void)
go to top directory (ie. root)
#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.
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
virtual void beginRun(const edm::Run &, edm::EventSetup const &)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
edm::EDGetTokenT< FEDRawDataCollection > rawin_
iterator end()
Return the off-the-end iterator.
MonitorElement * meRawWords_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
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)
void setCurrentFolder(const std::string &fullpath)
Pixel error – collection of errors and error information.