118 name =
"FEDNonFatal";
127 if ( !
init_ )
return;
164 int FedsSizeErrors[36];
165 for (
int i=0;
i<36;
i++ ) FedsSizeErrors[
i]=0;
175 if ( ism > -1 ) FedsSizeErrors[ism-1]++;
189 const FEDRawData& fedData = allFedRawData->FEDData( EBFirstFED +
ism - 1 );
198 uint64_t * fedTrailer = pData + (length - 1);
199 bool crcError = (*fedTrailer >> 2 ) & 0x1;
201 if (crcError) FedsSizeErrors[
ism-1]++;
214 if ( FedsSizeErrors[
ism-1] != 0 ) {
418 if( !
map )
return -1;
421 int idcc = eid.
dccId();
424 if( idcc >= 10 && idcc <= 45 )
return( idcc - 9 );
433 int idcc =
id.dccId();
436 if( idcc >= 10 && idcc <= 45 )
return( idcc - 9 );
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
void beginJob(void)
BeginJob.
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)
virtual ~EBHltTask()
Destructor.
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
edm::InputTag EBDetIdCollection1_
edm::InputTag EcalElectronicsIdCollection2_
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
edm::InputTag EcalElectronicsIdCollection5_
size_t size() const
Lenght of the data buffer in bytes.
edm::InputTag EcalElectronicsIdCollection3_
EBHltTask(const edm::ParameterSet &ps)
Constructor.
EcalSubdetector subDet(const EBDetId &id)
EcalElectronicsId getElectronicsId(const DetId &id) const
Get the electronics id for this det id.
void removeElement(const std::string &name)
MonitorElement * meEBFedsOccupancy_
edm::InputTag EBDetIdCollection3_
edm::InputTag EBDetIdCollection2_
int dccId() const
get the DCC (Ecal Local DCC value not global one) id
edm::InputTag EcalElectronicsIdCollection4_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
unsigned long long uint64_t
T const * product() const
void cleanup(void)
Cleanup.
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
edm::InputTag FEDRawDataCollection_
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
void initGeometry(const edm::EventSetup &setup)
MonitorElement * meEBFedsSizeErrors_
MonitorElement * meEBFedsIntegrityErrors_
const EcalElectronicsMapping * map
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="")
edm::InputTag EBDetIdCollection0_
void setCurrentFolder(const std::string &fullpath)
int iSM(const EBDetId &id)
edm::InputTag EcalElectronicsIdCollection6_
std::vector< T >::const_iterator const_iterator