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 const unsigned char* trailer_ptr =
reinterpret_cast<const 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)
uint32_t consecutiveTriggers[32][15]
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * meUSFractSpigs_US1_EE1_
uint32_t consecutiveNETriggers[32][15]
uint32_t consecutiveEETriggers[32][15]
virtual void setup(const edm::ParameterSet &ps, DQMStore::IBooker &ib)
uint64_t US0EE1count[32][15]
MonitorElement * bookInt(Args &&...args)
uint64_t US0EE0count[32][15]
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
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_
uint64_t US1EE1count[32][15]
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
MonitorElement * meRawDataLength2_US0_EE1_
const int getRawLength() const
Get the length of the raw data.
MonitorElement * book1D(Args &&...args)
std::vector< int > fedUnpackList_
MonitorElement * meNumberTriggered_
MonitorElement * meRawDataLength2_US1_EE0_
MonitorElement * meEEThisEvent_
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)
const unsigned short * getRawData() const
Get a pointer to the raw data.
MonitorElement * meNumberEETriggered_
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
MonitorElement * meUSFractSpigs_US1_EE0_
uint64_t US1EE0count[32][15]
MonitorElement * meEEPerSpigot_
MonitorElement * meEECorrel_
MonitorElement * meRawDataLength2_US1_EE1_
bool isHistogramEvent() const
Is this event a histogram event? (do not call standard unpack in this case!!!!!)