77 if(!validToken)
return;
86 if(!validToken)
return;
95 if(!validToken)
return;
104 if(!validToken)
return;
113 if(!validToken)
return;
124 if(!validToken)
return;
130 unsigned int muonIndex = 0;
168 int mus_overlap0 = -1, muInd = -1, mus_nOverlaps = 0;
171 if ( muonJ !=
muon ){
173 if ( mus_overlap0 == -1) mus_overlap0 = muInd;
181 if(
muon->isEnergyValid() ) ecal_p =
muon->calEnergy().ecal_position;
185 for (
int iG = 0; iG < 24; ++iG ) {
215 bool matchIsValid =
muon->isMatchesValid();
224 bool energyIsValid =
muon->isEnergyValid();
226 hww.
mus_e_em() .push_back( energyIsValid ?
muon->calEnergy().em : -9999. );
227 hww.
mus_e_had() .push_back( energyIsValid ?
muon->calEnergy().had : -9999. );
228 hww.
mus_e_ho() .push_back( energyIsValid ?
muon->calEnergy().ho : -9999. );
229 hww.
mus_e_emS9() .push_back( energyIsValid ?
muon->calEnergy().emS9 : -9999. );
230 hww.
mus_e_hadS9() .push_back( energyIsValid ?
muon->calEnergy().hadS9 : -9999. );
231 hww.
mus_e_hoS9() .push_back( energyIsValid ?
muon->calEnergy().hoS9 : -9999. );
254 hww.
mus_d0() .push_back( siTrack.
isNonnull() ? siTrack->d0() : -9999. );
void Load_mus_validHits()
double z0() const
z coordinate
void Load_mus_isoR03_pf_PUPt()
bool isNonnull() const
Checks for non-null.
std::vector< int > & mus_pid_PFMuon()
void Load_mus_pid_PFMuon()
std::vector< float > & mus_iso05_hadEt()
std::vector< float > & mus_gfit_chi2()
edm::EDGetTokenT< reco::VertexCollection > thePVCollection_
void Load_mus_isoR03_pf_ChargedHadronPt()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void Load_mus_iso03_sumPt()
std::vector< int > & mus_pid_TMLastStationTight()
void Load_mus_caloCompatibility()
void Load_mus_iso03_emEt()
std::vector< int > & mus_trkidx()
std::vector< float > & mus_ptErr()
std::vector< LorentzVector > & mus_p4()
std::vector< float > & mus_iso03_hadEt()
float trkKink
value of the kink algorithm applied to the inner track stub
std::vector< float > & mus_e_hoS9()
edm::EDGetTokenT< reco::MuonCollection > MuonCollection_
void Load_mus_isoR03_pf_NeutralHadronEt()
key_type key() const
Accessor for product key.
std::vector< int > & mus_nmatches()
float sumPhotonEt
sum pt of PF photons
std::vector< float > & mus_isoR03_pf_ChargedHadronPt()
std::vector< float > & mus_iso03_sumPt()
void Load_mus_sta_z0corr()
std::vector< int > & mus_gfit_validSTAHits()
std::vector< float > & mus_ndof()
float sumNeutralHadronEt
sum pt of neutral hadrons
SelectionType
Selector type.
std::vector< float > & mus_iso_hcalvetoDep()
std::vector< float > & mus_e_emS9()
void Load_mus_gfit_ndof()
bool overlap(const reco::Muon &muon1, const reco::Muon &muon2, double pullX=1.0, double pullY=1.0, bool checkAdjacentChambers=false)
void Load_mus_isoR03_pf_PhotonEt()
edm::EDGetTokenT< reco::PFCandidateCollection > PFCandidateCollection_
edm::EDGetTokenT< reco::BeamSpot > BeamSpot_
float sumPUPt
sum pt of charged Particles not from PV (for Pu corrections)
void Load_mus_iso05_sumPt()
std::vector< LorentzVector > & mus_trk_p4()
std::vector< int > & mus_validHits()
void Load_mus_iso05_hadEt()
std::vector< float > & mus_isoR03_pf_PhotonEt()
std::vector< int > & mus_charge()
std::vector< float > & mus_gfit_ndof()
void Load_mus_iso03_hadEt()
float segmentCompatibility(const reco::Muon &muon, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
T const * get() const
Returns C++ pointer to the item.
std::vector< float > & mus_e_hadS9()
void Load_mus_iso_hcalvetoDep()
bool isGoodMuon(const reco::Muon &muon, SelectionType type, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
main GoodMuon wrapper call
std::vector< float > & mus_iso_ecalvetoDep()
void Load_mus_iso_ecalvetoDep()
std::vector< float > & mus_e_had()
std::vector< float > & mus_sta_d0()
std::vector< float > & mus_trkKink()
edm::EDGetTokenT< edm::View< reco::Muon > > Muon_
T const * product() const
XYZPointD XYZPoint
point in space with cartesian internal representation
std::vector< float > & mus_segmCompatibility()
std::vector< float > & mus_d0()
edm::EDGetTokenT< edm::ValueMap< reco::MuonShower > > MuonShower_
void Load_mus_numberOfMatchedStations()
void Load_mus_vertex_p4()
std::vector< float > & mus_e_em()
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
std::vector< float > & mus_iso05_sumPt()
void Load_mus_pid_TMLastStationTight()
std::vector< float > & mus_sta_z0corr()
double y0() const
y coordinate
std::vector< float > & mus_caloCompatibility()
void Load_mus_gfit_validSTAHits()
std::vector< float > & mus_e_ho()
void Load_mus_gfit_chi2()
void Load_mus_iso05_emEt()
std::vector< float > & mus_iso05_emEt()
std::vector< LorentzVector > & mus_vertex_p4()
void Load_mus_segmCompatibility()
std::vector< LorentzVector > & mus_sta_p4()
std::vector< int > & mus_numberOfMatchedStations()
std::vector< float > & mus_chi2()
std::vector< int > & mus_goodmask()
std::vector< float > & mus_isoR03_pf_PUPt()
std::vector< float > & mus_isoR03_pf_NeutralHadronEt()
std::vector< float > & mus_iso03_emEt()
math::PtEtaPhiELorentzVectorF LorentzVector
std::vector< int > & mus_type()
double x0() const
x coordinate
float sumChargedHadronPt
sum-pt of charged Hadron