24 validToken = iEvent.
getByToken( PFElectrons_, pfCandidatesHandle );
25 if(!validToken)
return;
29 unsigned int nC = pf_pit.
size();
30 for(
unsigned int iC = 0; iC < nC; ++iC ) {
33 if ( pf_it.
isNull() )
continue;
36 for(
unsigned int i = 0;
i < 17;
i++ ) {
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
PFElectronMaker(const edm::ParameterSet &, edm::ConsumesCollector)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void SetVars(HWW &, const edm::Event &, const edm::EventSetup &)
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
std::vector< LorentzVector > & pfels_p4()
XYZPointD XYZPoint
point in space with cartesian internal representation
const_iterator begin() const
T const * product() const
bool isNull() const
Checks for null.
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< float > > XYZTLorentzVectorF
Lorentz vector with cylindrical internal representation using pseudorapidity.
edm::ValueMap< reco::PFCandidatePtr > PFCandMap
math::PtEtaPhiELorentzVectorF LorentzVector