CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
BPHSoftMuonSelect Class Reference

Public Member Functions

bool accept (const reco::Candidate &cand, const reco::Vertex *pv) const
 
 BPHSoftMuonSelect (int cutTrackerLayers=5, int cutPixelLayers=0, float maxDxy=0.3, float maxDz=20.0, bool goodMuon=true, bool highPurity=true)
 
 ~BPHSoftMuonSelect ()
 

Private Attributes

int cutPL
 
int cutTL
 
bool gM
 
bool hP
 
float maxXY
 
float maxZ
 
const reco::Vertexpv
 

Detailed Description

Definition at line 140 of file BPHHistoSpecificDecay.cc.

Constructor & Destructor Documentation

◆ BPHSoftMuonSelect()

BPHSoftMuonSelect::BPHSoftMuonSelect ( int  cutTrackerLayers = 5,
int  cutPixelLayers = 0,
float  maxDxy = 0.3,
float  maxDz = 20.0,
bool  goodMuon = true,
bool  highPurity = true 
)
inline

Definition at line 142 of file BPHHistoSpecificDecay.cc.

148  : cutTL(cutTrackerLayers), cutPL(cutPixelLayers), maxXY(maxDxy), maxZ(maxDz), gM(goodMuon), hP(highPurity) {}

◆ ~BPHSoftMuonSelect()

BPHSoftMuonSelect::~BPHSoftMuonSelect ( )
inline

Definition at line 149 of file BPHHistoSpecificDecay.cc.

149 {}

Member Function Documentation

◆ accept()

bool BPHSoftMuonSelect::accept ( const reco::Candidate cand,
const reco::Vertex pv 
) const
inline

Definition at line 150 of file BPHHistoSpecificDecay.cc.

150  {
151  const pat::Muon* p = dynamic_cast<const pat::Muon*>(&cand);
152  if (p == nullptr)
153  return false;
155  return false;
156  if (p->innerTrack()->hitPattern().trackerLayersWithMeasurement() <= cutTL)
157  return false;
158  if (p->innerTrack()->hitPattern().pixelLayersWithMeasurement() <= cutPL)
159  return false;
160  if (hP && !p->innerTrack()->quality(reco::TrackBase::highPurity))
161  return false;
162  if (pv == nullptr)
163  return true;
164  const reco::Vertex::Point& pos = pv->position();
165  if (fabs(p->innerTrack()->dxy(pos)) >= maxXY)
166  return false;
167  if (fabs(p->innerTrack()->dz(pos)) >= maxZ)
168  return false;
169  return true;
170  }

References reco::TrackBase::highPurity, muon::isGoodMuon(), CosmicsPD_Skims::maxZ, AlCaHLTBitMon_ParallelJobs::p, MetAnalyzer::pv(), and muon::TMOneStationTight.

Referenced by esMonitoring.FDJsonServer::handle_accept().

Member Data Documentation

◆ cutPL

int BPHSoftMuonSelect::cutPL
private

Definition at line 175 of file BPHHistoSpecificDecay.cc.

◆ cutTL

int BPHSoftMuonSelect::cutTL
private

Definition at line 174 of file BPHHistoSpecificDecay.cc.

◆ gM

bool BPHSoftMuonSelect::gM
private

Definition at line 178 of file BPHHistoSpecificDecay.cc.

◆ hP

bool BPHSoftMuonSelect::hP
private

Definition at line 179 of file BPHHistoSpecificDecay.cc.

◆ maxXY

float BPHSoftMuonSelect::maxXY
private

Definition at line 176 of file BPHHistoSpecificDecay.cc.

◆ maxZ

float BPHSoftMuonSelect::maxZ
private

Definition at line 177 of file BPHHistoSpecificDecay.cc.

◆ pv

const reco::Vertex* BPHSoftMuonSelect::pv
private

Definition at line 173 of file BPHHistoSpecificDecay.cc.

BPHSoftMuonSelect::pv
const reco::Vertex * pv
Definition: BPHHistoSpecificDecay.cc:173
pos
Definition: PixelAliasList.h:18
BPHSoftMuonSelect::maxXY
float maxXY
Definition: BPHHistoSpecificDecay.cc:176
reco::Vertex::position
const Point & position() const
position
Definition: Vertex.h:127
pat::Muon
Analysis-level muon class.
Definition: Muon.h:51
muon::isGoodMuon
bool isGoodMuon(const reco::Muon &muon, SelectionType type, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
main GoodMuon wrapper call
Definition: MuonSelectors.cc:649
BPHSoftMuonSelect::gM
bool gM
Definition: BPHHistoSpecificDecay.cc:178
beam_dqm_sourceclient-live_cfg.maxDz
maxDz
Definition: beam_dqm_sourceclient-live_cfg.py:145
muon::TMOneStationTight
Definition: MuonSelectors.h:31
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
cand
Definition: decayParser.h:32
BPHSoftMuonSelect::hP
bool hP
Definition: BPHHistoSpecificDecay.cc:179
reco::Vertex::Point
math::XYZPoint Point
point in the space
Definition: Vertex.h:40
gather_cfg.maxDxy
maxDxy
Definition: gather_cfg.py:53
muons_cff.highPurity
highPurity
Definition: muons_cff.py:136
BPHSoftMuonSelect::maxZ
float maxZ
Definition: BPHHistoSpecificDecay.cc:177
BPHSoftMuonSelect::cutTL
int cutTL
Definition: BPHHistoSpecificDecay.cc:174
BPHSoftMuonSelect::cutPL
int cutPL
Definition: BPHHistoSpecificDecay.cc:175
reco::TrackBase::highPurity
Definition: TrackBase.h:154