16 applyDiscriminationByTrackerIsolation_ = iConfig.
getParameter<
bool>(
"ApplyDiscriminationByTrackerIsolation");
17 TrackerIsolAnnulus_maximumOccupancy_ = iConfig.
getParameter<
unsigned>(
"TrackerIsolAnnulus_maximumOccupancy");
19 applyDiscriminationByECALIsolation_ = iConfig.
getParameter<
bool>(
"ApplyDiscriminationByECALIsolation");
20 EcalIsolAnnulus_maximumSumEtCut_ = iConfig.
getParameter<
double>(
"ECALisolAnnulus_maximumSumEtCut");
22 ~CaloRecoTauDiscriminationByIsolation(){}
23 double discriminate(
const CaloTauRef&)
const override;
25 bool applyDiscriminationByTrackerIsolation_;
26 unsigned TrackerIsolAnnulus_maximumOccupancy_;
27 bool applyDiscriminationByECALIsolation_;
28 double EcalIsolAnnulus_maximumSumEtCut_;
31 double CaloRecoTauDiscriminationByIsolation::discriminate(
const CaloTauRef& caloTau)
const
33 if ( applyDiscriminationByTrackerIsolation_ ){
34 if ( caloTau->isolationTracks().size() > TrackerIsolAnnulus_maximumOccupancy_ )
return 0.;
37 if ( applyDiscriminationByECALIsolation_ ) {
38 if ( caloTau->isolationECALhitsEtSum() > EcalIsolAnnulus_maximumSumEtCut_ )
return 0.;
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)