117 std::vector<std::pair<const pat::TriggerObjectStandAlone *, const SelectedObject *>> selected;
118 for (
const auto &
obj : *src) {
121 selected.emplace_back(&
obj, &
sel);
128 std::map<const pat::TriggerObjectStandAlone *, int> selected_bits;
129 for (
unsigned int i = 0;
i < selected.size(); ++
i) {
130 const auto &
obj = *selected[
i].first;
131 const auto &
sel = *selected[
i].second;
134 for (
unsigned int j = 0;
j <
i; ++
j) {
135 const auto &obj2 = *selected[
j].first;
136 const auto &sel2 = *selected[
j].second;
138 selected_bits[&obj2] |= selected_bits[&
obj];
139 selected.erase(selected.begin() +
i);
156 std::vector<pair<pat::TriggerObjectStandAlone, int>> l1Objects;
162 l1Objects.emplace_back(l1obj, it->hwIso());
168 switch (it->getType()) {
171 l1obj.setCollection(
"L1ETM");
176 l1obj.setCollection(
"L1ETMHF");
181 l1obj.setCollection(
"L1ETT");
186 l1obj.setCollection(
"L1ETEm");
191 l1obj.setCollection(
"L1HTT");
196 l1obj.setCollection(
"L1HTTHF");
201 l1obj.setCollection(
"L1HTM");
206 l1obj.setCollection(
"L1HTMHF");
213 l1Objects.emplace_back(l1obj, it->hwIso());
220 l1Objects.emplace_back(l1obj, it->hwIso());
227 l1obj.setCharge(it->charge());
228 l1Objects.emplace_back(l1obj, it->hwIso());
235 l1Objects.emplace_back(l1obj, it->hwIso());
238 unsigned int nobj = selected.size();
239 std::vector<float>
pt(nobj, 0),
eta(nobj, 0),
phi(nobj, 0), l1pt(nobj, 0), l1pt_2(nobj, 0), l2pt(nobj, 0);
240 std::vector<int>
id(nobj, 0),
bits(nobj, 0), l1iso(nobj, 0), l1charge(nobj, 0);
241 for (
unsigned int i = 0; i < nobj; ++
i) {
242 const auto &
obj = *selected[
i].first;
243 const auto &
sel = *selected[
i].second;
250 float best =
sel.l1DR2;
251 for (
const auto &l1obj : l1Objects) {
252 const auto &
seed = l1obj.first;
254 if (dr2 < best &&
sel.l1cut(
seed)) {
256 l1iso[
i] = l1obj.second;
257 l1charge[
i] =
seed.charge();
261 if (
sel.l1DR2_2 > 0) {
262 float best =
sel.l1DR2_2;
263 for (
const auto &l1obj : l1Objects) {
264 const auto &
seed = l1obj.first;
266 if (dr2 < best &&
sel.l1cut_2(
seed)) {
267 l1pt_2[
i] =
seed.pt();
272 float best =
sel.l2DR2;
273 for (
const auto &
seed : *src) {
275 if (dr2 < best &&
sel.l2cut(
seed)) {
282 auto tab = std::make_unique<nanoaod::FlatTable>(nobj,
name_,
false,
false);
291 tab->addColumn<
float>(
const_iterator end(int bx) const
enum start value shifted to 81 so as to avoid clashes with PDG codes
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 bits
edm::EDGetTokenT< l1t::JetBxCollection > l1Jet_
std::vector< T >::const_iterator const_iterator
edm::EDGetTokenT< std::vector< pat::TriggerObjectStandAlone > > src_
void setCollection(const std::string &collName)
Methods.
edm::EDGetTokenT< l1t::MuonBxCollection > l1Muon_
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< l1t::TauBxCollection > l1Tau_
std::vector< SelectedObject > sels_
edm::EDGetTokenT< l1t::EGammaBxCollection > l1EG_
edm::EDGetTokenT< l1t::EtSumBxCollection > l1Sum_
const_iterator begin(int bx) const
Analysis-level trigger object class (stand-alone)