test
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  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 
406 void
407 Jet::addTagInfo(const std::string &label,
409  std::string::size_type idx = label.find("TagInfos");
410  if (idx == std::string::npos) {
411  tagInfoLabels_.push_back(label);
412  } else {
413  tagInfoLabels_.push_back(label.substr(0,idx));
414  }
415  tagInfosFwdPtr_.push_back(info);
416 }
417 
418 
419 
421 float Jet::jetCharge() const {
422  return jetCharge_;
423 }
424 
426 const reco::TrackRefVector & Jet::associatedTracks() const {
427  return associatedTracks_;
428 }
429 
431 void Jet::setAssociatedTracks(const reco::TrackRefVector &tracks) {
432  associatedTracks_ = tracks;
433 }
434 
436 void Jet::setCaloTowers(const CaloTowerFwdPtrCollection & caloTowers) {
437  caloTowersFwdPtr_.reserve(caloTowers.size());
438  for(auto const& tower : caloTowers) {
439  caloTowersFwdPtr_.push_back( tower );
440  }
441  embeddedCaloTowers_ = true;
442  caloTowersTemp_.reset();
443 }
444 
445 
447 void Jet::setPFCandidates(const PFCandidateFwdPtrCollection & pfCandidates) {
448  pfCandidatesFwdPtr_.reserve(pfCandidates.size());
449  for(auto const& cand : pfCandidates) {
450  pfCandidatesFwdPtr_.push_back(cand);
451  }
452  embeddedPFCandidates_ = true;
453  pfCandidatesTemp_.reset();
454 }
455 
456 
458 void Jet::setGenJetRef(const edm::FwdRef<reco::GenJetCollection> & gj)
459 {
460  genJetFwdRef_ = gj;
461 }
462 
463 
464 
466 void Jet::setPartonFlavour(int partonFl) {
467  jetFlavourInfo_.setPartonFlavour(partonFl);
468 }
469 
471 void Jet::setHadronFlavour(int hadronFl) {
472  jetFlavourInfo_.setHadronFlavour(hadronFl);
473 }
474 
476 void Jet::setJetFlavourInfo(const reco::JetFlavourInfo & jetFlavourInfo) {
477  jetFlavourInfo_ = jetFlavourInfo;
478 }
479 
481 void Jet::addBDiscriminatorPair(const std::pair<std::string, float> & thePair) {
482  pairDiscriVector_.push_back(thePair);
483 }
484 
486 void Jet::setJetCharge(float jetCharge) {
487  jetCharge_ = jetCharge;
488 }
489 
490 
491 
493 void Jet::cacheCaloTowers() const {
494  // Clear the cache
495  // Here is where we've embedded constituents
496  std::unique_ptr<std::vector<CaloTowerPtr>> caloTowersTemp{ new std::vector<CaloTowerPtr>{}};
497  if ( embeddedCaloTowers_ ) {
498  // Refactorized PAT access
499  if ( caloTowersFwdPtr_.size() > 0 ) {
500  caloTowersTemp->reserve(caloTowersFwdPtr_.size());
501  for ( CaloTowerFwdPtrVector::const_iterator ibegin=caloTowersFwdPtr_.begin(),
502  iend = caloTowersFwdPtr_.end(),
503  icalo = ibegin;
504  icalo != iend; ++icalo ) {
505  caloTowersTemp->emplace_back( icalo->ptr() );
506  }
507  }
508  // Compatibility access
509  else if ( caloTowers_.size() > 0 ) {
510  caloTowersTemp->reserve(caloTowers_.size());
511  for ( CaloTowerCollection::const_iterator ibegin=caloTowers_.begin(),
512  iend = caloTowers_.end(),
513  icalo = ibegin;
514  icalo != iend; ++icalo ) {
515  caloTowersTemp->emplace_back( &caloTowers_, icalo - ibegin );
516  }
517  }
518  }
519  // Non-embedded access
520  else {
521  const auto nDaughters = numberOfDaughters();
522  caloTowersTemp->reserve(nDaughters);
523  for ( unsigned fIndex = 0; fIndex < nDaughters; ++fIndex ) {
524  Constituent const & dau = daughterPtr (fIndex);
525  const CaloTower* caloTower = dynamic_cast <const CaloTower*> (dau.get());
526  if (caloTower) {
527  caloTowersTemp->emplace_back( dau.id(), caloTower,dau.key() );
528  }
529  else {
530  throw cms::Exception("Invalid Constituent") << "CaloJet constituent is not of CaloTower type";
531  }
532  }
533  }
534  caloTowersTemp_.set(std::move(caloTowersTemp));
535 }
536 
538 void Jet::cachePFCandidates() const {
539 
540  std::unique_ptr<std::vector<reco::PFCandidatePtr>> pfCandidatesTemp{ new std::vector<reco::PFCandidatePtr>{}};
541  // Here is where we've embedded constituents
542  if ( embeddedPFCandidates_ ) {
543  // Refactorized PAT access
544  if ( pfCandidatesFwdPtr_.size() > 0 ) {
545  pfCandidatesTemp->reserve(pfCandidatesFwdPtr_.size());
546  for ( PFCandidateFwdPtrCollection::const_iterator ibegin=pfCandidatesFwdPtr_.begin(),
547  iend = pfCandidatesFwdPtr_.end(),
548  ipf = ibegin;
549  ipf != iend; ++ipf ) {
550  pfCandidatesTemp->emplace_back( ipf->ptr() );
551  }
552  }
553  // Compatibility access
554  else if ( pfCandidates_.size() > 0 ) {
555  pfCandidatesTemp->reserve(pfCandidates_.size());
556  for ( reco::PFCandidateCollection::const_iterator ibegin=pfCandidates_.begin(),
557  iend = pfCandidates_.end(),
558  ipf = ibegin;
559  ipf != iend; ++ipf ) {
560  pfCandidatesTemp->emplace_back( &pfCandidates_, ipf - ibegin );
561  }
562  }
563  }
564  // Non-embedded access
565  else {
566  const auto nDaughters = numberOfDaughters();
567  pfCandidatesTemp->reserve(nDaughters);
568  for ( unsigned fIndex = 0; fIndex < nDaughters; ++fIndex ) {
569  Constituent const & dau = daughterPtr (fIndex);
570  const reco::PFCandidate* pfCandidate = dynamic_cast <const reco::PFCandidate*> (dau.get());
571  if (pfCandidate) {
572  pfCandidatesTemp->emplace_back( dau.id(), pfCandidate,dau.key() );
573  }
574  else {
575  throw cms::Exception("Invalid Constituent") << "PFJet constituent is not of PFCandidate type";
576  }
577  }
578  }
579  // Set the cache
580  pfCandidatesTemp_.set(std::move(pfCandidatesTemp));
581 }
582 
583 
584 
585 
587 pat::JetPtrCollection const & Jet::subjets( unsigned int index) const {
588  if ( index < subjetCollections_.size() )
589  return subjetCollections_[index];
590  else {
591  throw cms::Exception("OutOfRange") << "Index " << index << " is out of range" << std::endl;
592  }
593 }
594 
595 
597 pat::JetPtrCollection const & Jet::subjets( std::string label ) const {
598  auto found = find( subjetLabels_.begin(), subjetLabels_.end(), label );
599  if ( found != subjetLabels_.end() ){
600  auto index = std::distance( subjetLabels_.begin(), found );
601  return subjetCollections_[index];
602  }
603  else {
604  throw cms::Exception("SubjetsNotFound") << "Label " << label << " does not match any subjet collection" << std::endl;
605  }
606 }
607 
609 void Jet::addSubjets( pat::JetPtrCollection const & pieces, std::string label ) {
610  subjetCollections_.push_back( pieces );
611  subjetLabels_.push_back( label );
612 }
type
Definition: HCALResponse.h:21
value_type const * get() const
Definition: RefToBase.h:234
Jet()
default constructor
int i
Definition: DBlmapReader.cc:9
static const TGPicture * info(bool iBackgroundIsBlack)
Jets made from CaloTowers.
Definition: CaloJet.h:29
virtual double energy() const final
energy
bool isAvailable() const
Definition: RefToBase.h:114
CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position
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
tuple discriminator
virtual double phi() const final
momentum azimuthal angle
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:7
uint16_t size_type
Jets made from PFObjects.
Definition: PFJet.h:21
ProductID id() const
Definition: RefToBase.h:242
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
daughters dau
collection of references to daughters
virtual size_t numberOfDaughters() const
number of daughters
std::ostream & operator<<(std::ostream &, BeamSpot beam)
Definition: BeamSpot.cc:71
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:74
def move
Definition: eostools.py:510
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
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
virtual void setP4(const LorentzVector &p4) final
set 4-momentum
Analysis-level calorimeter jet class.
Definition: Jet.h:77
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:39
Jet()
Default constructor.
Definition: Jet.h:36
Templated PAT object container.
Definition: PATObject.h:49
tuple level
Definition: testEve_cfg.py:34
virtual double eta() const final
momentum pseudorapidity
volatile std::atomic< bool > shutdown_flag false
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate
static std::string const source
Definition: EdmProvDump.cc:43
virtual const LorentzVector & p4() const final
four-momentum Lorentz vector
Definition: LeafCandidate.h:99
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
virtual double pt() const final
transverse momentum
const Specific & getSpecific() const
Definition: CaloJet.h:149