Skip to content

Commit

Permalink
Merge pull request #16108 from boudoul/fromsdutta_81X_AlCaDQM
Browse files Browse the repository at this point in the history
added cluster position plot in the AlCa DQM application (81X version)
  • Loading branch information
cmsbuild committed Oct 11, 2016
2 parents 1e65b50 + 264b5a3 commit 6f8ec1a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Expand Up @@ -73,7 +73,7 @@ class SiStripMonitorCluster : public DQMEDAnalyzer {
MonitorElement* LayerNumberOfClusterProfile = 0;
MonitorElement* LayerClusterWidthProfile = 0;
MonitorElement* LayerClusWidthVsAmpTH2 = 0;

MonitorElement* LayerClusterPosition = 0;
};

struct SubDetMEs{ // MEs for Subdetector Level
Expand Down
Expand Up @@ -47,7 +47,7 @@
Nbinx = cms.int32(768),
xmin = cms.double(-0.5),
xmax = cms.double(767.5),
layerswitchon = cms.bool(False),
layerswitchon = cms.bool(True),
moduleswitchon = cms.bool(False)
)
SiStripCalZeroBiasMonitorCluster.TH1ClusterDigiPos = cms.PSet(
Expand Down
10 changes: 10 additions & 0 deletions DQM/SiStripMonitorCluster/src/SiStripMonitorCluster.cc
Expand Up @@ -1097,6 +1097,7 @@ void SiStripMonitorCluster::createLayerMEs(std::string label, int ndets , DQMSto
layerMEs.LayerNumberOfClusterProfile = 0;
layerMEs.LayerClusterWidthProfile = 0;
layerMEs.LayerClusWidthVsAmpTH2 = 0;
layerMEs.LayerClusterPosition = 0;

//Cluster Width
if(layerswitchcluswidthon) {
Expand Down Expand Up @@ -1149,6 +1150,11 @@ void SiStripMonitorCluster::createLayerMEs(std::string label, int ndets , DQMSto
layerMEs.LayerClusWidthVsAmpTH2=bookME2D("ClusWidthVsAmpTH2", hidmanager.createHistoLayer("ClusterWidths_vs_Amplitudes","layer",label,"").c_str() , ibooker );
}

// Cluster Position
if (layerswitchclusposon) {
std::string hid = hidmanager.createHistoLayer("ClusterPosition","layer",label,"");
layerMEs.LayerClusterPosition=ibooker.book1D(hid, hid, 128*6, 0.5, 128*6+0.5);
}

LayerMEsMap[label]=layerMEs;
}
Expand Down Expand Up @@ -1367,6 +1373,10 @@ void SiStripMonitorCluster::fillLayerMEs(LayerMEs& layerMEs, ClusterProperties&
if( layer_clusterWidth_vs_amplitude_on ) {
fillME(layerMEs.LayerClusWidthVsAmpTH2, cluster.charge, cluster.width);
}

if (layerswitchclusposon) {
fillME(layerMEs.LayerClusterPosition,cluster.position);
}
}
//------------------------------------------------------------------------------------------
MonitorElement* SiStripMonitorCluster::bookMETrend(const char* HistoName , DQMStore::IBooker & ibooker)
Expand Down

0 comments on commit 6f8ec1a

Please sign in to comment.