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 );
21 float t2=
getTau(2, 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);
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)
Jets made from PFObjects.
virtual double energy() const
energy
T const * get() const
Returns C++ pointer to the item.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
float getTau(int num, edm::Ptr< reco::PFJet > object) const
virtual double px() const
x coordinate of momentum vector
edm::EDGetTokenT< edm::View< reco::PFJet > > src_token_
virtual double pz() const
z coordinate of momentum vector
Particle reconstructed by the particle flow algorithm.
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
virtual double py() const
y coordinate of momentum vector