118 name =
"FEDNonFatal";
127 if ( !
init_ )
return;
166 int FedsSizeErrors[18];
167 for (
int i=0;
i<18;
i++ ) FedsSizeErrors[
i]=0;
177 if ( ism > -1 ) FedsSizeErrors[ism-1]++;
191 for(
int zside=0; zside<2; zside++) {
193 int firstFedOnSide=EEFirstFED[zside];
197 const FEDRawData& fedData = allFedRawData->FEDData( firstFedOnSide +
ism - 1 );
206 uint64_t * fedTrailer = pData + (length - 1);
207 bool crcError = (*fedTrailer >> 2 ) & 0x1;
209 if (crcError) FedsSizeErrors[
ism-1]++;
224 if ( FedsSizeErrors[
ism-1] != 0 ) {
226 int fednumber = (
ism < 10 ) ? 600 +
ism : 636 +
ism;
243 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
262 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
281 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
302 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
323 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
344 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
365 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
386 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
407 int fednumber = ( ism < 10 ) ? 600 + ism : 636 + ism;
439 if( !
map )
return -1;
442 int idcc = eid.
dccId();
445 if( idcc >= 1 && idcc <= 9 )
return( idcc );
448 if( idcc >= 46 && idcc <= 54 )
return( idcc - 45 + 9 );
457 int idcc =
id.dccId();
460 if( idcc >= 1 && idcc <= 9 )
return( idcc );
463 if( idcc >= 46 && idcc <= 54 )
return( idcc - 45 + 9 );
edm::InputTag EEDetIdCollection3_
edm::InputTag EcalElectronicsIdCollection3_
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
edm::InputTag EcalElectronicsIdCollection5_
edm::InputTag EEDetIdCollection0_
edm::InputTag EcalElectronicsIdCollection1_
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void rmdir(const std::string &fullpath)
void beginJob(void)
BeginJob.
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
edm::InputTag FEDRawDataCollection_
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.
const EcalElectronicsMapping * map
edm::InputTag EcalElectronicsIdCollection2_
edm::InputTag EEDetIdCollection1_
MonitorElement * meEEFedsOccupancy_
void removeElement(const std::string &name)
int dccId() const
get the DCC (Ecal Local DCC value not global one) id
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void cleanup(void)
Cleanup.
unsigned long long uint64_t
MonitorElement * meEEFedsIntegrityErrors_
T const * product() const
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
edm::InputTag EcalElectronicsIdCollection4_
void initGeometry(const edm::EventSetup &setup)
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
int iSM(const EEDetId &id)
edm::InputTag EcalElectronicsIdCollection6_
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
EcalSubdetector subDet(const EEDetId &id)
edm::InputTag EEDetIdCollection2_
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< T >::const_iterator const_iterator