58 enable_sanity_checks_(
config.getUntrackedParameter<
bool>(
"sanity_checks")),
59 inv_mass_checks_(
config.getUntrackedParameter<
bool>(
"inv_mass_checks")),
67 token2_(collection1Cuts_.
tag() == collection2Cuts_.
tag()
70 token3_(collection1Cuts_.
tag() == collection3Cuts_.
tag()
72 : (collection2Cuts_.
tag() == collection3Cuts_.
tag()
86 produces<InvariantMassErrorCollection>();
109 desc.addUntracked<
bool>(
"sanity_checks",
false);
110 desc.addUntracked<
bool>(
"inv_mass_checks",
false);
124 L1GTDeltaCut::fillLUTDescriptions(
desc);
134 bool condition_result =
false;
136 std::set<std::size_t> triggeredIdcs1;
137 std::set<std::size_t> triggeredIdcs2;
138 std::set<std::size_t> triggeredIdcs3;
142 for (std::size_t idx1 = 0; idx1 < col1->size(); ++idx1) {
143 for (std::size_t idx2 = 0; idx2 < col2->size(); ++idx2) {
144 for (std::size_t idx3 = 0; idx3 < col3->size(); ++idx3) {
166 condition_result |= pass;
169 triggeredIdcs1.emplace(idx1);
172 triggeredIdcs2.emplace(idx2);
174 triggeredIdcs1.emplace(idx2);
178 triggeredIdcs3.emplace(idx3);
180 triggeredIdcs1.emplace(idx3);
182 triggeredIdcs2.emplace(idx3);
189 if (condition_result) {
190 std::unique_ptr<P2GTCandidateVectorRef> triggerCol1 = std::make_unique<P2GTCandidateVectorRef>();
192 for (std::size_t
idx : triggeredIdcs1) {
198 std::unique_ptr<P2GTCandidateVectorRef> triggerCol2 = std::make_unique<P2GTCandidateVectorRef>();
200 for (std::size_t
idx : triggeredIdcs2) {
207 std::unique_ptr<P2GTCandidateVectorRef> triggerCol3 = std::make_unique<P2GTCandidateVectorRef>();
209 for (std::size_t
idx : triggeredIdcs3) {
217 event.put(std::make_unique<InvariantMassErrorCollection>(
std::move(massErrors)),
"");
220 return condition_result;
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
L1GTTripleObjectCond(const edm::ParameterSet &)
bool checkObject(const P2GTCandidate &obj) const
std::vector< P2GTCandidate > P2GTCandidateCollection
const L1GTSingleCollectionCut collection2Cuts_
const L1GTDeltaCut delta13Cuts_
T const * product() const
const edm::InputTag & tag() const
edm::Ref< P2GTCandidateCollection > P2GTCandidateRef
bool filter(edm::StreamID, edm::Event &, edm::EventSetup const &) const override
std::vector< InvariantMassError > InvariantMassErrorCollection
const edm::EDGetTokenT< P2GTCandidateCollection > token2_
const L1GTDeltaCut delta23Cuts_
const bool inv_mass_checks_
#define DEFINE_FWK_MODULE(type)
bool checkObjects(const P2GTCandidate &obj1, const P2GTCandidate &obj2, InvariantMassErrorCollection &massErrors) const
const L1GTSingleCollectionCut collection1Cuts_
const edm::EDGetTokenT< P2GTCandidateCollection > token3_
static void fillDescriptions(edm::ConfigurationDescriptions &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void fillPSetDescription(edm::ParameterSetDescription &desc)
const bool enable_sanity_checks_
const L1GTDeltaCut delta12Cuts_
const L1GTSingleCollectionCut collection3Cuts_
const edm::EDGetTokenT< P2GTCandidateCollection > token1_