18 if (prefixME_.substr(prefixME_.size()-1,prefixME_.size())!=
"/")
19 prefixME_.append(
"/");
72 if(
debug_>1)
std::cout <<
"<HcalNZSMonitor::setup> About to pushback fedUnpackList_" << std::endl;
86 if (
debug_>1)
std::cout <<
"<HcalNZSMonitor::setup> Creating histograms"<<std::endl;
95 "FED size Vs lumi block number;lumiblock number;average HCAL FED size (kB)",
100 "Is L1 event number multiple of NZS period",2,0,2);
104 meIsUS_=ib.
book1D(
"IsUnsuppressed_bit",
"IsUnsuppressed bit",2,0,2);
116 "full CMS data size;lumiblock number;average FEDRawDataCollection size (kB)",
159 const unsigned int nTrig(triggerNames.
size());
161 std::vector<bool> trigAcc;
162 for (
unsigned int i=0;
i<
triggers_.size();
i++) trigAcc.push_back(
false);
164 for (
unsigned int k=0;
k<nTrig;
k++)
175 if (!trigAcc[
p]) andAcc=
false;
198 bool processevent=
false;
199 if (orAcc) processevent=
true;
201 if (!processevent)
return;
207 bool hcalIsZS =
false;
211 hcalSize+=fedData.
size();
215 if (dccHeader==0)
continue;
225 if(k != 20 && nspigot !=14 )
241 fullSize+=fedData.
size();
void bookHistograms(DQMStore::IBooker &ib, const edm::Run &run, const edm::EventSetup &c)
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)
edm::InputTag rawdataLabel_
MonitorElement * bookProfile(Args &&...args)
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?
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
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?
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
bool IsAllowedCalibType()
MonitorElement * book1D(Args &&...args)
MonitorElement * meFullCMSdataSize_
MonitorElement * meTrigFrac_
void setCurrentFolder(const std::string &fullpath)
std::string const & triggerName(unsigned int index) const
void setup(DQMStore::IBooker &)
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)
virtual void setup(DQMStore::IBooker &)
MonitorElement * meBXtriggered_
MonitorElement * meFEDsizeVsLumi_