7 std::cout <<
"BxTiming::BxTiming()...\n" << std::flush;
29 for (
int i = 0;
i < ngtbits;
i++)
34 std::cout <<
"BxTiming: gt bits set for timing dqm:";
44 std::cout <<
"BxTiming::BxTiming constructor...done.\n" << std::flush;
63 std::string SysLabel[
NSYS] = {
"PreShower",
"ECAL",
"HCAL",
"GCT",
"CSCTPG",
"CSCTF",
"DTTPG",
"DTTF",
"RPC",
"GT"};
65 typedef std::pair<int, int> FEDRange;
67 std::pair<int, int> fedRange[
NSYS] = {
91 refName += SysLabel[fedRefSys];
97 const int dbx =
nbig_;
102 "BxDiffAllFed",
"BxDiffAllFed",
nfed_ + 1, -0.5,
nfed_ + 0.5, 2 * dbx + 1, -1 * dbx - 0.5, dbx + 0.5);
106 lbl +=
"BxDiffAllFed";
107 lbl += spreadLabel[
i];
110 lbl +=
"BxOccyAllFed";
111 lbl += spreadLabel[
i];
115 lbl +=
"BxOccyAllFed";
123 for (
int i = 0;
i <
NSYS;
i++) {
128 nfeds = (nfeds > 0) ? nfeds : 1;
140 lbl +=
"BxOccyAllFed";
145 lbl +=
"BxOccyOneFed";
153 lbl +=
"BxOccyGtTrigType";
159 for (
int i = 0;
i <
NSYS;
i++) {
164 lbl +=
"BxOccyGtBit";
174 lbl +=
"BX(fed)-BX(";
180 lbl +=
"BX(fed)-BX(";
182 lbl +=
") " + spreadLabel[
i];
186 lbl +=
"Bx FED occupancy";
188 lbl += spreadLabel[
i];
195 lbl +=
"Combined FED occupancy";
202 for (
int i = 0;
i <
NSYS;
i++) {
227 lbl +=
"GT occupancy for trigger type ";
232 for (
int i = 0;
i <
NSYS;
i++) {
237 lbl +=
" Bx occupancy for Trigger bit ";
247 std::cout <<
"BxTiming::analyze() start\n" << std::flush;
257 std::cout <<
"BxTiming::analyze() | FEDRawDataCollection with input tag " <<
fedSource_ <<
" not found.";
265 std::vector<bool> gtbits;
267 gtbits.reserve(ngtbits);
268 for (
int i = 0;
i < ngtbits;
i++)
273 if (gtbits.empty()) {
274 gtbits.push_back(
true);
276 std::cout <<
"BxTiming::analyze() | unexpected empty decision bits!";
281 <<
" decision word size:" << (
int)(gtbits.size()) <<
" bits: ";
282 for (
size_t i = 0;
i != gtbits.size();
i++) {
283 int ii = gtbits.at(
i) ? 1 : 0;
294 int ttype =
static_cast<double>(
iEvent.eventAuxiliary().experimentType());
321 std::cout <<
" fed:" <<
i <<
" bx:" <<
bx <<
" bxRef:" << bxRef <<
" diff:" << bxDiff <<
" nBxDiff" 342 std::cout <<
"BxTiming analyze | problem with vector size!\n" << std::endl;
346 for (
int j = 0;
j <
NSYS;
j++) {
380 std::cout <<
"BxTiming::analyze() end.\n" << std::flush;
386 int diff = bx1 - bx2;
MonitorElement * hBxDiffAllFed
histograms
int nBxOccy[FEDNumbering::MAXFEDID+1][nspr_]
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * hBxDiffAllFedSpread[nspr_]
std::vector< int > listGtBits_
const DecisionWord & decisionWord(int bxInEventValue) const
MonitorElement * hBxOccyAllFed
MonitorElement ** hBxOccyOneFed
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > gtSource_token_
static std::string to_string(const XMLCh *ch)
T getUntrackedParameter(std::string const &, T const &) const
U second(std::pair< T, U > const &p)
MonitorElement * hBxOccyGtTrigType[nttype_]
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
static const int half_norb_
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
std::pair< int, int > fedRange_[NSYS]
void bookHistograms(DQMStore::IBooker &ibooker, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< FEDRawDataCollection > fedSource_token_
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * hBxDiffSysFed[NSYS]
MonitorElement ** hBxOccyTrigBit[NSYS]
char data[epos_bytes_allocation]
int calcBxDiff(int bx1, int bx2)
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
int nBxDiff[FEDNumbering::MAXFEDID+1][nspr_]
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * hBxOccyAllFedSpread[nspr_]
BxTiming(const edm::ParameterSet &)
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)