Analyzer of the muon objects
- Date:
- 2009/11/06 10:06:22
- Revision:
- 1.6
- Author
- R. Bellan - CERN ricca.nosp@m.rdo..nosp@m.bella.nosp@m.n@ce.nosp@m.rn.ch
Analyzer of the muon objects
- Date:
- 2009/09/29 19:46:13
- Revision:
- 1.3
- Author
- R. Bellan - CERN ricca.nosp@m.rdo..nosp@m.bella.nosp@m.n@ce.nosp@m.rn.ch
Definition at line 25 of file MuonAnalyzer.h.
simple selection... Do not want to write here my super-secret Higgs analysis ;-)
Implements edm::EDAnalyzer.
Definition at line 71 of file MuonAnalyzer.cc.
References muon::All, muon::AllArbitrated, muon::AllStandAloneMuons, muon::AllTrackerMuons, diffTreeTool::diff, muon::GlobalMuonPromptTight, muon::isGoodMuon(), metsig::muon, patZpeak::muons, muon::segmentCompatibility(), muon::TM2DCompatibilityLoose, muon::TM2DCompatibilityTight, muon::TMLastStationLoose, muon::TMLastStationOptimizedLowPtLoose, muon::TMLastStationOptimizedLowPtTight, muon::TMLastStationTight, muon::TMOneStationLoose, muon::TMOneStationTight, and muon::TrackerMuonArbitrated.
84 for (pat::MuonCollection::const_iterator
muon = muons->begin();
muon != muons->end(); ++
muon){
91 if(
muon->genLepton()!=0){
92 double reso = (
muon->pt() -
muon->genLepton()->pt())/
muon->genLepton()->pt();
97 if(
muon->isEnergyValid())
101 if(
muon->isStandAloneMuon())
102 if(
muon->isGlobalMuon())
113 if(
muon->isGlobalMuon()){
114 double diff =
muon->innerTrack()->pt() -
muon->standAloneMuon()->pt();
121 if(
muon->isCaloCompatibilityValid())
169 if(
muon->isIsolationValid()){
180 if(
muon->isolationR03().sumPt< 0.2){
181 if(
muon->isGlobalMuon() ||
184 selectedMuons.push_back(*
muon);
189 if(selectedMuons.size() == 4){
191 for (pat::MuonCollection::const_iterator
muon = selectedMuons.begin();
muon != selectedMuons.end(); ++
muon){
192 p4CM = p4CM +
muon->p4();
TH1F * hMuSegCompatibility
TH1F * hMuCaloCompatibility
float segmentCompatibility(const reco::Muon &muon, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
bool isGoodMuon(const reco::Muon &muon, SelectionType type, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
main GoodMuon wrapper call
math::XYZTLorentzVector LorentzVector
Lorentz vector.
std::vector< Muon > MuonCollection