CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  const std::string & theLabel = ((aLabel == "" || aLabel == "default")) ? "trackCountingHighEffBJetTags" : aLabel;
356  for(unsigned int i=0; i!=pairDiscriVector_.size(); i++){
357  if(pairDiscriVector_[i].first == theLabel){
358  discriminator = pairDiscriVector_[i].second;
359  }
360  }
361  return discriminator;
362 }
363 
364 const reco::BaseTagInfo * Jet::tagInfo(const std::string &label) const {
365  std::vector<std::string>::const_iterator it = std::find(tagInfoLabels_.begin(), tagInfoLabels_.end(), label);
366  if (it != tagInfoLabels_.end()) {
367  if ( tagInfosFwdPtr_.size() > 0 ) return tagInfosFwdPtr_[it - tagInfoLabels_.begin()].get();
368  else if ( tagInfos_.size() > 0 ) return & tagInfos_[it - tagInfoLabels_.begin()];
369  return 0;
370  }
371  return 0;
372 }
373 
374 
375 const reco::CandIPTagInfo *
376 Jet::tagInfoCandIP(const std::string &label) const {
377  return tagInfoByTypeOrLabel<reco::CandIPTagInfo>(label);
378 }
379 
380 const reco::TrackIPTagInfo *
381 Jet::tagInfoTrackIP(const std::string &label) const {
382  return tagInfoByTypeOrLabel<reco::TrackIPTagInfo>(label);
383 }
384 
386 Jet::tagInfoCandSoftLepton(const std::string &label) const {
387  return tagInfoByTypeOrLabel<reco::CandSoftLeptonTagInfo>(label);
388 }
389 
391 Jet::tagInfoSoftLepton(const std::string &label) const {
392  return tagInfoByTypeOrLabel<reco::SoftLeptonTagInfo>(label);
393 }
394 
396 Jet::tagInfoCandSecondaryVertex(const std::string &label) const {
397  return tagInfoByTypeOrLabel<reco::CandSecondaryVertexTagInfo>(label);
398 }
399 
401 Jet::tagInfoSecondaryVertex(const std::string &label) const {
402  return tagInfoByTypeOrLabel<reco::SecondaryVertexTagInfo>(label);
403 }
404 
405 void
406 Jet::addTagInfo(const std::string &label,
408  std::string::size_type idx = label.find("TagInfos");
409  if (idx == std::string::npos) {
410  tagInfoLabels_.push_back(label);
411  } else {
412  tagInfoLabels_.push_back(label.substr(0,idx));
413  }
414  tagInfosFwdPtr_.push_back(info);
415 }
416 
417 
418 
420 float Jet::jetCharge() const {
421  return jetCharge_;
422 }
423 
425 const reco::TrackRefVector & Jet::associatedTracks() const {
426  return associatedTracks_;
427 }
428 
430 void Jet::setAssociatedTracks(const reco::TrackRefVector &tracks) {
431  associatedTracks_ = tracks;
432 }
433 
435 void Jet::setCaloTowers(const CaloTowerFwdPtrCollection & caloTowers) {
436  caloTowersFwdPtr_.reserve(caloTowers.size());
437  for(auto const& tower : caloTowers) {
438  caloTowersFwdPtr_.push_back( tower );
439  }
440  embeddedCaloTowers_ = true;
441  caloTowersTemp_.reset();
442 }
443 
444 
446 void Jet::setPFCandidates(const PFCandidateFwdPtrCollection & pfCandidates) {
447  pfCandidatesFwdPtr_.reserve(pfCandidates.size());
448  for(auto const& cand : pfCandidates) {
449  pfCandidatesFwdPtr_.push_back(cand);
450  }
451  embeddedPFCandidates_ = true;
452  pfCandidatesTemp_.reset();
453 }
454 
455 
457 void Jet::setGenJetRef(const edm::FwdRef<reco::GenJetCollection> & gj)
458 {
459  genJetFwdRef_ = gj;
460 }
461 
462 
463 
465 void Jet::setPartonFlavour(int partonFl) {
466  jetFlavourInfo_.setPartonFlavour(partonFl);
467 }
468 
470 void Jet::setHadronFlavour(int hadronFl) {
471  jetFlavourInfo_.setHadronFlavour(hadronFl);
472 }
473 
475 void Jet::setJetFlavourInfo(const reco::JetFlavourInfo & jetFlavourInfo) {
476  jetFlavourInfo_ = jetFlavourInfo;
477 }
478 
480 void Jet::addBDiscriminatorPair(const std::pair<std::string, float> & thePair) {
481  pairDiscriVector_.push_back(thePair);
482 }
483 
485 void Jet::setJetCharge(float jetCharge) {
486  jetCharge_ = jetCharge;
487 }
488 
489 
490 
492 void Jet::cacheCaloTowers() const {
493  // Clear the cache
494  // Here is where we've embedded constituents
495  std::unique_ptr<std::vector<CaloTowerPtr>> caloTowersTemp{ new std::vector<CaloTowerPtr>{}};
496  if ( embeddedCaloTowers_ ) {
497  // Refactorized PAT access
498  if ( caloTowersFwdPtr_.size() > 0 ) {
499  caloTowersTemp->reserve(caloTowersFwdPtr_.size());
500  for ( CaloTowerFwdPtrVector::const_iterator ibegin=caloTowersFwdPtr_.begin(),
501  iend = caloTowersFwdPtr_.end(),
502  icalo = ibegin;
503  icalo != iend; ++icalo ) {
504  caloTowersTemp->emplace_back( icalo->ptr() );
505  }
506  }
507  // Compatibility access
508  else if ( caloTowers_.size() > 0 ) {
509  caloTowersTemp->reserve(caloTowers_.size());
510  for ( CaloTowerCollection::const_iterator ibegin=caloTowers_.begin(),
511  iend = caloTowers_.end(),
512  icalo = ibegin;
513  icalo != iend; ++icalo ) {
514  caloTowersTemp->emplace_back( &caloTowers_, icalo - ibegin );
515  }
516  }
517  }
518  // Non-embedded access
519  else {
520  const auto nDaughters = numberOfDaughters();
521  caloTowersTemp->reserve(nDaughters);
522  for ( unsigned fIndex = 0; fIndex < nDaughters; ++fIndex ) {
523  Constituent const & dau = daughterPtr (fIndex);
524  const CaloTower* caloTower = dynamic_cast <const CaloTower*> (dau.get());
525  if (caloTower) {
526  caloTowersTemp->emplace_back( dau.id(), caloTower,dau.key() );
527  }
528  else {
529  throw cms::Exception("Invalid Constituent") << "CaloJet constituent is not of CaloTower type";
530  }
531  }
532  }
533  caloTowersTemp_.set(std::move(caloTowersTemp));
534 }
535 
537 void Jet::cachePFCandidates() const {
538 
539  std::unique_ptr<std::vector<reco::PFCandidatePtr>> pfCandidatesTemp{ new std::vector<reco::PFCandidatePtr>{}};
540  // Here is where we've embedded constituents
541  if ( embeddedPFCandidates_ ) {
542  // Refactorized PAT access
543  if ( pfCandidatesFwdPtr_.size() > 0 ) {
544  pfCandidatesTemp->reserve(pfCandidatesFwdPtr_.size());
545  for ( PFCandidateFwdPtrCollection::const_iterator ibegin=pfCandidatesFwdPtr_.begin(),
546  iend = pfCandidatesFwdPtr_.end(),
547  ipf = ibegin;
548  ipf != iend; ++ipf ) {
549  pfCandidatesTemp->emplace_back( ipf->ptr() );
550  }
551  }
552  // Compatibility access
553  else if ( pfCandidates_.size() > 0 ) {
554  pfCandidatesTemp->reserve(pfCandidates_.size());
555  for ( reco::PFCandidateCollection::const_iterator ibegin=pfCandidates_.begin(),
556  iend = pfCandidates_.end(),
557  ipf = ibegin;
558  ipf != iend; ++ipf ) {
559  pfCandidatesTemp->emplace_back( &pfCandidates_, ipf - ibegin );
560  }
561  }
562  }
563  // Non-embedded access
564  else {
565  const auto nDaughters = numberOfDaughters();
566  pfCandidatesTemp->reserve(nDaughters);
567  for ( unsigned fIndex = 0; fIndex < nDaughters; ++fIndex ) {
568  Constituent const & dau = daughterPtr (fIndex);
569  const reco::PFCandidate* pfCandidate = dynamic_cast <const reco::PFCandidate*> (dau.get());
570  if (pfCandidate) {
571  pfCandidatesTemp->emplace_back( dau.id(), pfCandidate,dau.key() );
572  }
573  else {
574  throw cms::Exception("Invalid Constituent") << "PFJet constituent is not of PFCandidate type";
575  }
576  }
577  }
578  // Set the cache
579  pfCandidatesTemp_.set(std::move(pfCandidatesTemp));
580 }
581 
582 
583 
584 
586 pat::JetPtrCollection const & Jet::subjets( unsigned int index) const {
587  if ( index < subjetCollections_.size() )
588  return subjetCollections_[index];
589  else {
590  throw cms::Exception("OutOfRange") << "Index " << index << " is out of range" << std::endl;
591  }
592 }
593 
594 
596 pat::JetPtrCollection const & Jet::subjets( std::string label ) const {
597  auto found = find( subjetLabels_.begin(), subjetLabels_.end(), label );
598  if ( found != subjetLabels_.end() ){
599  auto index = std::distance( subjetLabels_.begin(), found );
600  return subjetCollections_[index];
601  }
602  else {
603  throw cms::Exception("SubjetsNotFound") << "Label " << label << " does not match any subjet collection" << std::endl;
604  }
605 }
606 
608 void Jet::addSubjets( pat::JetPtrCollection const & pieces, std::string label ) {
609  subjetCollections_.push_back( pieces );
610  subjetLabels_.push_back( label );
611 }
type
Definition: HCALResponse.h:21
value_type const * get() const
Definition: RefToBase.h:212
Jet()
default constructor
int i
Definition: DBlmapReader.cc:9
static const TGPicture * info(bool iBackgroundIsBlack)
Jets made from CaloTowers.
Definition: CaloJet.h:29
bool isAvailable() const
Definition: RefToBase.h:112
const Specific & getSpecific() const
block accessors
Definition: JPTJet.h:133
tuple pieces
Definition: csv2json.py:31
Base class for all types of Jets.
Definition: Jet.h:20
std::vector< CaloTower >::const_iterator const_iterator
virtual void setP4(const LorentzVector &p4)
set 4-momentum
bool isNonnull() const
Checks for non-null.
Definition: RefToBase.h:279
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:7
uint16_t size_type
Jets made from PFObjects.
Definition: PFJet.h:21
ProductID id() const
Definition: RefToBase.h:220
virtual double eta() const
momentum pseudorapidity
virtual double pt() const
transverse momentum
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
virtual size_t numberOfDaughters() const
number of daughters
virtual double energy() const
energy
virtual size_t numberOfDaughters() const
number of daughters
virtual const Candidate * daughter(size_type) const
return daughter at a given position (throws an exception)
std::ostream & operator<<(std::ostream &, BeamSpot beam)
Definition: BeamSpot.cc:71
size_t key() const
Definition: RefToBase.h:228
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:74
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
Container::value_type value_type
tuple out
Definition: dbtoconf.py:99
tuple tracks
Definition: testEve_cfg.py:39
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
std::vector< edm::FwdPtr< CaloTower > > CaloTowerFwdPtrCollection
Definition: Jet.h:73
std::vector< edm::FwdPtr< reco::PFCandidate > > PFCandidateFwdPtrCollection
Definition: Jet.h:72
Analysis-level calorimeter jet class.
Definition: Jet.h:77
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:39
Jet()
Definition: Jet.h:16
Templated PAT object container.
Definition: PATObject.h:41
tuple level
Definition: testEve_cfg.py:34
volatile std::atomic< bool > shutdown_flag false
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate
virtual double phi() const
momentum azimuthal angle
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
~Jet()
Definition: Jet.cc:24
static std::string const source
Definition: EdmProvDump.cc:42
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
const Specific & getSpecific() const
Definition: CaloJet.h:149