Skip to content

Commit

Permalink
Merge pull request #2811 from venturia/tkdbmonitoring_70x
Browse files Browse the repository at this point in the history
Added the possibility to monitor SiStripAPVPhaseOffsets tags
  • Loading branch information
davidlange6 committed Apr 15, 2014
2 parents f6f3a1e + 5a4ca66 commit d79f7d2
Show file tree
Hide file tree
Showing 21 changed files with 779 additions and 134 deletions.
@@ -0,0 +1,40 @@
#ifndef SiStripMonitorSummary_SiStripBackPlaneCorrectionDQM_h
#define SiStripMonitorSummary_SiStripBackPlaneCorrectionDQM_h


#include "DQM/SiStripMonitorSummary/interface/SiStripBaseCondObjDQM.h"

#include "CondFormats/SiStripObjects/interface/SiStripBackPlaneCorrection.h"
#include "CondFormats/DataRecord/interface/SiStripCondDataRecords.h"


class SiStripBackPlaneCorrectionDQM : public SiStripBaseCondObjDQM{

public:

SiStripBackPlaneCorrectionDQM(const edm::EventSetup & eSetup,
edm::ParameterSet const& hPSet,
edm::ParameterSet const& fPSet);

virtual ~SiStripBackPlaneCorrectionDQM();

void getActiveDetIds(const edm::EventSetup & eSetup);

void fillModMEs(const std::vector<uint32_t> & selectedDetIds, const edm::EventSetup& es){};
void fillMEsForDet(const ModMEs& selModME_,uint32_t selDetId_, const TrackerTopology* tTopo){};

void fillSummaryMEs(const std::vector<uint32_t> & selectedDetIds, const edm::EventSetup& es);
void fillMEsForLayer( /*std::map<uint32_t, ModMEs> selModMEsMap_, */ uint32_t selDetId_, const TrackerTopology* tTopo);

unsigned long long getCache(const edm::EventSetup & eSetup){ return eSetup.get<SiStripBackPlaneCorrectionRcd>().cacheIdentifier();}

void getConditionObject(const edm::EventSetup & eSetup){
eSetup.get<SiStripBackPlaneCorrectionRcd>().get(bpcorrectionHandle_);
cacheID_memory = cacheID_current;
}

private:
edm::ESHandle<SiStripBackPlaneCorrection> bpcorrectionHandle_;
};

#endif
Expand Up @@ -34,6 +34,7 @@ class SiStripNoisesDQM;
class SiStripQualityDQM;
class SiStripApvGainsDQM;
class SiStripLorentzAngleDQM;
class SiStripBackPlaneCorrectionDQM;
class SiStripCablingDQM;
class SiStripThresholdDQM;

