4 #define PI 3.1415926535897932
96 if(
fVerbosity)
std::cout <<
"<HcalEEUSMonitor::setup>:Pushback for fedUnpackList_: " <<
i <<std::endl;
111 type =
"Fraction Normal Events - US0 EE0";
114 sprintf(label,
"FED 7%02d",
f);
117 sprintf(label,
"sp%02d",
s-1);
120 type =
"Fraction Empty Events - US0 EE1";
123 sprintf(label,
"FED 7%02d",
f);
126 sprintf(label,
"sp%02d",
s-1);
129 type =
"Fraction UnSuppressed Events - US1 EE0";
132 sprintf(label,
"FED 7%02d",
f);
135 sprintf(label,
"sp%02d",
s-1);
138 type =
"Fraction UnSuppressed Events - US1 EE1";
141 sprintf(label,
"FED 7%02d",
f);
144 sprintf(label,
"sp%02d",
s-1);
149 type =
"Length of raw data - US0 EE0";
152 sprintf(label,
"FED 7%02d",
f);
155 sprintf(label,
"sp%02d",
s-1);
158 type =
"Length of raw data - US0 EE1";
161 sprintf(label,
"FED 7%02d",
f);
164 sprintf(label,
"sp%02d",
s-1);
167 type =
"Length of raw data - US1 EE0";
170 sprintf(label,
"FED 7%02d",
f);
173 sprintf(label,
"sp%02d",
s-1);
176 type =
"Length of raw data - US1 EE1";
179 sprintf(label,
"FED 7%02d",
f);
182 sprintf(label,
"sp%02d",
s-1);
189 type=
"EE Spigot Correlation";
193 type=
"EE per Spigot";
196 type=
"EE Spigots per Event";
202 sprintf(title,
"EE Triggers");
204 sprintf(title,
"NE Triggers");
206 sprintf(title,
"Triggers");
210 sprintf(label,
"DCC 7%02d",
f);
218 sprintf(label,
"Spgt %02d",
s-1);
282 if (fed.
size()<12)
continue;
315 if(!dccHeader)
return;
318 unsigned char* trailer_ptr = (
unsigned char*) (raw.
data()+raw.
size()-
sizeof(
uint64_t));
334 unsigned char WholeErrorList=0;
355 const unsigned short* HTRraw = htr.
getRawData();
356 unsigned short HTRwdcount = HTRraw[htr.
getRawLength() - 2];
367 int here=1+(HcalDCCHeader::SPIGOT_COUNT*(dccid-700))+spigot;
369 if ( ! ((HTRwdcount != 8) ||
370 (HTRwdcount != 12 + NTP + NDAQ) ||
371 (HTRwdcount != 20 + NTP + NDAQ) )) {
379 if (HTRwdcount != 8) {
384 if ((HTRwdcount-NDAQ-NTP) != 20) {
421 if (EE)
prevWasEE[dccid-700][spigot] = 1;
426 bool htrUnSuppressed=(HTRraw[6]>>15 & 0x0001);
428 bool htrEmpty=(HTRraw[2] & 0x4);
439 if (htrUnSuppressed==
false && htrEmpty==
false){
446 if (htrUnSuppressed==
false && htrEmpty==
true){
453 if (htrUnSuppressed==
true && htrEmpty==
false){
460 if (htrUnSuppressed==
true && htrEmpty==
true){
480 std::cout <<
"No second CDF header found!"<<std::endl;
void setup(const edm::ParameterSet &ps, DQMStore::IBooker &ib)
void unpack(const FEDRawData &raw, const HcalElectronicsMap &emap)
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * meUSFractSpigs_US1_EE1_
uint32_t consecutiveTriggers[NUMFEDS][NUMSPIGS]
virtual void setup(const edm::ParameterSet &ps, DQMStore::IBooker &ib)
MonitorElement * bookInt(Args &&...args)
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)
unsigned int getExtHdr6() const
uint32_t consecutiveEETriggers[NUMFEDS][NUMSPIGS]
size_t size() const
Lenght of the data buffer in bytes.
MonitorElement * meNumberNETriggered_
MonitorElement * meEEFractSpigs_US0_EE1_
MonitorElement * meNormFractSpigs_US0_EE0_
MonitorElement * meRawDataLength2_US0_EE0_
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
uint32_t consecutiveNETriggers[NUMFEDS][NUMSPIGS]
const T & max(const T &a, const T &b)
MonitorElement * meRawDataLength2_US0_EE1_
const int getRawLength() const
Get the length of the raw data.
MonitorElement * book1D(Args &&...args)
std::vector< int > fedUnpackList_
int prevWasEE[NUMFEDS][NUMSPIGS]
MonitorElement * meNumberTriggered_
MonitorElement * meRawDataLength2_US1_EE0_
MonitorElement * meEEThisEvent_
uint64_t UScount[NUMFEDS][NUMSPIGS]
uint64_t US1EE0count[NUMFEDS][NUMSPIGS]
void setCurrentFolder(const std::string &fullpath)
unsigned long long uint64_t
void processEvent_RawData(const FEDRawDataCollection &rawraw, const HcalUnpackerReport &report, const HcalElectronicsMap &emap)
MonitorElement * book2D(Args &&...args)
uint64_t US0EE1count[NUMFEDS][NUMSPIGS]
const unsigned short * getRawData() const
Get a pointer to the raw data.
uint64_t US0EE0count[NUMFEDS][NUMSPIGS]
bool EEthisEvent[NUMSPIGS *NUMFEDS]
MonitorElement * meNumberEETriggered_
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
MonitorElement * meUSFractSpigs_US1_EE0_
MonitorElement * meEEPerSpigot_
MonitorElement * meEECorrel_
uint64_t US1EE1count[NUMFEDS][NUMSPIGS]
MonitorElement * meRawDataLength2_US1_EE1_
bool isHistogramEvent() const
Is this event a histogram event? (do not call standard unpack in this case!!!!!)