18 if (prefixME_.substr(prefixME_.size()-1,prefixME_.size())!=
"/")
19 prefixME_.append(
"/");
81 if(
debug_>1)
std::cout <<
"<HcalNZSMonitor::setup> About to pushback fedUnpackList_" << std::endl;
95 if (
debug_>1)
std::cout <<
"<HcalNZSMonitor::setup> Creating histograms"<<std::endl;
106 "FED size Vs lumi block number;lumiblock number;average HCAL FED size (kB)",
111 "Is L1 event number multiple of NZS period",2,0,2);
127 "full CMS data size;lumiblock number;average FEDRawDataCollection size (kB)",
172 if (
debug_>0)
std::cout <<
"HcalNZSMonitor::processEvent DQMStore not instantiated!!!"<<std::endl;
176 const unsigned int nTrig(triggerNames.
size());
178 std::vector<bool> trigAcc;
179 for (
unsigned int i=0;
i<
triggers_.size();
i++) trigAcc.push_back(
false);
181 for (
unsigned int k=0;
k<nTrig;
k++)
192 if (!trigAcc[
p]) andAcc=
false;
215 bool processevent=
false;
216 if (orAcc) processevent=
true;
218 if (!processevent)
return;
224 bool hcalIsZS =
false;
228 hcalSize+=fedData.
size();
232 if (dccHeader==0)
continue;
242 if(k != 20 && nspigot !=14 )
258 fullSize+=fedData.
size();
T getUntrackedParameter(std::string const &, T const &) const
bool LumiInOrder(int lumisec)
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
void setBinContent(int binx, double content)
set content of bin (1-D)
std::vector< std::string > triggers_
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void beginRun(const edm::Run &run, const edm::EventSetup &c)
edm::InputTag rawdataLabel_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< int > AllowedCalibTypes_
bool accept() const
Has at least one path accepted the event?
int bunchCrossing() const
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
edm::LuminosityBlockNumber_t luminosityBlock() const
Strings::size_type size() const
void processEvent(const FEDRawDataCollection &rawraw, const edm::TriggerResults &, int bxNum, const edm::TriggerNames &triggerNames)
edm::InputTag hltresultsLabel_
size_t size() const
Lenght of the data buffer in bytes.
std::vector< int > selFEDs_
bool isUnsuppressed() const
Is this event an unsuppresed event?
virtual void beginRun(const edm::Run &run, const edm::EventSetup &c)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
void removeContents(void)
erase all monitoring elements in current directory (not including subfolders);
bool IsAllowedCalibType()
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
MonitorElement * meFullCMSdataSize_
MonitorElement * meTrigFrac_
std::string const & triggerName(unsigned int index) const
HcalNZSMonitor(const edm::ParameterSet &ps)
MonitorElement * meL1evtNumber_
TProfile * getTProfile(void) const
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
void analyze(edm::Event const &e, edm::EventSetup const &s)
edm::EDGetTokenT< edm::TriggerResults > tok_res_
MonitorElement * meFEDsizesNZS_
edm::EDGetTokenT< FEDRawDataCollection > tok_raw_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * meBXtriggered_
void setCurrentFolder(const std::string &fullpath)
MonitorElement * meFEDsizeVsLumi_