167 name =
"AverageNumberOfEBDigiVs5Minutes";
172 name =
"AverageNumberOfEcalPnDiodeDigiVs5Minutes";
177 name =
"AverageNumberOfEcalRecHitVs5Minutes";
182 name =
"AverageNumberOfEcalTrigPrimDigiVs5Minutes";
187 name =
"AverageNumberOfBasicClusterVs5Minutes";
192 name =
"AverageNumberOfBasicClusterSizeVs5Minutes";
197 name =
"AverageNumberOfSuperClusterVs5Minutes";
202 name =
"AverageNumberOfSuperClusterSizeVs5Minutes";
207 name =
"AverageNumberOfIntegrityErrorVs5Minutes";
212 name =
"AverageNumberOfFEDEBRawDataVs5Minutes";
217 name =
"AverageNumberOfEBSRFlagVs5Minutes";
224 name =
"AverageNumberOfEBDigiVs1Hour";
229 name =
"AverageNumberOfEcalPnDiodeDigiVs1Hour";
234 name =
"AverageNumberOfEcalRecHitVs1Hour";
239 name =
"AverageNumberOfEcalTrigPrimDigiVs1Hour";
244 name =
"AverageNumberOfBasicClusterVs1Hour";
249 name =
"AverageNumberOfBasicClusterSizeVs1Hour";
254 name =
"AverageNumberOfSuperClusterVs1Hour";
259 name =
"AverageNumberOfSuperClusterSizeVs1Hour";
264 name =
"AverageNumberOfIntegrityErrorVs1Hour";
269 name =
"AverageNumberOfFEDEBRawDataVs1Hour";
274 name =
"AverageNumberOfEBSRFlagVs1Hour";
286 if ( !
init_ )
return;
365 long int minuteBinDiff = -1;
366 long int minuteDiff = -1;
369 long int hourBinDiff = -1;
370 long int hourDiff = -1;
380 else edm::LogWarning(
"EBTrendTask") <<
"EBDigiCollection is not available";
395 else edm::LogWarning(
"EBTrendTask") <<
"EcalPnDiodeDigiCollection is not available";
410 else edm::LogWarning(
"EBTrendTask") <<
"EcalRecHitCollection is not available";
424 else edm::LogWarning(
"EBTrendTask") <<
"EcalTrigPrimDigiCollection is not available";
436 float nbcc_size = 0.0;
439 nbcc = pBasicClusters->size();
440 for(reco::BasicClusterCollection::const_iterator it = pBasicClusters->begin();
441 it != pBasicClusters->end(); it++){
442 nbcc_size += it->size();
444 if(nbcc == 0) nbcc_size = 0;
445 else nbcc_size = nbcc_size / nbcc;
447 else edm::LogWarning(
"EBTrendTask") <<
"BasicClusterCollection is not available";
465 float nscc_size = 0.0;
468 nscc = pSuperClusters->size();
469 for(reco::SuperClusterCollection::const_iterator it = pSuperClusters->begin();
470 it != pSuperClusters->end(); it++){
471 nscc_size += it->clustersSize();
473 if(nscc == 0) nscc_size = 0;
474 else nscc_size = nscc_size / nscc;
476 else edm::LogWarning(
"EBTrendTask") <<
"SuperClusterCollection is not available";
502 else edm::LogWarning(
"EBTrendTask") <<
"EBDetIdCollection0 is not available";
511 else edm::LogWarning(
"EBTrendTask") <<
"EBDetIdCollection1 is not available";
520 else edm::LogWarning(
"EBTrendTask") <<
"EBDetIdCollection2 is not available";
529 else edm::LogWarning(
"EBTrendTask") <<
"EBDetIdCollection3 is not available";
538 else edm::LogWarning(
"EBTrendTask") <<
"EcalElectronicsIdCollection1 is not available";
547 else edm::LogWarning(
"EBTrendTask") <<
"EcalElectronicsIdCollection2 is not available";
556 else edm::LogWarning(
"EBTrendTask") <<
"EcalElectronicsIdCollection3 is not available";
565 else edm::LogWarning(
"EBTrendTask") <<
"EcalElectronicsIdCollection4 is not available";
574 else edm::LogWarning(
"EBTrendTask") <<
"EcalElectronicsIdCollection5 is not available";
583 else edm::LogWarning(
"EBTrendTask") <<
"EcalElectronicsIdCollection6 is not available";
589 double errorSum = ndic0 + ndic1 + ndic2 + ndic3 +
590 neic1 + neic2 + neic3 + neic4 + neic5 + neic6;
611 for (
int iDcc = eb1; iDcc <= eb2; ++iDcc ) {
612 int sizeInKB = allFedRawData->FEDData(iDcc).size()/kByte;
613 if(iDcc >= eb1 && iDcc <= eb2) nfedEB += sizeInKB;
616 else edm::LogWarning(
"EBTrendTask") <<
"FEDRawDataCollection is not available";
631 else edm::LogWarning(
"EBTrendTask") <<
"EBSRFlagCollection is not available";
641 printf(
"run(%d), event(%d), ndc(%d), npdc(%d), nrhc(%d), ntpdc(%d), nbcc(%d), ",
642 e.
id().
run(),e.
id().
event(), ndc, npdc, nrhc, ntpdc, nbcc);
643 printf(
"nscc(%d), ndic0(%d), ndic1(%d), ndic2(%d), ndic3(%d), neic1(%d), neic2(%d), neic3(%d), ",
644 nscc, ndic0, ndic1, ndic2, ndic3, neic1, neic2, neic3);
645 printf(
"neic4(%d), neic5(%d), neic6(%d), errorSum(%f), nsfc(%d), ",
646 neic4, neic5, neic6, errorSum, nsfc);
edm::EDGetTokenT< reco::BasicClusterCollection > BasicClusterCollection_
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_
EBTrendTask(const edm::ParameterSet &ps)
MonitorElement * nEcalTrigPrimDigiMinutely_
edm::EDGetTokenT< EcalRecHitCollection > EcalRecHitCollection_
void rmdir(const std::string &fullpath)
edm::EDGetTokenT< EBDetIdCollection > EBDetIdCollection0_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Some "id" conversions.
edm::EDGetTokenT< EBDetIdCollection > EBDetIdCollection3_
edm::EDGetTokenT< EBDigiCollection > EBDigiCollection_
void endRun(const edm::Run &r, const edm::EventSetup &c)
MonitorElement * nBasicClusterSizeHourly_
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection4_
MonitorElement * nSuperClusterHourly_
edm::EDGetTokenT< EcalPnDiodeDigiCollection > EcalPnDiodeDigiCollection_
void beginRun(const edm::Run &r, const edm::EventSetup &c)
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection1_
MonitorElement * nFEDEBRawDataMinutely_
MonitorElement * nEcalPnDiodeDigiHourly_
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection2_
edm::EDGetTokenT< EBDetIdCollection > EBDetIdCollection2_
edm::EDGetTokenT< reco::SuperClusterCollection > SuperClusterCollection_
MonitorElement * nBasicClusterMinutely_
edm::EDGetTokenT< EBDetIdCollection > EBDetIdCollection1_
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection3_
MonitorElement * nEcalTrigPrimDigiHourly_
void removeElement(const std::string &name)
edm::EDGetTokenT< EcalTrigPrimDigiCollection > EcalTrigPrimDigiCollection_
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
MonitorElement * nEBDigiMinutely_
edm::EDGetTokenT< EBSrFlagCollection > EBSRFlagCollection_
Ecal Monitor Utility functions.
edm::EDGetTokenT< FEDRawDataCollection > FEDRawDataCollection_
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
MonitorElement * nEcalRecHitHourly_
MonitorElement * nBasicClusterSizeMinutely_
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection6_
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)
edm::EDGetTokenT< EcalElectronicsIdCollection > EcalElectronicsIdCollection5_
void shift2Right(TH1 *h, int bins)
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_
MonitorElement * nEcalPnDiodeDigiMinutely_
void setCurrentFolder(const std::string &fullpath)