18 if (prefixME_.substr(prefixME_.size()-1,prefixME_.size())!=
"/")
19 prefixME_.append(
"/");
73 if(
debug_>1)
std::cout <<
"<HcalNZSMonitor::setup> About to pushback fedUnpackList_" << std::endl;
91 if (
debug_>1)
std::cout <<
"<HcalNZSMonitor::setup> Creating histograms"<<std::endl;
100 "uTCA FED sizes", 5, 1117.5, 1122.5,100, -1000., 12000.,
"");
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);
115 meIsUS_=ib.
book1D(
"IsUnsuppressed_bit",
"IsUnsuppressed bit",2,0,2);
127 "full CMS data size;lumiblock number;average FEDRawDataCollection size (kB)",
171 const unsigned int nTrig(triggerNames.
size());
173 std::vector<bool> trigAcc;
174 for (
unsigned int i=0;
i<
triggers_.size();
i++) trigAcc.push_back(
false);
176 for (
unsigned int k=0;
k<nTrig;
k++)
187 if (!trigAcc[
p]) andAcc=
false;
210 bool processevent=
false;
211 if (orAcc) processevent=
true;
213 if (!processevent)
return;
219 bool hcalIsZS =
false;
225 if (fedData.
size()<12)
228 hcalSize+=fedData.
size();
235 if (dccHeader==0)
continue;
245 if(k != 20 && nspigot !=14 )
261 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
MonitorElement * meUTCAFEDsizesNZS_
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_