2 #include "fastjet/contrib/Njettiness.hh"
11 for ( std::vector<unsigned>::const_iterator
n =
Njets_.begin();
n !=
Njets_.end(); ++
n )
13 std::ostringstream tauN_str;
14 tauN_str <<
"tau" << *
n;
17 std::vector<float> tauN;
18 tauN.reserve(jets->size());
31 fillerT.
insert(jets, tauN.begin(), tauN.end());
34 iEvent.
put(outT,tauN_str.str().c_str());
40 std::vector<fastjet::PseudoJet> FJparticles;
41 for (
unsigned k = 0;
k <
object->numberOfDaughters(); ++
k)
45 FJparticles.push_back( fastjet::PseudoJet( dp->px(), dp->py(), dp->pz(), dp->energy() ) );
47 edm::LogWarning(
"MissingJetConstituent") <<
"Jet constituent required for N-subjettiness computation is missing!";
50 fastjet::contrib::NsubParameters paraNsub = fastjet::contrib::NsubParameters(1.0,
cone_);
52 return routine.getTau(num, FJparticles);
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const std::vector< unsigned > Njets_
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool isNonnull() const
Checks for non-null.
float getTau(unsigned num, const edm::Ptr< reco::Jet > &object) const
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
const edm::EDGetTokenT< edm::View< reco::Jet > > src_token_