Skip to content

Commit

Permalink
fix coding style of the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
jandrea committed Aug 6, 2019
1 parent 461429d commit 92353aa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
16 changes: 7 additions & 9 deletions DQM/SiStripMonitorTrack/interface/SiStripMonitorTrack.h
Expand Up @@ -48,7 +48,6 @@
#include "CalibTracker/Records/interface/SiStripGainRcd.h"
#include "CalibTracker/Records/interface/SiStripQualityRcd.h"


//******** Single include for the TkMap *************/
#include "DQM/SiStripCommon/interface/TkHistoMap.h"
//***************************************************/
Expand Down Expand Up @@ -172,15 +171,14 @@ class SiStripMonitorTrack : public DQMEDAnalyzer {
float iOrbitSec, iLumisection;

std::string topFolderName_;


const TrackerTopology* tTopo_ ;
edm::ESWatcher<TrackerTopologyRcd> watchertTopo_ ;

const SiStripGain* stripGain_ ;

const TrackerTopology* tTopo_;
edm::ESWatcher<TrackerTopologyRcd> watchertTopo_;

const SiStripGain* stripGain_;
edm::ESWatcher<SiStripGainRcd> watcherStripGain_;
const SiStripQuality* stripQuality_ ;

const SiStripQuality* stripQuality_;

//******* TkHistoMaps*/
std::unique_ptr<TkHistoMap> tkhisto_StoNCorrOnTrack, tkhisto_NumOnTrack, tkhisto_NumOffTrack;
Expand Down
20 changes: 8 additions & 12 deletions DQM/SiStripMonitorTrack/src/SiStripMonitorTrack.cc
Expand Up @@ -78,16 +78,15 @@ void SiStripMonitorTrack::dqmBeginRun(const edm::Run& run, const edm::EventSetup
LogDebug("SiStripMonitorTrack") << "[SiStripMonitorTrack::beginRun] There are " << tkgeom_->detUnits().size()
<< " detectors instantiated in the geometry" << std::endl;
es.get<SiStripDetCablingRcd>().get(SiStripDetCabling_);

edm::ESHandle<TrackerTopology> tTopoHandle;
es.get<TrackerTopologyRcd>().get(tTopoHandle);
tTopo_ = tTopoHandle.product();

edm::ESHandle<SiStripGain> gainHandle;
es.get<SiStripGainRcd>().get(gainHandle);
stripGain_ = gainHandle.product();



// Initialize the GenericTriggerEventFlag
if (genTriggerEventFlag_->on())
genTriggerEventFlag_->initRun(run, es);
Expand Down Expand Up @@ -130,25 +129,22 @@ void SiStripMonitorTrack::analyze(const edm::Event& e, const edm::EventSetup& es
iSubDet->second.totNClustersOffTrack = 0;
}

if (watchertTopo_.check(es) ) {
if (watchertTopo_.check(es)) {
edm::ESHandle<TrackerTopology> tTopoHandle;
es.get<TrackerTopologyRcd>().get(tTopoHandle);
tTopo_ = tTopoHandle.product();
}


if (watcherStripGain_.check(es) ) {
if (watcherStripGain_.check(es)) {
edm::ESHandle<SiStripGain> gainHandle;
es.get<SiStripGainRcd>().get(gainHandle);
stripGain_ = gainHandle.product();
stripGain_ = gainHandle.product();
}



edm::ESHandle<SiStripQuality> qualityHandle;
es.get<SiStripQualityRcd>().get("", qualityHandle);
stripQuality_ = qualityHandle.product();



//Perform track study
trackStudy(e, es);

Expand Down

0 comments on commit 92353aa

Please sign in to comment.