45 #include "TLorentzVector.h" 116 desc.addUntracked<
double>(
"maxEtaEle", 2.4);
117 desc.addUntracked<
double>(
"maxEtaMu", 2.1);
118 desc.addUntracked<
double>(
"minPt", 5);
121 desc.addUntracked<
double>(
"maxDeltaPhiInEB", .15);
122 desc.addUntracked<
double>(
"maxDeltaEtaInEB", .007);
123 desc.addUntracked<
double>(
"maxHOEEB", .12);
124 desc.addUntracked<
double>(
"maxSigmaiEiEEB", .01);
125 desc.addUntracked<
double>(
"maxDeltaPhiInEE", .1);
126 desc.addUntracked<
double>(
"maxDeltaEtaInEE", .009);
127 desc.addUntracked<
double>(
"maxHOEEB_", .10);
128 desc.addUntracked<
double>(
"maxSigmaiEiEEE", .03);
131 desc.addUntracked<uint32_t>(
"minChambers", 2);
134 desc.addUntracked<
double>(
"minEta_Jets", 3.0);
137 desc.addUntracked<
double>(
"btagFactor", 0.6);
139 desc.addUntracked<
double>(
"maxNormChi2", 10);
140 desc.addUntracked<
double>(
"maxD0", 0.02);
141 desc.addUntracked<
double>(
"maxDz", 20.);
142 desc.addUntracked<uint32_t>(
"minPixelHits", 1);
143 desc.addUntracked<uint32_t>(
"minStripHits", 8);
144 desc.addUntracked<
double>(
"maxIsoEle", 0.5);
145 desc.addUntracked<
double>(
"maxIsoMu", 0.3);
146 desc.addUntracked<
double>(
"minPtHighestMu", 24);
147 desc.addUntracked<
double>(
"minPtHighestEle", 32);
148 desc.addUntracked<
double>(
"minPtHighest_Jets", 30);
149 desc.addUntracked<
double>(
"minPt_Jets", 20);
150 desc.addUntracked<
double>(
"minInvMass", 140);
151 desc.addUntracked<
double>(
"maxInvMass", 200);
152 desc.addUntracked<
double>(
"minMet", 50);
153 desc.addUntracked<
double>(
"maxMet", 80);
154 desc.addUntracked<
double>(
"minWmass", 50);
155 desc.addUntracked<
double>(
"maxWmass", 130);
163 : electronTag_(ps.getUntrackedParameter<
edm::
InputTag>(
"electronInputTag",
edm::
InputTag(
"gedGsfElectrons"))),
166 bjetsTag_(ps.getUntrackedParameter<
edm::
InputTag>(
"bjetsInputTag",
edm::
InputTag(
"pfDeepCSVJetTags",
"probb"))),
176 maxEtaEle_(ps.getUntrackedParameter<double>(
"maxEtaEle", 2.4)),
177 maxEtaMu_(ps.getUntrackedParameter<double>(
"maxEtaMu", 2.1)),
178 minPt_(ps.getUntrackedParameter<double>(
"minPt", 5)),
181 maxDeltaPhiInEB_(ps.getUntrackedParameter<double>(
"maxDeltaPhiInEB", .15)),
182 maxDeltaEtaInEB_(ps.getUntrackedParameter<double>(
"maxDeltaEtaInEB", .007)),
183 maxHOEEB_(ps.getUntrackedParameter<double>(
"maxHOEEB", .12)),
184 maxSigmaiEiEEB_(ps.getUntrackedParameter<double>(
"maxSigmaiEiEEB", .01)),
185 maxDeltaPhiInEE_(ps.getUntrackedParameter<double>(
"maxDeltaPhiInEE", .1)),
186 maxDeltaEtaInEE_(ps.getUntrackedParameter<double>(
"maxDeltaEtaInEE", .009)),
187 maxHOEEE_(ps.getUntrackedParameter<double>(
"maxHOEEB_", .10)),
188 maxSigmaiEiEEE_(ps.getUntrackedParameter<double>(
"maxSigmaiEiEEE", .03)),
191 minChambers_(ps.getUntrackedParameter<uint32_t>(
"minChambers", 2)),
194 minEta_Jets_(ps.getUntrackedParameter<double>(
"minEta_Jets", 3.0)),
197 btagFactor_(ps.getUntrackedParameter<double>(
"btagFactor", 0.6)),
199 maxNormChi2_(ps.getUntrackedParameter<double>(
"maxNormChi2", 10)),
200 maxD0_(ps.getUntrackedParameter<double>(
"maxD0", 0.02)),
201 maxDz_(ps.getUntrackedParameter<double>(
"maxDz", 20.)),
202 minPixelHits_(ps.getUntrackedParameter<uint32_t>(
"minPixelHits", 1)),
203 minStripHits_(ps.getUntrackedParameter<uint32_t>(
"minStripHits", 8)),
204 maxIsoEle_(ps.getUntrackedParameter<double>(
"maxIsoEle", 0.5)),
205 maxIsoMu_(ps.getUntrackedParameter<double>(
"maxIsoMu", 0.3)),
206 minPtHighestMu_(ps.getUntrackedParameter<double>(
"minPtHighestMu", 24)),
207 minPtHighestEle_(ps.getUntrackedParameter<double>(
"minPtHighestEle", 32)),
208 minPtHighest_Jets_(ps.getUntrackedParameter<double>(
"minPtHighest_Jets", 30)),
209 minPt_Jets_(ps.getUntrackedParameter<double>(
"minPt_Jets", 20)),
210 minInvMass_(ps.getUntrackedParameter<double>(
"minInvMass", 140)),
211 maxInvMass_(ps.getUntrackedParameter<double>(
"maxInvMass", 200)),
212 minMet_(ps.getUntrackedParameter<double>(
"minMet", 50)),
213 maxMet_(ps.getUntrackedParameter<double>(
"maxMet", 80)),
214 minWmass_(ps.getUntrackedParameter<double>(
"minWmass", 50)),
215 maxWmass_(ps.getUntrackedParameter<double>(
"maxWmass", 130)) {
216 produces<reco::TrackCollection>(
"");
229 std::vector<TLorentzVector> list_ele;
230 std::vector<int> chrgeList_ele;
236 std::vector<TLorentzVector> list_jets;
239 for (
const auto&
jets : *jetColl) {
244 TLorentzVector lv_jets;
246 list_jets.push_back(lv_jets);
256 std::vector<TLorentzVector> list_bjets;
258 if (!
bTags.empty()) {
259 for (
unsigned bj = 0; bj !=
bTags.size(); ++bj) {
260 TLorentzVector lv_bjets;
261 lv_bjets.SetPtEtaPhiE(
264 list_bjets.push_back(lv_bjets);
269 for (
unsigned int i = 0;
i !=
Jets.size();
i++) {
271 for (
unsigned int j = 0;
j !=
vector.size();
j++) {
272 outputTColl->push_back(*
vector[
j]);
const double maxSigmaiEiEEE_
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
const edm::EDGetTokenT< reco::GsfElectronCollection > electronToken_
const double maxSigmaiEiEEB_
void produce(edm::StreamID streamID, edm::Event &iEvent, edm::EventSetup const &iSetup) const override
const double maxDeltaPhiInEE_
const double minEta_Jets_
const edm::InputTag electronTag_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< reco::PFJetCollection > jetsToken_
T const * product() const
std::vector< Track > TrackCollection
collection of Tracks
const edm::InputTag bsTag_
const edm::EDGetTokenT< reco::BeamSpot > bsToken_
const edm::InputTag pfmetTag_
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
const double minPtHighestEle_
U second(std::pair< T, U > const &p)
const double maxNormChi2_
const double minPtHighestMu_
const edm::InputTag jetsTag_
~TtbarTrackProducer() override=default
#define DEFINE_FWK_MODULE(type)
const double maxDeltaPhiInEB_
const edm::InputTag muonTag_
const double minPtHighest_Jets_
const edm::InputTag bjetsTag_
const double maxDeltaEtaInEE_
const double minChambers_
TtbarTrackProducer(const edm::ParameterSet &)
std::vector< PFJet > PFJetCollection
collection of PFJet objects
const edm::EDGetTokenT< reco::MuonCollection > muonToken_
const edm::EDGetTokenT< reco::PFMETCollection > pfmetToken_
const double maxDeltaEtaInEB_