50 rawin_( conf_.getParameter<edm::
InputTag>(
"RawInput" ) ),
51 errin_( conf_.getParameter<edm::
InputTag>(
"ErrorInput" ) ),
52 saveFile( conf_.getUntrackedParameter<bool>(
"saveFile",
false) ),
53 slowDown( conf_.getUntrackedParameter<bool>(
"slowDown",
false) ),
54 dirName_( conf_.getUntrackedParameter<std::
string>(
"DirName",
"Pixel/FEDIntegrity/") )
57 LogInfo (
"PixelDQM") <<
"SiPixelHLTSource::SiPixelHLTSource: Got DQM BackEnd interface"<<endl;
65 LogInfo (
"PixelDQM") <<
"SiPixelHLTSource::~SiPixelHLTSource: Destructor"<<endl;
74 LogInfo (
"PixelDQM") <<
" SiPixelHLTSource::beginJob - Initialisation ... " << std::endl;
89 LogInfo (
"PixelDQM") <<
" SiPixelHLTSource::endJob - Saving Root File " << std::endl;
108 if (!errorinput.
isValid())
return;
112 for(fedId = 0; fedId <= 39; fedId++) {
114 const FEDRawData& fedRawData = rawinput->FEDData( fedId );
120 for(TrackerGeometry::DetContainer::const_iterator it =
pDD->dets().begin(); it !=
pDD->dets().end(); it++){
122 uint32_t detId = (*it)->geographicalId();
124 if( isearch != errorinput->end() ) {
125 for(di = isearch->data.
begin(); di != isearch->data.
end(); di++) {
126 fedId = di->getFedId();
127 int errorType = di->getType();
142 if( isearch != errorinput->end() ) {
143 for(di = isearch->data.
begin(); di != isearch->data.
end(); di++) {
144 fedId = di->getFedId();
145 int errorType = di->getType();
180 meRawWords_ = theDMBE->book1D(
"FEDEntries",
"Number of raw words",40,-0.5,39.5);
184 meNCRCs_ = theDMBE->book1D(
"FEDFatal",
"Number of fatal errors",40,-0.5,39.5);
188 meNErrors_ = theDMBE->book1D(
"FEDNonFatal",
"Number of non-fatal errors",40,-0.5,39.5);
191 delete RawHistogramId;
192 delete ErrorHistogramId;
T getParameter(std::string const &) const
SiPixelHLTSource(const edm::ParameterSet &conf)
void cd(void)
go to top directory (ie. root)
#define DEFINE_FWK_MODULE(type)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
MonitorElement * meNErrors_
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 &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
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.
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)