Expand Down Expand Up @@ -64,6 +65,7 @@ class SiStripClassToMonitorCondData{
bool monitorQuality_ ;
bool monitorApvGains_ ;
bool monitorLorentzAngle_ ;
bool monitorBackPlaneCorrection_ ;
bool monitorLowThreshold_ ;
bool monitorHighThreshold_ ;
bool monitorCabling_ ;
Expand All @@ -77,6 +79,7 @@ class SiStripClassToMonitorCondData{
SiStripQualityDQM* qualityDQM_;
SiStripApvGainsDQM* apvgainsDQM_;
SiStripLorentzAngleDQM* lorentzangleDQM_;
SiStripBackPlaneCorrectionDQM* bpcorrectionDQM_;
SiStripCablingDQM* cablingDQM_;
SiStripThresholdDQM* lowthresholdDQM_;
SiStripThresholdDQM* highthresholdDQM_;
Expand Down
3 changes: 3 additions & 0 deletions DQM/SiStripMonitorSummary/interface/SiStripMonitorCondData.h
Expand Up @@ -36,6 +36,7 @@ class SiStripThresholdDQM;
class SiStripQualityDQM;
class SiStripApvGainsDQM;
class SiStripLorentzAngleDQM;
class SiStripBackPlaneCorrectionDQM;
class SiStripCablingDQM;

class SiStripMonitorCondData : public edm::EDAnalyzer {
Expand Down Expand Up @@ -64,6 +65,7 @@ class SiStripMonitorCondData : public edm::EDAnalyzer {
bool monitorQuality_ ;
bool monitorApvGains_ ;
bool monitorLorentzAngle_;
bool monitorBackPlaneCorrection_;
bool monitorCabling_;

std::string outPutFileName;
Expand All @@ -75,6 +77,7 @@ class SiStripMonitorCondData : public edm::EDAnalyzer {
SiStripQualityDQM* qualityDQM_;
SiStripApvGainsDQM* apvgainsDQM_;
SiStripLorentzAngleDQM* lorentzangleDQM_;
SiStripBackPlaneCorrectionDQM* bpcorrectionDQM_;
SiStripCablingDQM* cablingDQM_;

};
Expand Down
33 changes: 33 additions & 0 deletions DQM/SiStripMonitorSummary/python/OnDemandMonitoring_cfi.py
Expand Up @@ -10,6 +10,7 @@
MonitorSiStripQuality = cms.bool(True),
MonitorSiStripApvGain = cms.bool(False),
MonitorSiStripLorentzAngle = cms.bool(False),
MonitorSiStripBackPlaneCorrection = cms.bool(False),
MonitorSiStripCabling = cms.bool(False),
MonitorSiStripLowThreshold = cms.bool(False),
MonitorSiStripHighThreshold= cms.bool(False) ,
Expand Down Expand Up @@ -261,6 +262,38 @@

),

# -----
SiStripBackPlaneCorrectionDQM_PSet = cms.PSet(

ActiveDetIds_On = cms.bool(False),

TkMap_On = cms.bool(False),
TkMapName = cms.string('BackPlaneCorrectionTkMap.png'),
minValue = cms.double(0.00),
maxValue = cms.double(0.10),

CondObj_name = cms.string('bpcorrection'),
CondObj_fillId = cms.string('ProfileAndCumul'),

FillSummaryProfileAtLayerLevel = cms.bool(True),
FillCumulativeSummaryAtLayerLevel = cms.bool(True),

SummaryOfCumul_description = cms.string('ProfileSummary_BackPlaneCorrectionFromCondDB'),
SummaryOfCumul_xTitle = cms.string('BackPlaneCorrection from CondDB'),
SummaryOfCumul_yTitle = cms.string(' '),
SummaryOfCumul_NchX = cms.int32(50),
SummaryOfCumul_LowX = cms.double(0.00),
SummaryOfCumul_HighX = cms.double(0.10),

SummaryOfProfile_description = cms.string('Summary_BackPlaneCorrectionFromCondDB'),
SummaryOfProfile_xTitle = cms.string('detId'),
SummaryOfProfile_yTitle = cms.string('BackPlaneCorrection from CondDB'),
SummaryOfProfile_NchY = cms.int32(50),
SummaryOfProfile_LowY = cms.double(0.00),
SummaryOfProfile_HighY = cms.double(0.10)

),

# -----
SiStripNoisesDQM_PSet = cms.PSet(

Expand Down
Expand Up @@ -14,6 +14,7 @@
MonitorSiStripHighThreshold= cms.bool(True),
MonitorSiStripApvGain = cms.bool(True),
MonitorSiStripLorentzAngle = cms.bool(True),
MonitorSiStripBackPlaneCorrection = cms.bool(True),

FillConditions_PSet = cms.PSet(
FolderName_For_QualityAndCabling_SummaryHistos= cms.string("SiStrip/Tracks"),
Expand Down Expand Up @@ -219,6 +220,29 @@
SummaryOfProfile_HighY = cms.double(0.06)
),

SiStripBackPlaneCorrectionDQM_PSet = cms.PSet(

CondObj_name = cms.string('bpcorrection'),
CondObj_fillId = cms.string('ProfileAndCumul'),

FillSummaryProfileAtLayerLevel = cms.bool(True),
FillCumulativeSummaryAtLayerLevel = cms.bool(True),

SummaryOfCumul_description = cms.string('ProfileSummary_BackPlaneCorrectionFromCondDB'),
SummaryOfCumul_xTitle = cms.string('BackPlaneCorrection from CondDB'),
SummaryOfCumul_yTitle = cms.string(' '),
SummaryOfCumul_NchX = cms.int32(50),
SummaryOfCumul_LowX = cms.double(0.00),
SummaryOfCumul_HighX = cms.double(0.10),

SummaryOfProfile_description = cms.string('Summary_BackPlaneCorrectionFromCondDB'),
SummaryOfProfile_xTitle = cms.string('detId'),
SummaryOfProfile_yTitle = cms.string('BackPlaneCorrection from CondDB'),
SummaryOfProfile_NchY = cms.int32(50),
SummaryOfProfile_LowY = cms.double(0.00),
SummaryOfProfile_HighY = cms.double(0.10)
),

SiStripLowThresholdDQM_PSet = cms.PSet(

WhichThreshold= cms.string('Low'),
Expand Down
Expand Up @@ -15,6 +15,7 @@
MonitorSiStripQuality = cms.bool(True),
MonitorSiStripApvGain = cms.bool(False),
MonitorSiStripLorentzAngle = cms.bool(False),
MonitorSiStripBackPlaneCorrection = cms.bool(False),

MonitorSiStripCabling = cms.bool(False),
MonitorSiStripLowThreshold = cms.bool(False),
Expand Down Expand Up @@ -220,6 +221,31 @@

),

# -----
SiStripBackPlaneCorrectionDQM_PSet = cms.PSet(

CondObj_name = cms.string('bpcorrection'),
CondObj_fillId = cms.string('none'),

FillSummaryProfileAtLayerLevel = cms.bool(False),
FillCumulativeSummaryAtLayerLevel = cms.bool(True),

SummaryOfCumul_description = cms.string('ProfileSummary_BackPlaneCorrectionFromCondDB'),
SummaryOfCumul_xTitle = cms.string('BackPlaneCorrection from CondDB'),
SummaryOfCumul_yTitle = cms.string(' '),
SummaryOfCumul_NchX = cms.int32(50),
SummaryOfCumul_LowX = cms.double(0.00),
SummaryOfCumul_HighX = cms.double(0.10),

SummaryOfProfile_description = cms.string('Summary_BackPlaneCorrectionFromCondDB'),
SummaryOfProfile_xTitle = cms.string('detId'),
SummaryOfProfile_yTitle = cms.string('BackPlaneCorrection from CondDB'),
SummaryOfProfile_NchY = cms.int32(50),
SummaryOfProfile_LowY = cms.double(0.00),
SummaryOfProfile_HighY = cms.double(0.10)

),

# -----
SiStripNoisesDQM_PSet = cms.PSet(

Expand Down
33 changes: 33 additions & 0 deletions DQM/SiStripMonitorSummary/python/SiStripMonitorCondData_cfi.py
Expand Up @@ -14,6 +14,7 @@
MonitorSiStripHighThreshold= cms.bool(True),
MonitorSiStripApvGain = cms.bool(True),
MonitorSiStripLorentzAngle = cms.bool(True),
MonitorSiStripBackPlaneCorrection = cms.bool(True),

FillConditions_PSet = cms.PSet(
FolderName_For_QualityAndCabling_SummaryHistos= cms.string("SiStrip/Tracks"),
Expand Down Expand Up @@ -298,6 +299,38 @@
SummaryOfProfile_HighY = cms.double(0.06)
),

# -----
SiStripBackPlaneCorrectionDQM_PSet = cms.PSet(

ActiveDetIds_On = cms.bool(False),

TkMap_On = cms.bool(True),
TkMapName = cms.string('BackPlaneCorrectionTkMap.png'),
minValue = cms.double(0.00),
maxValue = cms.double(0.10),
saturatedFraction = cms.double(.01),

CondObj_name = cms.string('bpcorrection'),
CondObj_fillId = cms.string('ProfileAndCumul'),

FillSummaryProfileAtLayerLevel = cms.bool(True),
FillCumulativeSummaryAtLayerLevel = cms.bool(True),

SummaryOfCumul_description = cms.string('ProfileSummary_BackPlaneCorrectionFromCondDB'),
SummaryOfCumul_xTitle = cms.string('BackPlaneCorrection from CondDB'),
SummaryOfCumul_yTitle = cms.string(' '),
SummaryOfCumul_NchX = cms.int32(50),
SummaryOfCumul_LowX = cms.double(0.00),
SummaryOfCumul_HighX = cms.double(0.10),

SummaryOfProfile_description = cms.string('Summary_BackPlaneCorrectionFromCondDB'),
SummaryOfProfile_xTitle = cms.string('detId'),
SummaryOfProfile_yTitle = cms.string('BackPlaneCorrection from CondDB'),
SummaryOfProfile_NchY = cms.int32(50),
SummaryOfProfile_LowY = cms.double(0.00),
SummaryOfProfile_HighY = cms.double(0.10)
),

# -----

SiStripLowThresholdDQM_PSet = cms.PSet(
Expand Down

0 comments on commit d79f7d2

Please sign in to comment.