-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trend tasks are added for barrel and endcap
- Loading branch information
Dongwook Jang
committed
Nov 10, 2009
1 parent
9d6d2c4
commit faa2846
Showing
10 changed files
with
1,438 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.