19 explicit CaloRecoTauDiscriminationByTauPolarization(
23 booleanOutput = iConfig.
getParameter<
bool>(
"BooleanOutput");
26 ~CaloRecoTauDiscriminationByTauPolarization()
override{}
27 double discriminate(
const CaloTauRef&)
const override;
36 CaloRecoTauDiscriminationByTauPolarization::discriminate(
const CaloTauRef&
tau)
const {
39 rTau = tau->leadTrack()->p()/tau->p();
40 if(booleanOutput)
return ( rTau > rTauMin ? 1. : 0. );
55 psd1.
add<
double>(
"cut");
61 desc.
add<
double>(
"rtau", 0.8);
63 desc.add<
bool>(
"BooleanOutput",
true);
64 descriptions.add(
"caloRecoTauDiscriminationByTauPolarization", desc);
T getParameter(std::string const &) const
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
bool isNonnull() const
Checks for non-null.
#define DEFINE_FWK_MODULE(type)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)