35 minNumberOfjets = iConfig.
getParameter<
int>(
"minNumberOfJets");
39 minDRFromTau = iConfig.
getParameter<
double>(
"minDRFromTau");
49 <<
" Number_events_read " <<
nEvents
50 <<
" Number_events_kept " << nSelectedEvents
51 <<
" Efficiency " << ((double)nSelectedEvents)/((double)
nEvents + 0.01) << std::endl;
61 iEvent.
getByLabel(hltTauLabel, tauTagL3Handle);
63 if ( !tauTagL3Handle.
isValid() )
return false;
68 if (tauTagL3Handle.
isValid() ) {
69 const IsolatedTauTagInfoCollection & L3Taus = *(tauTagL3Handle.
product());
70 IsolatedTauTagInfoCollection::const_iterator
i;
71 for ( i = L3Taus.begin(); i != L3Taus.end(); i++ ) {
72 if (i->discriminator() == 0)
continue;
73 Jet taujet = *(i->jet().get());
74 if (taujet.
et() > maxEt) {
81 if (maxEt == 0)
return false;
88 if ( !jetHandle.
isValid() )
return false;
90 bool accepted =
false;
95 CaloJetCollection::const_iterator iJet;
96 for (iJet = jets.begin(); iJet!= jets.end(); iJet++ ) {
97 if (iJet->et() > jetEtMin &&
98 iJet->eta() > jetEtaMin &&
99 iJet->eta() < jetEtaMax ) {
100 double DR =
deltaR(theTau.
eta(),iJet->eta(),theTau.
phi(),iJet->phi());
101 if (DR > minDRFromTau) nJets++;
104 if (nJets >= minNumberOfjets) {
T getParameter(std::string const &) const
virtual double et() const GCC11_FINAL
transverse energy
Base class for all types of Jets.
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
HeavyChHiggsToTauNuSkim(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual float eta() const GCC11_FINAL
momentum pseudorapidity
double deltaR(double eta1, double eta2, double phi1, double phi2)
~HeavyChHiggsToTauNuSkim()
virtual bool filter(edm::Event &, const edm::EventSetup &)
T const * product() const
std::vector< CaloJet > CaloJetCollection
collection of CaloJet objects