Skip to content

Commit

Permalink
Merge pull request #12603 from fioriNTU/PixHiFix75X
Browse files Browse the repository at this point in the history
Fix for on Track Cluster plots in Offline Pixel DQM for HI runs
  • Loading branch information
cmsbuild committed Nov 30, 2015
2 parents 5c1f75b + 3c3207e commit a4eb75e
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 11 deletions.
11 changes: 7 additions & 4 deletions DQM/SiPixelCommon/python/SiPixelOfflineDQM_source_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,18 @@
SiPixelHitEfficiencySource.ringOn = False

#HI track modules
hiTracks = "hiGlobalPrimTracks"
hiTracks = "hiGeneralTracks"

SiPixelTrackResidualSource_HeavyIons = SiPixelTrackResidualSource.clone(
TrackCandidateProducer = 'hiPrimTrackCandidates',
trajectoryInput = hiTracks
TrackCandidateProducer = hiTracks,
trajectoryInput = hiTracks,
tracksrc=hiTracks,
vtxsrc='hiSelectedVertex'
)

SiPixelHitEfficiencySource_HeavyIons = SiPixelHitEfficiencySource.clone(
trajectoryInput = hiTracks
trajectoryInput = hiTracks,
vtxsrc='hiSelectedVertex'
)


Expand Down
6 changes: 4 additions & 2 deletions DQM/SiPixelCommon/python/SiPixelP5DQM_source_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@

SiPixelTrackResidualSource_HeavyIons = SiPixelTrackResidualSource.clone(
TrackCandidateProducer = 'hiPrimTrackCandidates',
trajectoryInput = hiTracks
trajectoryInput = hiTracks,
vtxsrc='hiSelectedVertex'
)

SiPixelHitEfficiencySource_HeavyIons = SiPixelHitEfficiencySource.clone(
trajectoryInput = hiTracks
trajectoryInput = hiTracks,
vtxsrc='hiSelectedVertex'
)

#DQM service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ class SiPixelHitEfficiencySource : public DQMEDAnalyzer {
bool firstRun;

std::map<uint32_t, SiPixelHitEfficiencyModule*> theSiPixelStructure;


std::string vtxsrc_;
int nmissing,nvalid;

int nvtx_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class SiPixelTrackResidualSource : public DQMEDAnalyzer {
edm::EDGetTokenT<std::vector<reco::Track> > trackToken_;
edm::EDGetTokenT<TrajTrackAssociationCollection> trackAssociationToken_;
edm::EDGetTokenT<edmNew::DetSetVector<SiPixelCluster> > clustersrcToken_;

std::string vtxsrc_;

bool debug_;
bool modOn;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
bladeOn = cms.untracked.bool(True),
diskOn = cms.untracked.bool(False),
updateEfficiencies = cms.untracked.bool(False),
vtxsrc = cms.untracked.string('offlinePrimaryVertices'),

trajectoryInput = cms.InputTag('rsWithMaterialTracksP5'),
trajectoryInput = cms.InputTag('generalTracks'),
applyEdgeCut = cms.untracked.bool(False),
nSigma_EdgeCut = cms.untracked.double(2.)
)
1 change: 1 addition & 0 deletions DQM/SiPixelMonitorTrack/python/SiPixelMonitorTrack_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
bladeOn = cms.untracked.bool(True),
diskOn = cms.untracked.bool(True),
PtMinRes = cms.untracked.double(4.0),
vtxsrc= cms.untracked.string("offlinePrimaryVertices"),

trajectoryInput = cms.InputTag('generalTracks')
)
3 changes: 2 additions & 1 deletion DQM/SiPixelMonitorTrack/src/SiPixelHitEfficiencySource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ SiPixelHitEfficiencySource::SiPixelHitEfficiencySource(const edm::ParameterSet&
debug_ = pSet_.getUntrackedParameter<bool>("debug", false);
applyEdgeCut_ = pSet_.getUntrackedParameter<bool>("applyEdgeCut");
nSigma_EdgeCut_ = pSet_.getUntrackedParameter<double>("nSigma_EdgeCut");
vertexCollectionToken_ = consumes<reco::VertexCollection>(std::string("offlinePrimaryVertices"));
vtxsrc_= pSet_.getUntrackedParameter<std::string>("vtxsrc","offlinePrimaryVertices");
vertexCollectionToken_ = consumes<reco::VertexCollection>(vtxsrc_);
tracksrc_ = consumes<TrajTrackAssociationCollection>(pSet_.getParameter<edm::InputTag>("trajectoryInput"));
clusterCollectionToken_ = consumes<edmNew::DetSetVector<SiPixelCluster> >(std::string("siPixelClusters"));

Expand Down
3 changes: 2 additions & 1 deletion DQM/SiPixelMonitorTrack/src/SiPixelTrackResidualSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ SiPixelTrackResidualSource::SiPixelTrackResidualSource(const edm::ParameterSet&
ttrhbuilder_ = pSet_.getParameter<std::string>("TTRHBuilder");
ptminres_= pSet.getUntrackedParameter<double>("PtMinRes",4.0) ;
beamSpotToken_ = consumes<reco::BeamSpot>(std::string("offlineBeamSpot"));
offlinePrimaryVerticesToken_ = consumes<reco::VertexCollection>(std::string("offlinePrimaryVertices"));
vtxsrc_=pSet_.getUntrackedParameter<std::string>("vtxsrc", "offlinePrimaryVertices");
offlinePrimaryVerticesToken_ = consumes<reco::VertexCollection>(vtxsrc_);// consumes<reco::VertexCollection>(std::string("hiSelectedVertex")); //"offlinePrimaryVertices"));
generalTracksToken_ = consumes<reco::TrackCollection>(pSet_.getParameter<edm::InputTag>("tracksrc"));
tracksrcToken_ = consumes<std::vector<Trajectory> >(pSet_.getParameter<edm::InputTag>("trajectoryInput"));
trackToken_ = consumes<std::vector<reco::Track> >(pSet_.getParameter<edm::InputTag>("trajectoryInput"));
Expand Down

0 comments on commit a4eb75e

Please sign in to comment.