53 std::auto_ptr< std::vector<Jet> >
patJets (
new std::vector<Jet>() );
56 std::auto_ptr<std::vector<CaloTower> > caloTowersOut(
new std::vector<CaloTower> () );
71 iend = h_jets->
end(), ijet = ibegin;
72 ijet != iend; ++ijet ) {
77 for ( CaloTowerFwdPtrVector::const_iterator itowerBegin = ijet->caloTowersFwdPtr().begin(),
78 itowerEnd = ijet->caloTowersFwdPtr().end(), itower = itowerBegin;
79 itower != itowerEnd; ++itower ) {
81 caloTowersOut->push_back( **itower );
86 for ( reco::PFCandidateFwdPtrVector::const_iterator icandBegin = ijet->pfCandidatesFwdPtr().begin(),
87 icandEnd = ijet->pfCandidatesFwdPtr().end(), icand = icandBegin;
88 icand != icandEnd; ++icand ) {
90 pfCandidatesOut->push_back( **icand );
94 for ( TagInfoFwdPtrCollection::const_iterator iinfoBegin = ijet->tagInfosFwdPtr().begin(),
95 iinfoEnd = ijet->tagInfosFwdPtr().end(), iinfo = iinfoBegin;
96 iinfo != iinfoEnd; ++iinfo ) {
98 tagInfosOut->push_back( **iinfo );
102 if ( ijet->genJet() != 0 ) {
103 genJetsOut->push_back( *(ijet->genJet()) );
120 unsigned int caloTowerIndex = 0;
121 unsigned int pfCandidateIndex = 0;
122 unsigned int tagInfoIndex = 0;
123 unsigned int genJetIndex = 0;
126 iend = h_jets->
end(), ijet = ibegin;
127 ijet != iend; ++ijet ) {
135 for ( CaloTowerFwdPtrVector::const_iterator itowerBegin = ijet->caloTowersFwdPtr().begin(),
136 itowerEnd = ijet->caloTowersFwdPtr().end(), itower = itowerBegin;
137 itower != itowerEnd; ++itower ) {
142 patJets->back().updateFwdCaloTowerFwdPtr( itower - itowerBegin,
150 for ( reco::PFCandidateFwdPtrVector::const_iterator icandBegin = ijet->pfCandidatesFwdPtr().begin(),
151 icandEnd = ijet->pfCandidatesFwdPtr().end(), icand = icandBegin;
152 icand != icandEnd; ++icand ) {
157 patJets->back().updateFwdPFCandidateFwdPtr( icand - icandBegin,
164 for ( TagInfoFwdPtrCollection::const_iterator iinfoBegin = ijet->tagInfosFwdPtr().begin(),
165 iinfoEnd = ijet->tagInfosFwdPtr().end(), iinfo = iinfoBegin;
166 iinfo != iinfoEnd; ++iinfo ) {
171 patJets->back().updateFwdTagInfoFwdPtr( iinfo - iinfoBegin,
178 if ( ijet->genJet() != 0 ) {
189 bool pass =
patJets->size() > 0;
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< GenJet > GenJetCollection
collection of GenJet objects
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
StringCutObjectSelector< Jet > selector_
RefProd< PROD > getRefBeforePut()
edm::EDGetTokenT< edm::View< pat::Jet > > srcToken_
std::vector< reco::PFCandidate > PFCandidateCollection
collection of PFCandidates