4 #define PI 3.1415926535897932
96 if(
fVerbosity)
std::cout <<
"<HcalEEUSMonitor::setup>:Pushback for fedUnpackList_: " <<
i <<std::endl;
113 type =
"Fraction Normal Events - US0 EE0";
116 sprintf(label,
"FED 7%02d",
f);
119 sprintf(label,
"sp%02d",
s-1);
122 type =
"Fraction Empty Events - US0 EE1";
125 sprintf(label,
"FED 7%02d",
f);
128 sprintf(label,
"sp%02d",
s-1);
131 type =
"Fraction UnSuppressed Events - US1 EE0";
134 sprintf(label,
"FED 7%02d",
f);
137 sprintf(label,
"sp%02d",
s-1);
140 type =
"Fraction UnSuppressed Events - US1 EE1";
143 sprintf(label,
"FED 7%02d",
f);
146 sprintf(label,
"sp%02d",
s-1);
151 type =
"Length of raw data - US0 EE0";
154 sprintf(label,
"FED 7%02d",
f);
157 sprintf(label,
"sp%02d",
s-1);
160 type =
"Length of raw data - US0 EE1";
163 sprintf(label,
"FED 7%02d",
f);
166 sprintf(label,
"sp%02d",
s-1);
169 type =
"Length of raw data - US1 EE0";
172 sprintf(label,
"FED 7%02d",
f);
175 sprintf(label,
"sp%02d",
s-1);
178 type =
"Length of raw data - US1 EE1";
181 sprintf(label,
"FED 7%02d",
f);
184 sprintf(label,
"sp%02d",
s-1);
191 type=
"EE Spigot Correlation";
195 type=
"EE per Spigot";
198 type=
"EE Spigots per Event";
204 sprintf(title,
"EE Triggers");
206 sprintf(title,
"NE Triggers");
208 sprintf(title,
"Triggers");
212 sprintf(label,
"DCC 7%02d",
f);
220 sprintf(label,
"Spgt %02d",
s-1);
244 if (
fVerbosity)
std::cout <<
"HcalEEUSMonitor::processEvent DQMStore not instantiated!!!"<<std::endl;
277 std::cout <<
"HcalEEUSMonitor::processEvent_RawData: DQMStore not instantiated!!!\n"<<std::endl;
285 if (fed.
size()<12)
continue;
318 if(!dccHeader)
return;
321 unsigned char* trailer_ptr = (
unsigned char*) (raw.
data()+raw.
size()-
sizeof(
uint64_t));
337 unsigned char WholeErrorList=0;
358 const unsigned short* HTRraw = htr.
getRawData();
359 unsigned short HTRwdcount = HTRraw[htr.
getRawLength() - 2];
370 int here=1+(HcalDCCHeader::SPIGOT_COUNT*(dccid-700))+spigot;
372 if ( ! ((HTRwdcount != 8) ||
373 (HTRwdcount != 12 + NTP + NDAQ) ||
374 (HTRwdcount != 20 + NTP + NDAQ) )) {
382 if (HTRwdcount != 8) {
387 if ((HTRwdcount-NDAQ-NTP) != 20) {
424 if (EE)
prevWasEE[dccid-700][spigot] = 1;
429 bool htrUnSuppressed=(HTRraw[6]>>15 & 0x0001);
431 bool htrEmpty=(HTRraw[2] & 0x4);
442 if (htrUnSuppressed==
false && htrEmpty==
false){
449 if (htrUnSuppressed==
false && htrEmpty==
true){
456 if (htrUnSuppressed==
true && htrEmpty==
false){
463 if (htrUnSuppressed==
true && htrEmpty==
true){
483 std::cout <<
"No second CDF header found!"<<std::endl;
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_
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
uint32_t consecutiveNETriggers[32][15]
uint32_t consecutiveEETriggers[32][15]
uint64_t US0EE1count[32][15]
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
void removeContents(void)
erase all monitoring elements in current directory (not including subfolders);
MonitorElement * meRawDataLength2_US0_EE1_
const int getRawLength() const
Get the length of the raw data.
std::vector< int > fedUnpackList_
MonitorElement * meNumberTriggered_
MonitorElement * meRawDataLength2_US1_EE0_
void setup(const edm::ParameterSet &ps, DQMStore *dbe)
MonitorElement * meEEThisEvent_
unsigned long long uint64_t
void processEvent_RawData(const FEDRawDataCollection &rawraw, const HcalUnpackerReport &report, const HcalElectronicsMap &emap)
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 * bookInt(const char *name)
Book int.
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
MonitorElement * meEEPerSpigot_
MonitorElement * meEECorrel_
void setCurrentFolder(const std::string &fullpath)
MonitorElement * meRawDataLength2_US1_EE1_
bool isHistogramEvent() const
Is this event a histogram event? (do not call standard unpack in this case!!!!!)
virtual void setup(const edm::ParameterSet &ps, DQMStore *dbe)