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;
90 LogInfo (
"PixelDQM") <<
" SiPixelHLTSource::endJob - Saving Root File " << std::endl;
109 if (!errorinput.
isValid())
return;
113 for(fedId = 0; fedId <= 39; fedId++) {
115 const FEDRawData& fedRawData = rawinput->FEDData( fedId );
121 for(TrackerGeometry::DetContainer::const_iterator it =
pDD->dets().begin(); it !=
pDD->dets().end(); it++){
123 uint32_t detId = (*it)->geographicalId();
125 if( isearch != errorinput->end() ) {
126 for(di = isearch->data.
begin(); di != isearch->data.
end(); di++) {
127 fedId = di->getFedId();
128 int errorType = di->getType();
143 if( isearch != errorinput->end() ) {
144 for(di = isearch->data.
begin(); di != isearch->data.
end(); di++) {
145 fedId = di->getFedId();
146 int errorType = di->getType();
181 meRawWords_ = theDMBE->book1D(
"FEDEntries",
"Number of raw words",40,-0.5,39.5);
185 meNCRCs_ = theDMBE->book1D(
"FEDFatal",
"Number of fatal errors",40,-0.5,39.5);
189 meNErrors_ = theDMBE->book1D(
"FEDNonFatal",
"Number of non-fatal errors",40,-0.5,39.5);
192 delete RawHistogramId;
193 delete ErrorHistogramId;
T getParameter(std::string const &) const
SiPixelHLTSource(const edm::ParameterSet &conf)
void cd(void)
go to top directory (ie. root)
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)