66 enable_sanity_checks_(
config.getUntrackedParameter<
bool>(
"sanity_checks")),
67 inv_mass_checks_(
config.getUntrackedParameter<
bool>(
"inv_mass_checks")),
81 token2_(collection1Cuts_.
tag() == collection2Cuts_.
tag()
84 token3_(collection1Cuts_.
tag() == collection3Cuts_.
tag()
86 : (collection2Cuts_.
tag() == collection3Cuts_.
tag()
89 token4_(collection1Cuts_.
tag() == collection4Cuts_.
tag()
91 : (collection2Cuts_.
tag() == collection4Cuts_.
tag()
93 : (collection3Cuts_.
tag() == collection4Cuts_.
tag()
112 produces<InvariantMassErrorCollection>();
139 desc.addUntracked<
bool>(
"sanity_checks",
false);
140 desc.addUntracked<
bool>(
"inv_mass_checks",
false);
166 L1GTDeltaCut::fillLUTDescriptions(
desc);
177 bool condition_result =
false;
179 std::set<std::size_t> triggeredIdcs1;
180 std::set<std::size_t> triggeredIdcs2;
181 std::set<std::size_t> triggeredIdcs3;
182 std::set<std::size_t> triggeredIdcs4;
186 for (std::size_t idx1 = 0; idx1 < col1->size(); ++idx1) {
187 for (std::size_t idx2 = 0; idx2 < col2->size(); ++idx2) {
188 for (std::size_t idx3 = 0; idx3 < col3->size(); ++idx3) {
189 for (std::size_t idx4 = 0; idx4 < col4->size(); ++idx4) {
226 condition_result |= pass;
229 triggeredIdcs1.emplace(idx1);
232 triggeredIdcs2.emplace(idx2);
234 triggeredIdcs1.emplace(idx2);
238 triggeredIdcs3.emplace(idx3);
240 triggeredIdcs1.emplace(idx3);
242 triggeredIdcs2.emplace(idx3);
247 triggeredIdcs4.emplace(idx4);
249 triggeredIdcs1.emplace(idx4);
251 triggeredIdcs2.emplace(idx4);
253 triggeredIdcs3.emplace(idx4);
261 if (condition_result) {
262 std::unique_ptr<P2GTCandidateVectorRef> triggerCol1 = std::make_unique<P2GTCandidateVectorRef>();
264 for (std::size_t
idx : triggeredIdcs1) {
270 std::unique_ptr<P2GTCandidateVectorRef> triggerCol2 = std::make_unique<P2GTCandidateVectorRef>();
272 for (std::size_t
idx : triggeredIdcs2) {
279 std::unique_ptr<P2GTCandidateVectorRef> triggerCol3 = std::make_unique<P2GTCandidateVectorRef>();
281 for (std::size_t
idx : triggeredIdcs3) {
288 std::unique_ptr<P2GTCandidateVectorRef> triggerCol4 = std::make_unique<P2GTCandidateVectorRef>();
290 for (std::size_t
idx : triggeredIdcs4) {
298 event.put(std::make_unique<InvariantMassErrorCollection>(
std::move(massErrors)),
"");
301 return condition_result;
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
const L1GTSingleCollectionCut collection2Cuts_
bool checkObject(const P2GTCandidate &obj) const
const bool enable_sanity_checks_
std::vector< P2GTCandidate > P2GTCandidateCollection
const edm::EDGetTokenT< P2GTCandidateCollection > token4_
T const * product() const
const edm::InputTag & tag() const
edm::Ref< P2GTCandidateCollection > P2GTCandidateRef
const edm::EDGetTokenT< P2GTCandidateCollection > token1_
std::vector< InvariantMassError > InvariantMassErrorCollection
L1GTQuadObjectCond(const edm::ParameterSet &)
bool filter(edm::StreamID, edm::Event &, edm::EventSetup const &) const override
const L1GTDeltaCut delta12Cuts_
#define DEFINE_FWK_MODULE(type)
bool checkObjects(const P2GTCandidate &obj1, const P2GTCandidate &obj2, InvariantMassErrorCollection &massErrors) const
const edm::EDGetTokenT< P2GTCandidateCollection > token3_
const L1GTSingleCollectionCut collection3Cuts_
const L1GTSingleCollectionCut collection1Cuts_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void fillPSetDescription(edm::ParameterSetDescription &desc)
const L1GTDeltaCut delta23Cuts_
const L1GTDeltaCut delta14Cuts_
static void fillDescriptions(edm::ConfigurationDescriptions &)
const edm::EDGetTokenT< P2GTCandidateCollection > token2_
const bool inv_mass_checks_
const L1GTDeltaCut delta24Cuts_
const L1GTDeltaCut delta13Cuts_
const L1GTSingleCollectionCut collection4Cuts_
const L1GTDeltaCut delta34Cuts_