2 #include "fastjet/contrib/Njettiness.hh"
12 std::vector<float> tau1; tau1.reserve(jets->size());
13 std::vector<float> tau2; tau2.reserve(jets->size());
14 std::vector<float> tau3; tau3.reserve(jets->size());
20 float t1=
getTau(1, jetPtr );
22 float t3=
getTau(3, jetPtr );
35 fillerT1.
insert(jets, tau1.begin(), tau1.end());
36 fillerT2.
insert(jets, tau2.begin(), tau2.end());
37 fillerT3.
insert(jets, tau3.begin(), tau3.end());
42 iEvent.
put(outT1,
"tau1");
43 iEvent.
put(outT2,
"tau2");
44 iEvent.
put(outT3,
"tau3");
49 std::vector<const reco::PFCandidate*> all_particles;
50 for (
unsigned k =0;
k <
object->getPFConstituents().size();
k++)
51 all_particles.push_back( object->getPFConstituent(
k).
get() );
53 std::vector<fastjet::PseudoJet> FJparticles;
54 for (
unsigned particle = 0; particle < all_particles.size(); particle++){
56 FJparticles.push_back( fastjet::PseudoJet( thisParticle->
px(), thisParticle->
py(), thisParticle->
pz(), thisParticle->
energy() ) );
58 fastjet::contrib::NsubParameters paraNsub = fastjet::contrib::NsubParameters(1.0,
cone_);
60 return routine.getTau(num, FJparticles);
virtual double energy() const GCC11_FINAL
energy
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
virtual double pz() const GCC11_FINAL
z coordinate of momentum vector
virtual double py() const GCC11_FINAL
y coordinate of momentum vector
Jets made from PFObjects.
T const * get() const
Returns C++ pointer to the item.
auto const T2 &decltype(t1.eta()) t2
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual double px() const GCC11_FINAL
x coordinate of momentum vector
float getTau(int num, edm::Ptr< reco::PFJet > object) const
edm::EDGetTokenT< edm::View< reco::PFJet > > src_token_
Particle reconstructed by the particle flow algorithm.
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)