CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PseudoTopProducer.h
Go to the documentation of this file.
1 #ifndef TopQuarkAnalysis_TopEventProducers_PseudoTopProducer_H
2 #define TopQuarkAnalysis_TopEventProducers_PseudoTopProducer_H
3 
8 
10 
11 #include "fastjet/JetDefinition.hh"
12 
14 {
15 public:
17  void produce(edm::Event& event, const edm::EventSetup& eventSetup) override;
18 
19 private:
20  bool isFromHadron(const reco::Candidate* p) const;
21  bool isBHadron(const reco::Candidate* p) const;
22  bool isBHadron(const unsigned int pdgId) const;
23 
24  const reco::Candidate* getLast(const reco::Candidate* p);
26  std::auto_ptr<reco::GenParticleCollection>& outColl) const;
27 
29 
30 private:
34  const double wMass_, tMass_;
35 
36  typedef fastjet::JetDefinition JetDef;
37  std::shared_ptr<JetDef> fjLepDef_, fjJetDef_;
39 
40 };
41 
42 #endif
bool isBHadron(const reco::Candidate *p) const
PseudoTopProducer(const edm::ParameterSet &pset)
const double leptonMaxEta_
reco::Particle::Point genVertex_
const double leptonMinPt_
const double jetMaxEta_
edm::EDGetTokenT< edm::View< reco::Candidate > > finalStateToken_
fastjet::JetDefinition JetDef
std::shared_ptr< JetDef > fjJetDef_
bool isFromHadron(const reco::Candidate *p) const
std::shared_ptr< JetDef > fjLepDef_
reco::Particle::LorentzVector LorentzVector
const reco::Candidate * getLast(const reco::Candidate *p)
void produce(edm::Event &event, const edm::EventSetup &eventSetup) override
math::XYZPoint Point
point in the space
Definition: Particle.h:25
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
edm::EDGetTokenT< edm::View< reco::Candidate > > genParticleToken_
reco::GenParticleRef buildGenParticle(const reco::Candidate *p, reco::GenParticleRefProd &refHandle, std::auto_ptr< reco::GenParticleCollection > &outColl) const
const double jetMinPt_
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Particle.h:21