Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-03-24 03:14:41

0001 #ifndef MatchedParton_H
0002 #define MatchedParton_H
0003 
0004 #include <vector>
0005 //#include "DataFormats/Candidate/interface/Candidate.h"
0006 //#include "DataFormats/Candidate/interface/CandidateFwd.h"
0007 #include "DataFormats/HepMCCandidate/interface/GenParticle.h"
0008 #include "DataFormats/HepMCCandidate/interface/GenParticleFwd.h"
0009 
0010 namespace reco {
0011 
0012   class MatchedPartons {
0013   public:
0014     MatchedPartons() {}
0015     MatchedPartons(GenParticleRef hv, GenParticleRef n2, GenParticleRef n3, GenParticleRef pd, GenParticleRef ad)
0016         : m_heaviest(hv), m_nearest2(n2), m_nearest3(n3), m_PhysDef(pd), m_AlgoDef(ad) {}
0017 
0018     //Return the ParticleRef for the heaviest flavour in the signal cone
0019     const GenParticleRef heaviest() const { return m_heaviest; }
0020 
0021     //Return the ParticleRef for the nearest parton (status=2)
0022     const GenParticleRef& nearest_status2() const { return m_nearest2; }
0023 
0024     //Return the ParticleRef for the nearest parton (status=3)
0025     const GenParticleRef& nearest_status3() const { return m_nearest3; }
0026 
0027     //Return the ParticleRef for the Physics Definition parton
0028     const GenParticleRef& physicsDefinitionParton() const { return m_PhysDef; }
0029 
0030     //Return the ParticleRef for the Algorithmic Definition parton
0031     const GenParticleRef& algoDefinitionParton() const { return m_AlgoDef; }
0032 
0033   private:
0034     GenParticleRef m_heaviest;
0035     GenParticleRef m_nearest2;
0036     GenParticleRef m_nearest3;
0037     GenParticleRef m_PhysDef;
0038     GenParticleRef m_AlgoDef;
0039   };
0040 
0041 }  // namespace reco
0042 #endif