112 name =
"FEDNonFatal";
121 if ( !
init_ )
return;
160 int FedsSizeErrors[18];
161 for (
int i=0;
i<18;
i++ ) FedsSizeErrors[
i]=0;
171 if ( ism > -1 ) FedsSizeErrors[ism-1]++;
185 for(
int zside=0; zside<2; zside++) {
187 int firstFedOnSide=EEFirstFED[zside];
191 const FEDRawData& fedData = allFedRawData->FEDData( firstFedOnSide +
ism - 1 );
200 uint64_t * fedTrailer = pData + (length - 1);
201 bool crcError = (*fedTrailer >> 2 ) & 0x1;
203 if (crcError) FedsSizeErrors[
ism-1]++;
218 if ( FedsSizeErrors[
ism-1] != 0 ) {
220 int fednumber = (
ism < 10 ) ? 600 +
ism : 636 +
ism;
237 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
256 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
275 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
296 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
304 edm::LogWarning(
"EEHltTask") <<
"EcalElectronicsIdCollection1 not available";
317 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
325 edm::LogWarning(
"EEHltTask") <<
"EcalElectronicsIdCollection2 not available";
338 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
346 edm::LogWarning(
"EEHltTask") <<
"EcalElectronicsIdCollection3 not available";
359 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
367 edm::LogWarning(
"EEHltTask") <<
"EcalElectronicsIdCollection4 not available";
380 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
388 edm::LogWarning(
"EEHltTask") <<
"EcalElectronicsIdCollection5 not available";
401 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
409 edm::LogWarning(
"EEHltTask") <<
"EcalElectronicsIdCollection6 not available";
433 if( !
map )
return -1;
436 int idcc = eid.
dccId();
439 if( idcc >= 1 && idcc <= 9 )
return( idcc );
442 if( idcc >= 46 && idcc <= 54 )
return( idcc - 45 + 9 );
451 int idcc =
id.dccId();
454 if( idcc >= 1 && idcc <= 9 )
return( idcc );
457 if( idcc >= 46 && idcc <= 54 )
return( idcc - 45 + 9 );
T getParameter(std::string const &) const
EEHltTask(const edm::ParameterSet &ps)
Constructor.
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection1_
void rmdir(const std::string &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void beginJob(void)
BeginJob.
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection5_
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
edm::EDGetTokenT< FEDRawDataCollection > FEDRawDataCollection_
edm::EDGetTokenT< EEDetIdCollection > EEDetIdCollection1_
size_t size() const
Lenght of the data buffer in bytes.
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
MonitorElement * meEEFedsSizeErrors_
EcalElectronicsId getElectronicsId(const DetId &id) const
Get the electronics id for this det id.
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection4_
const EcalElectronicsMapping * map
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection2_
MonitorElement * meEEFedsOccupancy_
void removeElement(const std::string &name)
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection6_
edm::EDGetTokenT< EEDetIdCollection > EEDetIdCollection3_
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection3_
int dccId() const
get the DCC (Ecal Local DCC value not global one) id
void cleanup(void)
Cleanup.
edm::EDGetTokenT< EEDetIdCollection > EEDetIdCollection2_
unsigned long long uint64_t
MonitorElement * meEEFedsIntegrityErrors_
T const * product() const
edm::EDGetTokenT< EEDetIdCollection > EEDetIdCollection0_
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void initGeometry(const edm::EventSetup &setup)
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
int iSM(const EEDetId &id)
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
EcalSubdetector subDet(const EEDetId &id)
virtual ~EEHltTask()
Destructor.
int ism(int ieta, int iphi)
void Reset(void)
reset ME (ie. contents, errors, etc)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
void setCurrentFolder(const std::string &fullpath)
std::vector< EEDetId >::const_iterator const_iterator