176 sprintf(histo,
"AverageNumberOfEBDigiVs5Minutes");
181 sprintf(histo,
"AverageNumberOfEcalPnDiodeDigiVs5Minutes");
186 sprintf(histo,
"AverageNumberOfEcalRecHitVs5Minutes");
191 sprintf(histo,
"AverageNumberOfEcalTrigPrimDigiVs5Minutes");
196 sprintf(histo,
"AverageNumberOfBasicClusterVs5Minutes");
201 sprintf(histo,
"AverageNumberOfBasicClusterSizeVs5Minutes");
206 sprintf(histo,
"AverageNumberOfSuperClusterVs5Minutes");
211 sprintf(histo,
"AverageNumberOfSuperClusterSizeVs5Minutes");
216 sprintf(histo,
"AverageNumberOfIntegrityErrorVs5Minutes");
221 sprintf(histo,
"AverageNumberOfFEDEBRawDataVs5Minutes");
226 sprintf(histo,
"AverageNumberOfEBSRFlagVs5Minutes");
233 sprintf(histo,
"AverageNumberOfEBDigiVs1Hour");
238 sprintf(histo,
"AverageNumberOfEcalPnDiodeDigiVs1Hour");
243 sprintf(histo,
"AverageNumberOfEcalRecHitVs1Hour");
248 sprintf(histo,
"AverageNumberOfEcalTrigPrimDigiVs1Hour");
253 sprintf(histo,
"AverageNumberOfBasicClusterVs1Hour");
258 sprintf(histo,
"AverageNumberOfBasicClusterSizeVs1Hour");
263 sprintf(histo,
"AverageNumberOfSuperClusterVs1Hour");
268 sprintf(histo,
"AverageNumberOfSuperClusterSizeVs1Hour");
273 sprintf(histo,
"AverageNumberOfIntegrityErrorVs1Hour");
278 sprintf(histo,
"AverageNumberOfFEDEBRawDataVs1Hour");
283 sprintf(histo,
"AverageNumberOfEBSRFlagVs1Hour");
295 if ( !
init_ )
return;
374 long int minuteBinDiff = -1;
375 long int minuteDiff = -1;
378 long int hourBinDiff = -1;
379 long int hourDiff = -1;
445 float nbcc_size = 0.0;
448 nbcc = pBasicClusters->size();
449 for(reco::BasicClusterCollection::const_iterator it = pBasicClusters->begin();
450 it != pBasicClusters->end(); it++){
451 nbcc_size += it->size();
453 if(nbcc == 0) nbcc_size = 0;
454 else nbcc_size = nbcc_size / nbcc;
474 float nscc_size = 0.0;
477 nscc = pSuperClusters->size();
478 for(reco::SuperClusterCollection::const_iterator it = pSuperClusters->begin();
479 it != pSuperClusters->end(); it++){
480 nscc_size += it->clustersSize();
482 if(nscc == 0) nscc_size = 0;
483 else nscc_size = nscc_size / nscc;
598 double errorSum = ndic0 + ndic1 + ndic2 + ndic3 +
599 neic1 + neic2 + neic3 + neic4 + neic5 + neic6;
620 for (
int iDcc = eb1; iDcc <= eb2; ++iDcc ) {
621 int sizeInKB = allFedRawData->FEDData(iDcc).size()/kByte;
622 if(iDcc >= eb1 && iDcc <= eb2) nfedEB += sizeInKB;
650 printf(
"run(%d), event(%d), ndc(%d), npdc(%d), nrhc(%d), ntpdc(%d), nbcc(%d), ",
651 e.
id().
run(),e.
id().
event(), ndc, npdc, nrhc, ntpdc, nbcc);
652 printf(
"nscc(%d), ndic0(%d), ndic1(%d), ndic2(%d), ndic3(%d), neic1(%d), neic2(%d), neic3(%d), ",
653 nscc, ndic0, ndic1, ndic2, ndic3, neic1, neic2, neic3);
654 printf(
"neic4(%d), neic5(%d), neic6(%d), errorSum(%f), nsfc(%d), ",
655 neic4, neic5, neic6, errorSum, nsfc);
T getParameter(std::string const &) const
EventNumber_t event() const
MonitorElement * nSuperClusterSizeMinutely_
MonitorElement * nEBDigiHourly_
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
MonitorElement * nBasicClusterHourly_
void shift2Right(TProfile *p, int bins)
edm::InputTag EcalPnDiodeDigiCollection_
EBTrendTask(const edm::ParameterSet &ps)
MonitorElement * nEcalTrigPrimDigiMinutely_
edm::InputTag EcalElectronicsIdCollection6_
void rmdir(const std::string &fullpath)
Some "id" conversions.
edm::InputTag EBDetIdCollection1_
void endRun(const edm::Run &r, const edm::EventSetup &c)
MonitorElement * nBasicClusterSizeHourly_
edm::InputTag BasicClusterCollection_
edm::InputTag EcalTrigPrimDigiCollection_
MonitorElement * nSuperClusterHourly_
void beginRun(const edm::Run &r, const edm::EventSetup &c)
edm::InputTag EBDetIdCollection2_
MonitorElement * nFEDEBRawDataMinutely_
MonitorElement * nEcalPnDiodeDigiHourly_
edm::InputTag EBSRFlagCollection_
MonitorElement * nBasicClusterMinutely_
MonitorElement * nEcalTrigPrimDigiHourly_
void removeElement(const std::string &name)
edm::InputTag EBDetIdCollection3_
edm::InputTag EcalElectronicsIdCollection2_
edm::InputTag EBDetIdCollection0_
edm::InputTag SuperClusterCollection_
edm::InputTag FEDRawDataCollection_
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
edm::InputTag EcalElectronicsIdCollection5_
MonitorElement * nEBDigiMinutely_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
edm::InputTag EcalElectronicsIdCollection1_
Ecal Monitor Utility functions.
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
MonitorElement * nEcalRecHitHourly_
MonitorElement * nBasicClusterSizeMinutely_
MonitorElement * nEBSRFlagMinutely_
MonitorElement * nFEDEBRawDataHourly_
TProfile * getTProfile(void) const
MonitorElement * nIntegrityErrorHourly_
MonitorElement * nEBSRFlagHourly_
MonitorElement * nSuperClusterMinutely_
MonitorElement * nEcalRecHitMinutely_
void calcBins(int binWidth, int divisor, long int start_time, long int last_time, long int current_time, long int &binDiff, long int &diff)
void analyze(const edm::Event &e, const edm::EventSetup &c)
MonitorElement * nSuperClusterSizeHourly_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * nIntegrityErrorMinutely_
edm::InputTag EcalElectronicsIdCollection4_
edm::InputTag EcalElectronicsIdCollection3_
MonitorElement * nEcalPnDiodeDigiMinutely_
void setCurrentFolder(const std::string &fullpath)
edm::InputTag EcalRecHitCollection_
edm::InputTag EBDigiCollection_