6 #include "TLorentzVector.h" 18 : electronTag_(ps.getUntrackedParameter<
edm::
InputTag>(
"electronInputTag",
edm::
InputTag(
"gedGsfElectrons"))),
21 bjetsTag_(ps.getUntrackedParameter<
edm::
InputTag>(
"bjetsInputTag",
edm::
InputTag(
"pfDeepCSVJetTags",
"probb"))),
31 maxEtaEle_(ps.getUntrackedParameter<double>(
"maxEta", 2.4)),
32 maxEtaMu_(ps.getUntrackedParameter<double>(
"maxEta", 2.1)),
33 minPt_(ps.getUntrackedParameter<double>(
"minPt", 5)),
36 maxDeltaPhiInEB_(ps.getUntrackedParameter<double>(
"maxDeltaPhiInEB", .15)),
37 maxDeltaEtaInEB_(ps.getUntrackedParameter<double>(
"maxDeltaEtaInEB", .007)),
38 maxHOEEB_(ps.getUntrackedParameter<double>(
"maxHOEEB", .12)),
39 maxSigmaiEiEEB_(ps.getUntrackedParameter<double>(
"maxSigmaiEiEEB", .01)),
40 maxDeltaPhiInEE_(ps.getUntrackedParameter<double>(
"maxDeltaPhiInEE", .1)),
41 maxDeltaEtaInEE_(ps.getUntrackedParameter<double>(
"maxDeltaEtaInEE", .009)),
42 maxHOEEE_(ps.getUntrackedParameter<double>(
"maxHOEEB_", .10)),
43 maxSigmaiEiEEE_(ps.getUntrackedParameter<double>(
"maxSigmaiEiEEE", .03)),
46 minChambers_(ps.getUntrackedParameter<uint32_t>(
"minChambers", 2)),
49 minEta_Jets_(ps.getUntrackedParameter<double>(
"minEta_Jets", 3.0)),
52 btagFactor_(ps.getUntrackedParameter<double>(
"btagFactor", 0.6)),
54 maxNormChi2_(ps.getUntrackedParameter<double>(
"maxNormChi2", 10)),
55 maxD0_(ps.getUntrackedParameter<double>(
"maxD0", 0.02)),
56 maxDz_(ps.getUntrackedParameter<double>(
"maxDz", 20.)),
57 minPixelHits_(ps.getUntrackedParameter<uint32_t>(
"minPixelHits", 1)),
58 minStripHits_(ps.getUntrackedParameter<uint32_t>(
"minStripHits", 8)),
59 maxIsoEle_(ps.getUntrackedParameter<double>(
"maxIso", 0.5)),
60 maxIsoMu_(ps.getUntrackedParameter<double>(
"maxIso", 0.3)),
61 minPtHighestMu_(ps.getUntrackedParameter<double>(
"minPtHighestMu", 24)),
62 minPtHighestEle_(ps.getUntrackedParameter<double>(
"minPtHighestEle", 32)),
63 minPtHighest_Jets_(ps.getUntrackedParameter<double>(
"minPtHighest_Jets", 30)),
64 minPt_Jets_(ps.getUntrackedParameter<double>(
"minPt_Jets", 20)),
65 minInvMass_(ps.getUntrackedParameter<double>(
"minInvMass", 140)),
66 maxInvMass_(ps.getUntrackedParameter<double>(
"maxInvMass", 200)),
67 minMet_(ps.getUntrackedParameter<double>(
"minMet", 50)),
68 maxMet_(ps.getUntrackedParameter<double>(
"maxMet", 80)),
69 minWmass_(ps.getUntrackedParameter<double>(
"minWmass", 50)),
70 maxWmass_(ps.getUntrackedParameter<double>(
"maxWmass", 130)) {
71 produces<reco::TrackCollection>(
"");
86 std::vector<TLorentzVector> list_ele;
87 std::vector<int> chrgeList_ele;
93 std::vector<TLorentzVector> list_jets;
96 for (
const auto&
jets : *jetColl) {
101 TLorentzVector lv_jets;
103 list_jets.push_back(lv_jets);
111 std::vector<TLorentzVector> list_bjets;
113 if (!
bTags.empty()) {
114 for (
unsigned bj = 0; bj !=
bTags.size(); ++bj) {
115 TLorentzVector lv_bjets;
116 lv_bjets.SetPtEtaPhiE(
119 list_bjets.push_back(lv_bjets);
123 for (
unsigned int i = 0;
i !=
Jets.size();
i++) {
125 for (
unsigned int j = 0;
j !=
vector.size();
j++) {
126 outputTColl->push_back(*
vector[
j]);
const edm::EDGetTokenT< reco::GsfElectronCollection > electronToken_
void produce(edm::StreamID streamID, edm::Event &iEvent, edm::EventSetup const &iSetup) const override
const double minEta_Jets_
const edm::EDGetTokenT< reco::PFJetCollection > jetsToken_
T const * product() const
std::vector< Track > TrackCollection
collection of Tracks
const edm::EDGetTokenT< reco::BeamSpot > bsToken_
JetFloatAssociation::Container JetTagCollection
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
const edm::EDGetTokenT< reco::JetTagCollection > bjetsToken_
std::vector< Muon > MuonCollection
collection of Muon objects
U second(std::pair< T, U > const &p)
~TtbarTrackProducer() override
#define DEFINE_FWK_MODULE(type)
TtbarTrackProducer(const edm::ParameterSet &)
std::vector< PFJet > PFJetCollection
collection of PFJet objects