CMS 3D CMS Logo

Jet.cc
Go to the documentation of this file.
1 //
2 //
3 
8 
9 using namespace pat;
10 
12 Jet::Jet() :
13  PATObject<reco::Jet>(reco::Jet()),
14  embeddedCaloTowers_(false),
15  embeddedPFCandidates_(false),
16  jetCharge_(0.)
17 {
18 }
19 
21 Jet::Jet(const reco::Jet & aJet) :
22  PATObject<reco::Jet>(aJet),
23  embeddedCaloTowers_(false),
24  embeddedPFCandidates_(false),
25  jetCharge_(0.0)
26 {
27  tryImportSpecific(aJet);
28 }
29 
31 Jet::Jet(const edm::Ptr<reco::Jet> & aJetRef) :
32  PATObject<reco::Jet>(aJetRef),
33  embeddedCaloTowers_(false),
34  embeddedPFCandidates_(false),
35  jetCharge_(0.0)
36 {
37  tryImportSpecific(*aJetRef);
38 }
39 
41 Jet::Jet(const edm::RefToBase<reco::Jet> & aJetRef) :
42  PATObject<reco::Jet>(aJetRef),
43  embeddedCaloTowers_(false),
44  embeddedPFCandidates_(false),
45  jetCharge_(0.0)
46 {
47  tryImportSpecific(*aJetRef);
48 }
49 
51 Jet::Jet(const edm::RefToBase<pat::Jet> & aJetRef) :
52  Jet(*aJetRef)
53 {
54  refToOrig_ = edm::Ptr<reco::Candidate>(aJetRef.id(), aJetRef.get(), aJetRef.key());
55 }
56 
58 Jet::Jet(const edm::Ptr<pat::Jet> & aJetRef) :
59  Jet(*aJetRef)
60 {
61  refToOrig_ = aJetRef;
62 }
63 
64 std::ostream&
65 reco::operator<<(std::ostream& out, const pat::Jet& obj)
66 {
67  if(!out) return out;
68 
69  out << "\tpat::Jet: ";
70  out << std::setiosflags(std::ios::right);
71  out << std::setiosflags(std::ios::fixed);
72  out << std::setprecision(3);
73  out << " E/pT/eta/phi "
74  << obj.energy()<<"/"
75  << obj.pt()<<"/"
76  << obj.eta()<<"/"
77  << obj.phi();
78  return out;
79 }
80 
82 void Jet::tryImportSpecific(const reco::Jet& source)
83 {
84  const std::type_info & type = typeid(source);
85  if( type == typeid(reco::CaloJet) ){
86  specificCalo_.push_back( (static_cast<const reco::CaloJet&>(source)).getSpecific() );
87  } else if( type == typeid(reco::JPTJet) ){
88  reco::JPTJet const & jptJet = static_cast<reco::JPTJet const &>(source);
89  specificJPT_.push_back( jptJet.getSpecific() );
90  reco::CaloJet const * caloJet = 0;
91  if ( jptJet.getCaloJetRef().isNonnull() && jptJet.getCaloJetRef().isAvailable() ) {
92  caloJet = dynamic_cast<reco::CaloJet const *>( jptJet.getCaloJetRef().get() );
93  }
94  if ( caloJet != 0 ) {
95  specificCalo_.push_back( caloJet->getSpecific() );
96  }
97  else {
98  edm::LogWarning("OptionalProductNotFound") << " in pat::Jet, Attempted to add Calo Specifics to JPT Jets, but failed."
99  << " Jet ID for JPT Jets will not be available for you." << std::endl;
100  }
101  } else if( type == typeid(reco::PFJet) ){
102  specificPF_.push_back( (static_cast<const reco::PFJet&>(source)).getSpecific() );
103  }
104 }
105 
107 Jet::~Jet() {
108 }
109 
111 
112 CaloTowerPtr Jet::getCaloConstituent (unsigned fIndex) const {
113  if (embeddedCaloTowers_) {
114  // Refactorized PAT access
115  if ( caloTowersFwdPtr_.size() > 0 ) {
116  return (fIndex < caloTowersFwdPtr_.size() ?
117  caloTowersFwdPtr_[fIndex].ptr() : CaloTowerPtr());
118  }
119  // Compatibility PAT access
120  else {
121  if ( caloTowers_.size() > 0 ) {
122  return (fIndex < caloTowers_.size() ?
123  CaloTowerPtr(&caloTowers_, fIndex) : CaloTowerPtr());
124 
125  }
126  }
127  }
128  // Non-embedded access
129  else {
130  Constituent dau = daughterPtr (fIndex);
131  const CaloTower* caloTower = dynamic_cast <const CaloTower*> (dau.get());
132  if (caloTower != 0) {
133  return CaloTowerPtr(dau.id(), caloTower, dau.key() );
134  }
135  else {
136  throw cms::Exception("Invalid Constituent") << "CaloJet constituent is not of CaloTower type";
137  }
138 
139  }
140 
141  return CaloTowerPtr ();
142 }
143 
144 
145 
146 std::vector<CaloTowerPtr> const & Jet::getCaloConstituents () const {
147  if ( !caloTowersTemp_.isSet() || caloTowers_.size() > 0 ) cacheCaloTowers();
148  return *caloTowersTemp_;
149 }
150 
151 
153 
154 reco::PFCandidatePtr Jet::getPFConstituent (unsigned fIndex) const {
155  if (embeddedPFCandidates_) {
156  // Refactorized PAT access
157  if ( pfCandidatesFwdPtr_.size() > 0 ) {
158  return (fIndex < pfCandidatesFwdPtr_.size() ?
159  pfCandidatesFwdPtr_[fIndex].ptr() : reco::PFCandidatePtr());
160  }
161  // Compatibility PAT access
162  else {
163  if ( pfCandidates_.size() > 0 ) {
164  return (fIndex < pfCandidates_.size() ?
165  reco::PFCandidatePtr(&pfCandidates_, fIndex) : reco::PFCandidatePtr());
166 
167  }
168  }
169  }
170  // Non-embedded access
171  else {
172  Constituent dau = daughterPtr (fIndex);
173  const reco::PFCandidate* pfCandidate = dynamic_cast <const reco::PFCandidate*> (dau.get());
174  if (pfCandidate) {
175  return reco::PFCandidatePtr(dau.id(), pfCandidate, dau.key() );
176  }
177  else {
178  throw cms::Exception("Invalid Constituent") << "PFJet constituent is not of PFCandidate type";
179  }
180 
181  }
182 
183  return reco::PFCandidatePtr ();
184 }
185 
186 std::vector<reco::PFCandidatePtr> const & Jet::getPFConstituents () const {
187  if ( !pfCandidatesTemp_.isSet() || pfCandidates_.size() > 0 ) cachePFCandidates();
188  return *pfCandidatesTemp_;
189 }
190 
191 const reco::Candidate * Jet::daughter(size_t i) const {
192  if (isCaloJet() || isJPTJet() ) {
193  if ( embeddedCaloTowers_ ) {
194  if ( caloTowersFwdPtr_.size() > 0 ) return caloTowersFwdPtr_[i].get();
195  else if ( caloTowers_.size() > 0 ) return &caloTowers_[i];
196  else return reco::Jet::daughter(i);
197  }
198  }
199  if (isPFJet()) {
200  if ( embeddedPFCandidates_ ) {
201  if ( pfCandidatesFwdPtr_.size() > 0 ) return pfCandidatesFwdPtr_[i].get();
202  else if ( pfCandidates_.size() > 0 ) return &pfCandidates_[i];
203  else return reco::Jet::daughter(i);
204  }
205  }
206  return reco::Jet::daughter(i);
207 }
208 
209 size_t Jet::numberOfDaughters() const {
210  if (isCaloJet() || isJPTJet()) {
211  if ( embeddedCaloTowers_ ) {
212  if ( caloTowersFwdPtr_.size() > 0 ) return caloTowersFwdPtr_.size();
213  else if ( caloTowers_.size() > 0 ) return caloTowers_.size();
214  else return reco::Jet::numberOfDaughters();
215  }
216  }
217  if (isPFJet()) {
218  if ( embeddedPFCandidates_ ) {
219  if ( pfCandidatesFwdPtr_.size() > 0 ) return pfCandidatesFwdPtr_.size();
220  else if ( pfCandidates_.size() > 0 ) return pfCandidates_.size();
221  else return reco::Jet::numberOfDaughters();
222  }
223  }
225 }
226 
228 const reco::GenJet * Jet::genJet() const {
229  if (genJet_.size()) return &(genJet_.front());
230  else if ( genJetRef_.size() ) return genJetRef_[0].get();
231  else return genJetFwdRef_.get();
232 }
233 
235 int Jet::partonFlavour() const {
236  return jetFlavourInfo_.getPartonFlavour();
237 }
238 
240 int Jet::hadronFlavour() const {
241  return jetFlavourInfo_.getHadronFlavour();
242 }
243 
245 const reco::JetFlavourInfo & Jet::jetFlavourInfo() const {
246  return jetFlavourInfo_;
247 }
248 
250 
251 // initialize the jet to a given JEC level during creation starting from Uncorrected
252 void Jet::initializeJEC(unsigned int level, const JetCorrFactors::Flavor& flavor, unsigned int set)
253 {
254  currentJECSet(set);
255  currentJECLevel(level);
256  currentJECFlavor(flavor);
257  setP4(jec_[set].correction(level, flavor)*p4());
258 }
259 
261 int Jet::jecSet(const std::string& set) const
262 {
263  for(std::vector<pat::JetCorrFactors>::const_iterator corrFactor=jec_.begin(); corrFactor!=jec_.end(); ++corrFactor)
264  if( corrFactor->jecSet()==set ){ return (corrFactor-jec_.begin()); }
265  return -1;
266 }
267 
269 const std::vector<std::string> Jet::availableJECSets() const
270 {
271  std::vector<std::string> sets;
272  for(std::vector<pat::JetCorrFactors>::const_iterator corrFactor=jec_.begin(); corrFactor!=jec_.end(); ++corrFactor)
273  sets.push_back(corrFactor->jecSet());
274  return sets;
275 }
276 
277 const std::vector<std::string> Jet::availableJECLevels(const int& set) const
278 {
279  return set>=0 ? jec_.at(set).correctionLabels() : std::vector<std::string>();
280 }
281 
284 float Jet::jecFactor(const std::string& level, const std::string& flavor, const std::string& set) const
285 {
286  for(unsigned int idx=0; idx<jec_.size(); ++idx){
287  if(set.empty() || jec_.at(idx).jecSet()==set){
288  if(jec_[idx].jecLevel(level)>=0){
289  return jecFactor(jec_[idx].jecLevel(level), jec_[idx].jecFlavor(flavor), idx);
290  }
291  else{
292  throw cms::Exception("InvalidRequest") << "This JEC level " << level << " does not exist. \n";
293  }
294  }
295  }
296  throw cms::Exception("InvalidRequest") << "This jet does not carry any jet energy correction factor information \n"
297  << "for a jet energy correction set with label " << set << "\n";
298 }
299 
302 float Jet::jecFactor(const unsigned int& level, const JetCorrFactors::Flavor& flavor, const unsigned int& set) const
303 {
304  if(!jecSetsAvailable()){
305  throw cms::Exception("InvalidRequest") << "This jet does not carry any jet energy correction factor information \n";
306  }
307  if(!jecSetAvailable(set)){
308  throw cms::Exception("InvalidRequest") << "This jet does not carry any jet energy correction factor information \n"
309  << "for a jet energy correction set with index " << set << "\n";
310  }
311  return jec_.at(set).correction(level, flavor)/jec_.at(currentJECSet_).correction(currentJECLevel_, currentJECFlavor_);
312 }
313 
316 Jet Jet::correctedJet(const std::string& level, const std::string& flavor, const std::string& set) const
317 {
318  // rescale p4 of the jet; the update of current values is
319  // done within the called jecFactor function
320  for(unsigned int idx=0; idx<jec_.size(); ++idx){
321  if(set.empty() || jec_.at(idx).jecSet()==set){
322  if(jec_[idx].jecLevel(level)>=0){
323  return correctedJet(jec_[idx].jecLevel(level), jec_[idx].jecFlavor(flavor), idx);
324  }
325  else{
326  throw cms::Exception("InvalidRequest") << "This JEC level " << level << " does not exist. \n";
327  }
328  }
329  }
330  throw cms::Exception("InvalidRequest") << "This JEC set " << set << " does not exist. \n";
331 }
332 
335 Jet Jet::correctedJet(const unsigned int& level, const JetCorrFactors::Flavor& flavor, const unsigned int& set) const
336 {
337  Jet correctedJet(*this);
338  //rescale p4 of the jet
339  correctedJet.setP4(jecFactor(level, flavor, set)*p4());
340  // update current level, flavor and set
341  correctedJet.currentJECSet(set); correctedJet.currentJECLevel(level); correctedJet.currentJECFlavor(flavor);
342  return correctedJet;
343 }
344 
345 
347 
348 const std::vector<std::pair<std::string, float> > & Jet::getPairDiscri() const {
349  return pairDiscriVector_;
350 }
351 
353 float Jet::bDiscriminator(const std::string & aLabel) const {
354  float discriminator = -1000.;
355  for(int i=(int(pairDiscriVector_.size())-1); i>=0; i--){
356  if(pairDiscriVector_[i].first == aLabel){
357  discriminator = pairDiscriVector_[i].second;
358  break;
359  }
360  }
361  return discriminator;
362 }
363 
364 const reco::BaseTagInfo * Jet::tagInfo(const std::string &label) const {
365  for(int i=(int(tagInfoLabels_.size())-1); i>=0; i--){
366  if (tagInfoLabels_[i] == label) {
367  if ( tagInfosFwdPtr_.size() > 0 ) return tagInfosFwdPtr_[i].get();
368  else if ( tagInfos_.size() > 0 ) return & tagInfos_[i];
369  return 0;
370  }
371  }
372  return 0;
373 }
374 
375 
376 const reco::CandIPTagInfo *
377 Jet::tagInfoCandIP(const std::string &label) const {
378  return tagInfoByTypeOrLabel<reco::CandIPTagInfo>(label);
379 }
380 
381 const reco::TrackIPTagInfo *
382 Jet::tagInfoTrackIP(const std::string &label) const {
383  return tagInfoByTypeOrLabel<reco::TrackIPTagInfo>(label);
384 }
385 
387 Jet::tagInfoCandSoftLepton(const std::string &label) const {
388  return tagInfoByTypeOrLabel<reco::CandSoftLeptonTagInfo>(label);
389 }
390 
392 Jet::tagInfoSoftLepton(const std::string &label) const {
393  return tagInfoByTypeOrLabel<reco::SoftLeptonTagInfo>(label);
394 }
395 
397 Jet::tagInfoCandSecondaryVertex(const std::string &label) const {
398  return tagInfoByTypeOrLabel<reco::CandSecondaryVertexTagInfo>(label);
399 }
400 
402 Jet::tagInfoSecondaryVertex(const std::string &label) const {
403  return tagInfoByTypeOrLabel<reco::SecondaryVertexTagInfo>(label);
404 }
405 
407 Jet::tagInfoBoostedDoubleSV(const std::string &label) const {
408  return tagInfoByTypeOrLabel<reco::BoostedDoubleSVTagInfo>(label);
409 }
410 
411 void
412 Jet::addTagInfo(const std::string &label,
414  std::string::size_type idx = label.find("TagInfos");
415  if (idx == std::string::npos) {
416  tagInfoLabels_.push_back(label);
417  } else {
418  tagInfoLabels_.push_back(label.substr(0,idx));
419  }
420  tagInfosFwdPtr_.push_back(info);
421 }
422 
423 
424 
426 float Jet::jetCharge() const {
427  return jetCharge_;
428 }
429 
431 const reco::TrackRefVector & Jet::associatedTracks() const {
432  return associatedTracks_;
433 }
434 
436 void Jet::setAssociatedTracks(const reco::TrackRefVector &tracks) {
437  associatedTracks_ = tracks;
438 }
439 
441 void Jet::setCaloTowers(const CaloTowerFwdPtrCollection & caloTowers) {
442  caloTowersFwdPtr_.reserve(caloTowers.size());
443  for(auto const& tower : caloTowers) {
444  caloTowersFwdPtr_.push_back( tower );
445  }
446  embeddedCaloTowers_ = true;
447  caloTowersTemp_.reset();
448 }
449 
450 
452 void Jet::setPFCandidates(const PFCandidateFwdPtrCollection & pfCandidates) {
453  pfCandidatesFwdPtr_.reserve(pfCandidates.size());
454  for(auto const& cand : pfCandidates) {
455  pfCandidatesFwdPtr_.push_back(cand);
456  }
457  embeddedPFCandidates_ = true;
458  pfCandidatesTemp_.reset();
459 }
460 
461 
463 void Jet::setGenJetRef(const edm::FwdRef<reco::GenJetCollection> & gj)
464 {
465  genJetFwdRef_ = gj;
466 }
467 
468 
469 
471 void Jet::setPartonFlavour(int partonFl) {
472  jetFlavourInfo_.setPartonFlavour(partonFl);
473 }
474 
476 void Jet::setHadronFlavour(int hadronFl) {
477  jetFlavourInfo_.setHadronFlavour(hadronFl);
478 }
479 
481 void Jet::setJetFlavourInfo(const reco::JetFlavourInfo & jetFlavourInfo) {
482  jetFlavourInfo_ = jetFlavourInfo;
483 }
484 
486 void Jet::addBDiscriminatorPair(const std::pair<std::string, float> & thePair) {
487  pairDiscriVector_.push_back(thePair);
488 }
489 
491 void Jet::setJetCharge(float jetCharge) {
492  jetCharge_ = jetCharge;
493 }
494 
495 
496 
498 void Jet::cacheCaloTowers() const {
499  // Clear the cache
500  // Here is where we've embedded constituents
501  std::unique_ptr<std::vector<CaloTowerPtr>> caloTowersTemp{ new std::vector<CaloTowerPtr>{}};
502  if ( embeddedCaloTowers_ ) {
503  // Refactorized PAT access
504  if ( caloTowersFwdPtr_.size() > 0 ) {
505  caloTowersTemp->reserve(caloTowersFwdPtr_.size());
506  for ( CaloTowerFwdPtrVector::const_iterator ibegin=caloTowersFwdPtr_.begin(),
507  iend = caloTowersFwdPtr_.end(),
508  icalo = ibegin;
509  icalo != iend; ++icalo ) {
510  caloTowersTemp->emplace_back( icalo->ptr() );
511  }
512  }
513  // Compatibility access
514  else if ( caloTowers_.size() > 0 ) {
515  caloTowersTemp->reserve(caloTowers_.size());
516  for ( CaloTowerCollection::const_iterator ibegin=caloTowers_.begin(),
517  iend = caloTowers_.end(),
518  icalo = ibegin;
519  icalo != iend; ++icalo ) {
520  caloTowersTemp->emplace_back( &caloTowers_, icalo - ibegin );
521  }
522  }
523  }
524  // Non-embedded access
525  else {
526  const auto nDaughters = numberOfDaughters();
527  caloTowersTemp->reserve(nDaughters);
528  for ( unsigned fIndex = 0; fIndex < nDaughters; ++fIndex ) {
529  Constituent const & dau = daughterPtr (fIndex);
530  const CaloTower* caloTower = dynamic_cast <const CaloTower*> (dau.get());
531  if (caloTower) {
532  caloTowersTemp->emplace_back( dau.id(), caloTower,dau.key() );
533  }
534  else {
535  throw cms::Exception("Invalid Constituent") << "CaloJet constituent is not of CaloTower type";
536  }
537  }
538  }
539  caloTowersTemp_.set(std::move(caloTowersTemp));
540 }
541 
543 void Jet::cachePFCandidates() const {
544 
545  std::unique_ptr<std::vector<reco::PFCandidatePtr>> pfCandidatesTemp{ new std::vector<reco::PFCandidatePtr>{}};
546  // Here is where we've embedded constituents
547  if ( embeddedPFCandidates_ ) {
548  // Refactorized PAT access
549  if ( pfCandidatesFwdPtr_.size() > 0 ) {
550  pfCandidatesTemp->reserve(pfCandidatesFwdPtr_.size());
551  for ( PFCandidateFwdPtrCollection::const_iterator ibegin=pfCandidatesFwdPtr_.begin(),
552  iend = pfCandidatesFwdPtr_.end(),
553  ipf = ibegin;
554  ipf != iend; ++ipf ) {
555  pfCandidatesTemp->emplace_back( ipf->ptr() );
556  }
557  }
558  // Compatibility access
559  else if ( pfCandidates_.size() > 0 ) {
560  pfCandidatesTemp->reserve(pfCandidates_.size());
561  for ( reco::PFCandidateCollection::const_iterator ibegin=pfCandidates_.begin(),
562  iend = pfCandidates_.end(),
563  ipf = ibegin;
564  ipf != iend; ++ipf ) {
565  pfCandidatesTemp->emplace_back( &pfCandidates_, ipf - ibegin );
566  }
567  }
568  }
569  // Non-embedded access
570  else {
571  const auto nDaughters = numberOfDaughters();
572  pfCandidatesTemp->reserve(nDaughters);
573  for ( unsigned fIndex = 0; fIndex < nDaughters; ++fIndex ) {
574  Constituent const & dau = daughterPtr (fIndex);
575  const reco::PFCandidate* pfCandidate = dynamic_cast <const reco::PFCandidate*> (dau.get());
576  if (pfCandidate) {
577  pfCandidatesTemp->emplace_back( dau.id(), pfCandidate,dau.key() );
578  }
579  else {
580  throw cms::Exception("Invalid Constituent") << "PFJet constituent is not of PFCandidate type";
581  }
582  }
583  }
584  // Set the cache
585  pfCandidatesTemp_.set(std::move(pfCandidatesTemp));
586 }
587 
588 
589 
590 
592 pat::JetPtrCollection const & Jet::subjets( unsigned int index) const {
593  if ( index < subjetCollections_.size() )
594  return subjetCollections_[index];
595  else {
596  throw cms::Exception("OutOfRange") << "Index " << index << " is out of range" << std::endl;
597  }
598 }
599 
600 
602 pat::JetPtrCollection const & Jet::subjets( std::string label ) const {
603  auto found = find( subjetLabels_.begin(), subjetLabels_.end(), label );
604  if ( found != subjetLabels_.end() ){
605  auto index = std::distance( subjetLabels_.begin(), found );
606  return subjetCollections_[index];
607  }
608  else {
609  throw cms::Exception("SubjetsNotFound") << "Label " << label << " does not match any subjet collection" << std::endl;
610  }
611 }
612 
614 void Jet::addSubjets( pat::JetPtrCollection const & pieces, std::string label ) {
615  subjetCollections_.push_back( pieces );
616  subjetLabels_.push_back( label );
617 }
type
Definition: HCALResponse.h:21
value_type const * get() const
Definition: RefToBase.h:234
virtual double pt() const final
transverse momentum
Jet()
default constructor
static const TGPicture * info(bool iBackgroundIsBlack)
Jets made from CaloTowers.
Definition: CaloJet.h:29
bool isAvailable() const
Definition: RefToBase.h:114
virtual double eta() const final
momentum pseudorapidity
CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position
const Specific & getSpecific() const
block accessors
Definition: JPTJet.h:133
Base class for all types of Jets.
Definition: Jet.h:20
std::vector< CaloTower >::const_iterator const_iterator
virtual ~Jet()
Destructor.
Definition: Jet.h:41
bool isNonnull() const
Checks for non-null.
Definition: RefToBase.h:337
const edm::RefToBase< reco::Jet > & getCaloJetRef() const
Definition: JPTJet.h:130
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
uint16_t size_type
Jets made from PFObjects.
Definition: PFJet.h:21
ProductID id() const
Definition: RefToBase.h:242
Definition: HeavyIon.h:7
daughters dau
collection of references to daughters
virtual double phi() const final
momentum azimuthal angle
virtual size_t numberOfDaughters() const
number of daughters
std::ostream & operator<<(std::ostream &, BeamSpot beam)
Definition: BeamSpot.cc:71
Definition: Jet.py:1
size_t key() const
Definition: RefToBase.h:250
Jets made from CaloJets corrected for ZSP and tracks.
Definition: JPTJet.h:29
edm::Ptr< CaloTower > CaloTowerPtr
Definition: CaloTowerFwd.h:12
std::vector< edm::Ptr< pat::Jet > > JetPtrCollection
Definition: Jet.h:75
virtual double energy() const final
energy
Class storing the jet flavour information.
T get() const
get a component
Jets made from MC generator particles.
Definition: GenJet.h:24
unsigned int index
Definition: LeafCandidate.h:31
edm::Ptr< Candidate > Constituent
Definition: Jet.h:22
std::vector< edm::FwdPtr< CaloTower > > CaloTowerFwdPtrCollection
Definition: Jet.h:74
std::vector< edm::FwdPtr< reco::PFCandidate > > PFCandidateFwdPtrCollection
Definition: Jet.h:73
virtual void setP4(const LorentzVector &p4) final
set 4-momentum
Analysis-level calorimeter jet class.
Definition: Jet.h:78
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:39
fixed size matrix
Jet()
Default constructor.
Definition: Jet.h:36
Templated PAT object container.
Definition: PATObject.h:49
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate
static std::string const source
Definition: EdmProvDump.cc:43
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
def move(src, dest)
Definition: eostools.py:510
const Specific & getSpecific() const
Definition: CaloJet.h:149
const Specific & getSpecific() const
Definition: GenJet.h:77