Skip to content

Commit

Permalink
Trend tasks are added for barrel and endcap
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongwook Jang committed Nov 10, 2009
1 parent 9d6d2c4 commit faa2846
Show file tree
Hide file tree
Showing 10 changed files with 1,438 additions and 2 deletions.
132 changes: 132 additions & 0 deletions DQM/EcalBarrelMonitorTasks/interface/EBTrendTask.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
#ifndef EBTrendTask_H
#define EBTrendTask_H

/*
* \file EBTrendTask.h
*
* $Date: 2009/08/12 14:40:00 $
* $Revision: 1.0 $
* \author Dongwook Jang, Soon Yung Jun
*
*/

#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"

#include "TProfile.h"

class MonitorElement;
class DQMStore;

class EBTrendTask: public edm::EDAnalyzer{

public:

// Constructor
EBTrendTask(const edm::ParameterSet& ps);

// Destructor
virtual ~EBTrendTask();

protected:

// Analyze
void analyze(const edm::Event& e, const edm::EventSetup& c);

// BeginJob
void beginJob(const edm::EventSetup& c);

// EndJob
void endJob(void);

// BeginRun
void beginRun(const edm::Run & r, const edm::EventSetup & c);

// EndRun
void endRun(const edm::Run & r, const edm::EventSetup & c);

// Reset
void reset(void);

// Setup
void setup(void);

// Cleanup
void cleanup(void);

// Update time check
void updateTime(void);

// Shift bins of TProfile to the right
void shift2Right(TProfile* p, int bins=1);

// Shift bins of TProfile to the left
void shift2Left(TProfile* p, int bins=1);


private:

int ievt_;

DQMStore* dqmStore_;

std::string prefixME_;

bool enableCleanup_;

bool mergeRuns_;

edm::InputTag EBDigiCollection_;
edm::InputTag EcalPnDiodeDigiCollection_;
edm::InputTag EcalRecHitCollection_;
edm::InputTag EcalTrigPrimDigiCollection_;
edm::InputTag BasicClusterCollection_;
edm::InputTag SuperClusterCollection_;
edm::InputTag EBDetIdCollection0_;
edm::InputTag EBDetIdCollection1_;
edm::InputTag EBDetIdCollection2_;
edm::InputTag EBDetIdCollection3_;
edm::InputTag EBDetIdCollection4_;
edm::InputTag EcalElectronicsIdCollection1_;
edm::InputTag EcalElectronicsIdCollection2_;
edm::InputTag EcalElectronicsIdCollection3_;
edm::InputTag EcalElectronicsIdCollection4_;
edm::InputTag EcalElectronicsIdCollection5_;
edm::InputTag EcalElectronicsIdCollection6_;
edm::InputTag FEDRawDataCollection_;
edm::InputTag EBSRFlagCollection_;

MonitorElement* nEBDigiMinutely_;
MonitorElement* nEcalPnDiodeDigiMinutely_;
MonitorElement* nEcalRecHitMinutely_;
MonitorElement* nEcalTrigPrimDigiMinutely_;
MonitorElement* nBasicClusterMinutely_;
MonitorElement* nBasicClusterSizeMinutely_;
MonitorElement* nSuperClusterMinutely_;
MonitorElement* nSuperClusterSizeMinutely_;
MonitorElement* nIntegrityErrorMinutely_;
MonitorElement* nFEDEBRawDataMinutely_;
MonitorElement* nEBSRFlagMinutely_;

MonitorElement* nEBDigiHourly_;
MonitorElement* nEcalPnDiodeDigiHourly_;
MonitorElement* nEcalRecHitHourly_;
MonitorElement* nEcalTrigPrimDigiHourly_;
MonitorElement* nBasicClusterHourly_;
MonitorElement* nBasicClusterSizeHourly_;
MonitorElement* nSuperClusterHourly_;
MonitorElement* nSuperClusterSizeHourly_;
MonitorElement* nIntegrityErrorHourly_;
MonitorElement* nFEDEBRawDataHourly_;
MonitorElement* nEBSRFlagHourly_;

bool init_;

int start_time_;
int current_time_;
int last_time_;

};

#endif
3 changes: 3 additions & 0 deletions DQM/EcalBarrelMonitorTasks/plugins/plugins.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ DEFINE_ANOTHER_FWK_MODULE(EBDcsInfoTask);

