Skip to content

Commit

Permalink
Merge pull request #7701 from danduggan/pixclusters-online
Browse files Browse the repository at this point in the history
adding pixel cluster properties back for the module level (online dqm)
  • Loading branch information
davidlange6 committed Feb 12, 2015
2 parents df3c800 + f0a2fdc commit 7b14dc5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
2 changes: 2 additions & 0 deletions DQM/Integration/python/test/beam_dqm_sourceclient-live_cfg.py
Expand Up @@ -179,6 +179,8 @@
process.offlineBeamSpot*
process.siPixelClusters*
process.siPixelRecHits*
process.siPixelClusterShapeCache*
process.PixelLayerTriplets*
# process.pixelTracks*
# process.pixelVertices
process.recopixelvertexing
Expand Down
19 changes: 15 additions & 4 deletions DQM/SiPixelMonitorCluster/src/SiPixelClusterModule.cc
Expand Up @@ -83,6 +83,18 @@ void SiPixelClusterModule::book(const edm::ParameterSet& iConfig, DQMStore::IBoo
edm::InputTag src = iConfig.getParameter<edm::InputTag>( "src" );
if(type==0){
SiPixelHistogramId* theHistogramId = new SiPixelHistogramId( src.label() );
// Number of clusters
hid = theHistogramId->setHistoId("nclusters",id_);
meNClusters_ = iBooker.book1D(hid,"Number of Clusters",8,0.,8.);
meNClusters_->setAxisTitle("Number of Clusters",1);
// Total cluster charge in MeV
hid = theHistogramId->setHistoId("charge",id_);
meCharge_ = iBooker.book1D(hid,"Cluster charge",100,0.,200.);
meCharge_->setAxisTitle("Charge [kilo electrons]",1);
// Total cluster size (in pixels)
hid = theHistogramId->setHistoId("size",id_);
meSize_ = iBooker.book1D(hid,"Total cluster size",30,0.,30.);
meSize_->setAxisTitle("Cluster size [number of pixels]",1);
if(!reducedSet){
// Lowest cluster row
hid = theHistogramId->setHistoId("minrow",id_);
Expand Down Expand Up @@ -511,7 +523,8 @@ int SiPixelClusterModule::fill(const edmNew::DetSetVector<SiPixelCluster>& input
const PixelTopology * topol = &(theGeomDet->specificTopology());
LocalPoint clustlp = topol->localPosition( MeasurementPoint(x, y) );
GlobalPoint clustgp = theGeomDet->surface().toGlobal( clustlp );

if(modon) meCharge_->Fill((float)charge);
if(modon) meSize_->Fill((float)size);
if(barrel){
uint32_t DBlayer;
if (!isUpgrade) { DBlayer = PixelBarrelName(DetId(id_)).layerName(); }
Expand Down Expand Up @@ -701,16 +714,14 @@ int SiPixelClusterModule::fill(const edmNew::DetSetVector<SiPixelCluster>& input
}
}
}
//if(modon) (meNClusters_)->Fill((float)numberOfClusters);
if(modon) (meNClusters_)->Fill((float)numberOfClusters);
if(ladon && barrel) (meNClustersLad_)->Fill((float)numberOfClusters);
if(layon && barrel) (meNClustersLay_)->Fill((float)numberOfClusters);
if(phion && barrel) (meNClustersPhi_)->Fill((float)numberOfClusters);
if(bladeon && endcap) (meNClustersBlade_)->Fill((float)numberOfClusters);
if(diskon && endcap) (meNClustersDisk_)->Fill((float)numberOfClusters);
if(ringon && endcap) (meNClustersRing_)->Fill((float)numberOfClusters);

//std::cout<<"number of clusters="<<numberOfClusters<<std::endl;


}

Expand Down

0 comments on commit 7b14dc5

Please sign in to comment.