Skip to content

Commit

Permalink
Merge pull request #11305 from jhgoh/RemovePenaltyGangedCSC
Browse files Browse the repository at this point in the history
Remove penalty on unganged ME11A
  • Loading branch information
cmsbuild committed Sep 24, 2015
2 parents 5ce91fc + 613298d commit 11f4b54
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions RecoMuon/MuonSeedGenerator/src/MuonCSCSeedFromRecHits.cc
@@ -1,14 +1,14 @@
#include "RecoMuon/MuonSeedGenerator/src/MuonCSCSeedFromRecHits.h"
#include "RecoMuon/MuonSeedGenerator/src/MuonSeedPtExtractor.h"
#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include "Geometry/CSCGeometry/interface/CSCChamberSpecs.h"
#include "RecoMuon/TrackingTools/interface/MuonPatternRecoDumper.h"
#include "DataFormats/TrackingRecHit/interface/TrackingRecHit.h"
#include "DataFormats/TrajectoryState/interface/PTrajectoryStateOnDet.h"
#include "DataFormats/Math/interface/deltaPhi.h"
#include "TrackingTools/TrajectoryState/interface/TrajectoryStateTransform.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "Geometry/CSCGeometry/interface/CSCChamberSpecs.h"
#include "Geometry/CSCGeometry/interface/CSCChamber.h"
#include <iomanip>


Expand Down Expand Up @@ -164,8 +164,13 @@ int MuonCSCSeedFromRecHits::segmentQuality(ConstMuonRecHitPointer segment) cons
float dPhiGloDir = fabs ( deltaPhi(segment->globalPosition().phi(), segment->globalDirection().phi()) );

if ( dPhiGloDir > .2 ) ++quality;
// add a penalty for being ME1A
if(segment->isCSC() && CSCDetId(segment->geographicalId()).ring() == 4) ++quality;
// add a penalty for being ME1A if the chamber is ganged
if ( segment->isCSC() and CSCDetId(segment->geographicalId()).ring() == 4 )
{
const auto chamber = dynamic_cast<const CSCChamber*>(segment->det());
if ( chamber->specs()->gangedStrips() ) ++quality;
}

return quality;
}

Expand Down

0 comments on commit 11f4b54

Please sign in to comment.