76 validToken = iEvent.
getByToken( Muon_ , muon_h );
77 if(!validToken)
return;
85 validToken = iEvent.
getByToken( MuonShower_ , showerMap );
86 if(!validToken)
return;
94 validToken = iEvent.
getByToken( thePVCollection_ , vertexHandle );
95 if(!validToken)
return;
103 validToken = iEvent.
getByToken( PFCandidateCollection_ , pfCand_h );
104 if(!validToken)
return;
112 validToken = iEvent.
getByToken(BeamSpot_, beamspot_h);
113 if(!validToken)
return;
123 validToken = iEvent.
getByToken( MuonCollection_, muons );
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. );
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void Load_mus_validHits()
T getParameter(std::string const &) const
double z0() const
z coordinate
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
void Load_mus_isoR03_pf_PUPt()
std::vector< int > & mus_pid_PFMuon()
void Load_mus_pid_PFMuon()
std::vector< float > & mus_iso05_hadEt()
std::vector< float > & mus_gfit_chi2()
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()
std::vector< Vertex > VertexCollection
collection of Vertex objects
float trkKink
value of the kink algorithm applied to the inner track stub
std::vector< float > & mus_e_hoS9()
void Load_mus_isoR03_pf_NeutralHadronEt()
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< Muon > MuonCollection
collection of Muon objects
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()
bool isNonnull() const
Checks for non-null.
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()
MuonMaker(const edm::ParameterSet &, edm::ConsumesCollector)
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)
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< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates
std::vector< float > & mus_e_had()
std::vector< float > & mus_sta_d0()
std::vector< float > & mus_trkKink()
XYZPointD XYZPoint
point in space with cartesian internal representation
std::vector< float > & mus_segmCompatibility()
key_type key() const
Accessor for product key.
std::vector< float > & mus_d0()
void Load_mus_numberOfMatchedStations()
T const * product() const
void Load_mus_vertex_p4()
std::vector< float > & mus_e_em()
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()
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< float > > XYZTLorentzVectorF
Lorentz vector with cylindrical internal representation using pseudorapidity.
void Load_mus_gfit_chi2()
void Load_mus_iso05_emEt()
std::vector< float > & mus_iso05_emEt()
T const * get() const
Returns C++ pointer to the item.
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
void SetVars(HWW &, const edm::Event &, const edm::EventSetup &)
std::vector< int > & mus_type()
double x0() const
x coordinate
float sumChargedHadronPt
sum-pt of charged Hadron