27 inputJetTag_ (iConfig.
template getParameter<
edm::InputTag > (
"inputJetTag")),
28 minPtJet_ (iConfig.
template getParameter<double> (
"minPtJet")),
29 minPtAve_ (iConfig.
template getParameter<double> (
"minPtAve")),
31 minDphi_ (iConfig.
template getParameter<double> (
"minDphi")),
32 tagEtaMin_ (iConfig.
template getParameter<double> (
"minTagEta")),
33 tagEtaMax_ (iConfig.
template getParameter<double> (
"maxTagEta")),
34 probeEtaMin_ (iConfig.
template getParameter<double> (
"minProbeEta")),
35 probeEtaMax_ (iConfig.
template getParameter<double> (
"maxProbeEta")),
36 triggerType_ (iConfig.
template getParameter<
int> (
"triggerType"))
39 LogDebug(
"") <<
"HLTDiJetAveEtaFilter: Input/minPtAve/minDphi/triggerType : " 56 desc.
add<
double>(
"minPtAve",100.0);
57 desc.
add<
double>(
"minPtJet",50.0);
59 desc.
add<
double>(
"minDphi",-1.0);
60 desc.
add<
double>(
"minTagEta", -1.);
61 desc.
add<
double>(
"maxTagEta", 1.4);
62 desc.
add<
double>(
"minProbeEta", 2.7);
63 desc.
add<
double>(
"maxProbeEta", 5.5);
78 typedef vector<T> TCollection;
90 if(objects->size() > 1){
91 typename TCollection::const_iterator iProbe ( objects->begin() );
92 typename TCollection::const_iterator iEnd ( objects->end() );
93 for (; iProbe!=iEnd; ++iProbe) {
100 bool isProbe =
false;
112 if (!isProbe)
continue;
114 typename TCollection::const_iterator iTag ( objects->begin() );
115 for (;iTag != iEnd; ++iTag){
116 if (iTag==iProbe)
continue;
119 if ( eta2 < tagEtaMin_ || eta2 >
tagEtaMax_ )
continue;
125 double ptAve = (iProbe->pt() + iTag->pt())/2;
edm::EDGetTokenT< std::vector< T > > m_theJetToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::string defaultModuleLabel()
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
void addObject(int id, const reco::RecoEcalCandidateRef &ref)
setters for L3 collections: (id=physics type, and Ref<C>)
edm::InputTag inputJetTag_
HLTDiJetAveEtaFilter(const edm::ParameterSet &)
bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
Abs< T >::type abs(const T &t)
~HLTDiJetAveEtaFilter() override
def template(fileName, svg, replaceme="REPLACEME")
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
void addCollectionTag(const edm::InputTag &collectionTag)
collectionTags
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)