19 applyDiscriminationByTrackerIsolation_ = iConfig.
getParameter<
bool>(
"ApplyDiscriminationByTrackerIsolation");
20 TrackerIsolAnnulus_maximumOccupancy_ = iConfig.
getParameter<
unsigned>(
"TrackerIsolAnnulus_maximumOccupancy");
22 applyDiscriminationByECALIsolation_ = iConfig.
getParameter<
bool>(
"ApplyDiscriminationByECALIsolation");
23 EcalIsolAnnulus_maximumSumEtCut_ = iConfig.
getParameter<
double>(
"ECALisolAnnulus_maximumSumEtCut");
25 ~CaloRecoTauDiscriminationByIsolation()
override{}
26 double discriminate(
const CaloTauRef&)
const override;
30 bool applyDiscriminationByTrackerIsolation_;
31 unsigned TrackerIsolAnnulus_maximumOccupancy_;
32 bool applyDiscriminationByECALIsolation_;
33 double EcalIsolAnnulus_maximumSumEtCut_;
36 double CaloRecoTauDiscriminationByIsolation::discriminate(
const CaloTauRef& caloTau)
const 38 if ( applyDiscriminationByTrackerIsolation_ ){
39 if ( caloTau->isolationTracks().size() > TrackerIsolAnnulus_maximumOccupancy_ )
return 0.;
42 if ( applyDiscriminationByECALIsolation_ ) {
43 if ( caloTau->isolationECALhitsEtSum() > EcalIsolAnnulus_maximumSumEtCut_ )
return 0.;
56 desc.
add<
bool>(
"ApplyDiscriminationByTrackerIsolation");
57 desc.
add<
unsigned>(
"TrackerIsolAnnulus_maximumOccupancy");
58 desc.
add<
bool>(
"ApplyDiscriminationByECALIsolation");
59 desc.
add<
double>(
"ECALisolAnnulus_maximumSumEtCut");
61 fillProducerDescriptions(desc);
63 descriptions.
add(
"caloRecoTauDiscriminationByIsolation", desc);
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)