#include <DQM/EcalBarrelMonitorTasks/interface/EBDataCertificationTask.h>
DEFINE_ANOTHER_FWK_MODULE(EBDataCertificationTask);

#include <DQM/EcalBarrelMonitorTasks/interface/EBTrendTask.h>
DEFINE_ANOTHER_FWK_MODULE(EBTrendTask);
26 changes: 26 additions & 0 deletions DQM/EcalBarrelMonitorTasks/python/EBTrendTask_cfi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import FWCore.ParameterSet.Config as cms

ecalBarrelTrendTask = cms.EDAnalyzer("EBTrendTask",
prefixME = cms.untracked.string('EcalBarrel'),
enableCleanup = cms.untracked.bool(False),
mergeRuns = cms.untracked.bool(False),
EBDigiCollection = cms.InputTag("ecalEBunpacker","ebDigis"),
EcalPnDiodeDigiCollection = cms.InputTag("ecalEBunpacker"),
EcalTrigPrimDigiCollection = cms.InputTag("ecalEBunpacker","EcalTriggerPrimitives"),
EcalRecHitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEB"),
BasicClusterCollection = cms.InputTag("hybridSuperClusters","hybridBarrelBasicClusters"),
SuperClusterCollection = cms.InputTag("correctedHybridSuperClusters"),
EBDetIdCollection0 = cms.InputTag("ecalEBunpacker","EcalIntegrityDCCSizeErrors"),
EBDetIdCollection1 = cms.InputTag("ecalEBunpacker","EcalIntegrityGainErrors"),
EBDetIdCollection2 = cms.InputTag("ecalEBunpacker","EcalIntegrityChIdErrors"),
EBDetIdCollection3 = cms.InputTag("ecalEBunpacker","EcalIntegrityGainSwitchErrors"),
EcalElectronicsIdCollection1 = cms.InputTag("ecalEBunpacker","EcalIntegrityTTIdErrors"),
EcalElectronicsIdCollection2 = cms.InputTag("ecalEBunpacker","EcalIntegrityBlockSizeErrors"),
EcalElectronicsIdCollection3 = cms.InputTag("ecalEBunpacker","EcalIntegrityMemTtIdErrors"),
EcalElectronicsIdCollection4 = cms.InputTag("ecalEBunpacker","EcalIntegrityMemBlockSizeErrors"),
EcalElectronicsIdCollection5 = cms.InputTag("ecalEBunpacker","EcalIntegrityMemChIdErrors"),
EcalElectronicsIdCollection6 = cms.InputTag("ecalEBunpacker","EcalIntegrityMemGainErrors"),
FEDRawDataCollection = cms.InputTag("source"),
EBSRFlagCollection = cms.InputTag("ecalEBunpacker")
)

Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
from DQM.EcalBarrelMonitorTasks.EBDaqInfoTask_cfi import *
from DQM.EcalBarrelMonitorTasks.EBDcsInfoTask_cfi import *
from DQM.EcalBarrelMonitorTasks.EBDataCertificationTask_cfi import *
from DQM.EcalBarrelMonitorTasks.EBTrendTask_cfi import *

ecalBarrelDefaultTasksSequence = cms.Sequence(ecalBarrelOccupancyTask*ecalBarrelIntegrityTask*ecalBarrelStatusFlagsTask*ecalBarrelSelectiveReadoutTask*ecalBarrelRawDataTask*ecalBarrelLaserTask*ecalBarrelPedestalOnlineTask*ecalBarrelPedestalTask*ecalBarrelTestPulseTask*ecalBarrelTriggerTowerTask*ecalBarrelTimingTask)
ecalBarrelDefaultTasksSequence = cms.Sequence(ecalBarrelOccupancyTask*ecalBarrelIntegrityTask*ecalBarrelStatusFlagsTask*ecalBarrelSelectiveReadoutTask*ecalBarrelRawDataTask*ecalBarrelLaserTask*ecalBarrelPedestalOnlineTask*ecalBarrelPedestalTask*ecalBarrelTestPulseTask*ecalBarrelTriggerTowerTask*ecalBarrelTimingTask*ecalBarrelTrendTask)

ecalBarrelCosmicTasksSequence = cms.Sequence(ecalBarrelDefaultTasksSequence*ecalBarrelCosmicTask)

Expand Down
Loading

0 comments on commit faa2846

Please sign in to comment.