28 template<
typename T1,
typename T2>
31 originTag1_(iConfig.
template getParameter<
std::vector<
edm::InputTag> >(
"originTag1")),
32 originTag2_(iConfig.
template getParameter<
std::vector<
edm::InputTag> >(
"originTag2")),
33 inputTag1_(iConfig.
template getParameter<
edm::InputTag>(
"inputTag1")),
34 inputTag2_(iConfig.
template getParameter<
edm::InputTag>(
"inputTag2")),
35 inputToken1_(consumes<
trigger::TriggerFilterObjectWithRefs>(inputTag1_)),
36 inputToken2_(consumes<
trigger::TriggerFilterObjectWithRefs>(inputTag2_)),
38 triggerType1_(iConfig.
template getParameter<
int>(
"triggerType1")),
39 triggerType2_(iConfig.
template getParameter<
int>(
"triggerType2")),
40 minDR_ (iConfig.
template getParameter<double>(
"MinDR")),
41 maxDZ_ (iConfig.
template getParameter<double>(
"MaxDZ")),
42 minPixHitsForDZ_ (iConfig.
template getParameter<
int>(
"MinPixHitsForDZ")),
43 min_N_ (iConfig.
template getParameter<
int>(
"MinN")),
44 checkSC_ (iConfig.
template getParameter<
bool>(
"checkSC")),
128 template<
typename T1,
typename T2>
132 template<
typename T1,
typename T2>
137 std::vector<edm::InputTag> originTag1(1,
edm::InputTag(
"hltOriginal1"));
138 std::vector<edm::InputTag> originTag2(1,
edm::InputTag(
"hltOriginal2"));
139 desc.
add<std::vector<edm::InputTag> >(
"originTag1",originTag1);
140 desc.
add<std::vector<edm::InputTag> >(
"originTag2",originTag2);
143 desc.
add<
int>(
"triggerType1",0);
144 desc.
add<
int>(
"triggerType2",0);
145 desc.
add<
double>(
"MinDR",-1.0);
146 desc.
add<
double>(
"MaxDZ",0.2);
147 desc.
add<
int>(
"MinPixHitsForDZ",0);
148 desc.
add<
bool>(
"checkSC",
false);
149 desc.
add<
int>(
"MinN",1);
158 std::vector<edm::InputTag> originTag1(1,
edm::InputTag(
"hltOriginal1"));
159 std::vector<edm::InputTag> originTag2(1,
edm::InputTag(
"hltOriginal2"));
160 desc.
add<std::vector<edm::InputTag> >(
"originTag1",originTag1);
161 desc.
add<std::vector<edm::InputTag> >(
"originTag2",originTag2);
165 desc.
add<
int>(
"triggerType1",0);
166 desc.
add<
int>(
"triggerType2",0);
167 desc.
add<
double>(
"MinDR",-1.0);
168 desc.
add<
double>(
"MaxDZ",0.2);
169 desc.
add<
int>(
"MinPixHitsForDZ",0);
170 desc.
add<
bool>(
"checkSC",
false);
171 desc.
add<
int>(
"MinN",1);
180 std::vector<edm::InputTag> originTag1(1,
edm::InputTag(
"hltOriginal1"));
181 std::vector<edm::InputTag> originTag2(1,
edm::InputTag(
"hltOriginal2"));
182 desc.
add<std::vector<edm::InputTag> >(
"originTag1",originTag1);
183 desc.
add<std::vector<edm::InputTag> >(
"originTag2",originTag2);
187 desc.
add<
int>(
"triggerType1",0);
188 desc.
add<
int>(
"triggerType2",0);
189 desc.
add<
double>(
"MinDR",-1.0);
190 desc.
add<
double>(
"MaxDZ",0.2);
191 desc.
add<
int>(
"MinPixHitsForDZ",0);
192 desc.
add<
bool>(
"checkSC",
false);
193 desc.
add<
int>(
"MinN",1);
202 std::vector<edm::InputTag> originTag1(1,
edm::InputTag(
"hltOriginal1"));
203 std::vector<edm::InputTag> originTag2(1,
edm::InputTag(
"hltOriginal2"));
204 desc.
add<std::vector<edm::InputTag> >(
"originTag1",originTag1);
205 desc.
add<std::vector<edm::InputTag> >(
"originTag2",originTag2);
209 desc.
add<
int>(
"triggerType1",0);
210 desc.
add<
int>(
"triggerType2",0);
211 desc.
add<
double>(
"MinDR",-1.0);
212 desc.
add<
double>(
"MaxDZ",0.2);
213 desc.
add<
int>(
"MinPixHitsForDZ",0);
214 desc.
add<
bool>(
"checkSC",
false);
215 desc.
add<
int>(
"MinN",1);
224 std::vector<edm::InputTag> originTag1(1,
edm::InputTag(
"hltOriginal1"));
225 std::vector<edm::InputTag> originTag2(1,
edm::InputTag(
"hltOriginal2"));
226 desc.
add<std::vector<edm::InputTag> >(
"originTag1",originTag1);
227 desc.
add<std::vector<edm::InputTag> >(
"originTag2",originTag2);
230 desc.
add<
int>(
"triggerType1",0);
231 desc.
add<
int>(
"triggerType2",0);
232 desc.
add<
double>(
"MinDR",-1.0);
233 desc.
add<
double>(
"MaxDZ",0.2);
234 desc.
add<
int>(
"MinPixHitsForDZ",0);
235 desc.
add<
bool>(
"checkSC",
false);
236 desc.
add<
int>(
"MinN",1);
240 template<
typename T1,
typename T2>
266 if (tagOld.
encode()!=tagNew.encode()) {
281 if (tagOld.
encode()!=tagNew.encode()) {
293 template<
typename T1,
typename T2>
314 if (!electronHandle_.
isValid())
315 edm::LogError(
"HLTDoubletDZ") <<
"HLTDoubletDZ: Electron Handle not valid.";
320 for(
auto const & eleIt : *electronHandle_) {
321 if (eleIt.superCluster() == r1->superCluster())
343 if (!electronHandle_.
isValid())
344 edm::LogError(
"HLTDoubletDZ") <<
"HLTDoubletDZ: Electron Handle not valid.";
349 for(
auto const & eleIt : *electronHandle_) {
350 if (eleIt.superCluster() == r2->superCluster())
372 if (!electronHandle_.
isValid())
373 edm::LogError(
"HLTDoubletDZ") <<
"HLTDoubletDZ: Electron Handle not valid.";
378 for(
auto const & eleIt : *electronHandle_) {
379 if (eleIt.superCluster() == r2->superCluster())
381 if (eleIt.superCluster() == r1->superCluster())
417 template<
typename T1,
typename T2>
427 std::vector<T1Ref> coll1;
428 std::vector<T2Ref> coll2;
435 for (
unsigned int i1=0; i1!=coll1.size(); i1++) {
440 for (
unsigned int i2=I; i2!=coll2.size(); i2++) {
444 if (r1->superCluster() == r2->superCluster())
continue;
457 accept = accept || (n>=
min_N_);
edm::EDGetTokenT< reco::ElectronCollection > electronToken_
HLTDoubletDZ(const edm::ParameterSet &)
void getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
bool isNonnull() const
Checks for non-null.
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > inputToken1_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const std::vector< edm::InputTag > originTag1_
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > inputToken2_
const std::vector< edm::InputTag > originTag2_
static PFTauRenderPlugin instance
bool getByToken(EDGetToken token, Handle< PROD > &result) const
HLTDoubletDZ< reco::RecoEcalCandidate, reco::RecoChargedCandidate > HLT2PhotonMuonDZ
std::string defaultModuleLabel()
HLTDoubletDZ< reco::Electron, reco::Electron > HLT2ElectronElectronDZ
std::string const & processName() const
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
bool getCollections(edm::Event &iEvent, std::vector< T1Ref > &coll1, std::vector< T2Ref > &coll2, trigger::TriggerFilterObjectWithRefs &filterproduct) const
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void addObject(int id, const reco::RecoEcalCandidateRef &ref)
setters for L3 collections: (id=physics type, and Ref<C>)
const edm::InputTag inputTag1_
#define DEFINE_FWK_MODULE(type)
bool computeDZ(edm::Event &iEvent, T1Ref &c1, T2Ref &c2) const
bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
const edm::InputTag inputTag2_
Abs< T >::type abs(const T &t)
const std::complex< double > I
reco::TrackRef track() const override
reference to a track
def template(fileName, svg, replaceme="REPLACEME")
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< Electron > ElectronCollection
collectin of Electron objects
HLTDoubletDZ< reco::RecoChargedCandidate, reco::RecoChargedCandidate > HLT2MuonMuonDZ
const int minPixHitsForDZ_
HLTDoubletDZ< reco::Electron, reco::RecoChargedCandidate > HLT2ElectronMuonDZ
double vz() const override
z coordinate of vertex position
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
HLTDoubletDZ< reco::RecoEcalCandidate, reco::RecoEcalCandidate > HLT2PhotonPhotonDZ
reco::GsfTrackRef gsfTrack() const override
reference to a GsfTrack
void addCollectionTag(const edm::InputTag &collectionTag)
collectionTags
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::string const & moduleLabel() const
HLTDoubletDZ< reco::RecoChargedCandidate, reco::RecoEcalCandidate > HLT2MuonPhotonDZ
virtual double vz() const =0
z coordinate of vertex position
std::string const & productInstanceName() const
Provenance getProvenance(BranchID const &theID) const