CMS 3D CMS Logo

TtDilepEvtSolutionMaker.h
Go to the documentation of this file.
1 #include <string>
2 #include <vector>
3 
8 
11 
13 
15 public:
16  explicit TtDilepEvtSolutionMaker(const edm::ParameterSet& iConfig);
17  ~TtDilepEvtSolutionMaker() override;
18 
19  void beginJob() override;
20  void produce(edm::Event& iEvent, const edm::EventSetup& iSetup) override;
21 
22 private:
23  // next methods are avoidable but they make the code legible
24  inline bool PTComp(const reco::Candidate*, const reco::Candidate*) const;
25  inline bool LepDiffCharge(const reco::Candidate*, const reco::Candidate*) const;
26  inline bool HasPositiveCharge(const reco::Candidate*) const;
27 
28 private:
36  unsigned int nrCombJets_;
40  std::vector<double> nupars_;
41 
44 };
45 
46 inline bool TtDilepEvtSolutionMaker::PTComp(const reco::Candidate* l1, const reco::Candidate* l2) const {
47  return (l1->pt() > l2->pt());
48 }
49 
51  return (l1->charge() != l2->charge());
52 }
53 
54 inline bool TtDilepEvtSolutionMaker::HasPositiveCharge(const reco::Candidate* l) const { return (l->charge() > 0); }
TtDilepEvtSolutionMaker::muonSourceToken_
edm::EDGetTokenT< std::vector< pat::Muon > > muonSourceToken_
Definition: TtDilepEvtSolutionMaker.h:30
TtDilepEvtSolutionMaker::tauSourceToken_
edm::EDGetTokenT< std::vector< pat::Tau > > tauSourceToken_
Definition: TtDilepEvtSolutionMaker.h:31
TtDilepEvtSolutionMaker::emuChannel_
bool emuChannel_
Definition: TtDilepEvtSolutionMaker.h:38
EDProducer.h
TtDilepEvtSolutionMaker
Definition: TtDilepEvtSolutionMaker.h:14
TtDilepEvtSolutionMaker::matchToGenEvt_
bool matchToGenEvt_
Definition: TtDilepEvtSolutionMaker.h:37
edm::EDGetTokenT
Definition: EDGetToken.h:33
TtDilepEvtSolutionMaker::metSourceToken_
edm::EDGetTokenT< std::vector< pat::MET > > metSourceToken_
Definition: TtDilepEvtSolutionMaker.h:32
reco::Candidate::pt
virtual double pt() const =0
transverse momentum
TtDilepEvtSolutionMaker::produce
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition: TtDilepEvtSolutionMaker.cc:51
TtDilepEvtSolutionMaker::tautauChannel_
bool tautauChannel_
Definition: TtDilepEvtSolutionMaker.h:38
TtDilepEvtSolutionMaker::jetSourceToken_
edm::EDGetTokenT< std::vector< pat::Jet > > jetSourceToken_
Definition: TtDilepEvtSolutionMaker.h:33
TtDilepEvtSolutionMaker::HasPositiveCharge
bool HasPositiveCharge(const reco::Candidate *) const
Definition: TtDilepEvtSolutionMaker.h:54
TtFullLepKinSolver.h
TtDilepEvtSolutionMaker::mumuChannel_
bool mumuChannel_
Definition: TtDilepEvtSolutionMaker.h:38
TtDilepEvtSolutionMaker::evtSourceToken_
edm::EDGetTokenT< TtGenEvent > evtSourceToken_
Definition: TtDilepEvtSolutionMaker.h:34
reco::Candidate::charge
virtual int charge() const =0
electric charge
TtDilepEvtSolutionMaker::etauChannel_
bool etauChannel_
Definition: TtDilepEvtSolutionMaker.h:38
TtDilepEvtSolutionMaker::nrCombJets_
unsigned int nrCombJets_
Definition: TtDilepEvtSolutionMaker.h:36
TtDilepEvtSolutionMaker::mutauChannel_
bool mutauChannel_
Definition: TtDilepEvtSolutionMaker.h:38
TtDilepEvtSolutionMaker::TtDilepEvtSolutionMaker
TtDilepEvtSolutionMaker(const edm::ParameterSet &iConfig)
Definition: TtDilepEvtSolutionMaker.cc:15
TtDilepEvtSolutionMaker::PTComp
bool PTComp(const reco::Candidate *, const reco::Candidate *) const
Definition: TtDilepEvtSolutionMaker.h:46
TtDilepEvtSolutionMaker::tmassstep_
double tmassstep_
Definition: TtDilepEvtSolutionMaker.h:39
edm::ParameterSet
Definition: ParameterSet.h:36
TtDilepEvtSolutionMaker::nupars_
std::vector< double > nupars_
Definition: TtDilepEvtSolutionMaker.h:40
Event.h
TtDilepEvtSolutionMaker::electronSourceToken_
edm::EDGetTokenT< std::vector< pat::Electron > > electronSourceToken_
Definition: TtDilepEvtSolutionMaker.h:29
TtDilepEvtSolutionMaker::tmassend_
double tmassend_
Definition: TtDilepEvtSolutionMaker.h:39
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:57
TtDilepEvtSolutionMaker::tmassbegin_
double tmassbegin_
Definition: TtDilepEvtSolutionMaker.h:39
TtDilepEvtSolutionMaker::useMCforBest_
bool useMCforBest_
Definition: TtDilepEvtSolutionMaker.h:37
InputTag.h
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:193
reco::Candidate
Definition: Candidate.h:27
TtDilepEvtSolutionMaker::myLRSignalSelObservables
TtDilepLRSignalSelObservables * myLRSignalSelObservables
Definition: TtDilepEvtSolutionMaker.h:42
TtDilepEvtSolutionMaker::solver
TtFullLepKinSolver * solver
Definition: TtDilepEvtSolutionMaker.h:43
TtDilepEvtSolutionMaker::calcTopMass_
bool calcTopMass_
Definition: TtDilepEvtSolutionMaker.h:37
TtDilepEvtSolutionMaker::jetCorrScheme_
int jetCorrScheme_
Definition: TtDilepEvtSolutionMaker.h:35
edm::EDProducer
Definition: EDProducer.h:36
TtDilepEvtSolutionMaker::beginJob
void beginJob() override
Definition: TtDilepEvtSolutionMaker.cc:47
Candidate.h
ParameterSet.h
TtDilepLRSignalSelObservables
Definition: TtDilepLRSignalSelObservables.h:16
TtDilepEvtSolutionMaker::eeChannel_
bool eeChannel_
Definition: TtDilepEvtSolutionMaker.h:38
edm::Event
Definition: Event.h:73
TtFullLepKinSolver
Definition: TtFullLepKinSolver.h:25
TtDilepEvtSolutionMaker::LepDiffCharge
bool LepDiffCharge(const reco::Candidate *, const reco::Candidate *) const
Definition: TtDilepEvtSolutionMaker.h:50
TtDilepEvtSolutionMaker::~TtDilepEvtSolutionMaker
~TtDilepEvtSolutionMaker() override
Definition: TtDilepEvtSolutionMaker.cc:45