CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TCRecoTauDiscriminationAgainstHadronicJets.cc
Go to the documentation of this file.
1 /*
2  * class TCRecoTauDiscriminationAgainstHadronicJets
3  * created : April 21 2010,
4  * revised : ,
5  * Authors : Sami Lehti (HIP)
6  */
7 
10 
11 using namespace reco;
12 
14  public:
16  tcTauAlgorithm(iConfig, consumesCollector()) {
17  }
19 
20  double discriminate(const CaloTauRef& theCaloTauRef) const override;
21  void beginEvent(const edm::Event&, const edm::EventSetup&) override;
22 
23  private:
25 };
26 
28  tcTauAlgorithm.eventSetup(iEvent,iSetup);
29 }
30 
31 
33  auto algoused = TCTauAlgorithm::TCAlgoUndetermined;
34  tcTauAlgorithm.recalculateEnergy(*theCaloTauRef, algoused);
35  return (algoused != TCTauAlgorithm::TCAlgoHadronicJet) ? 1. : 0.;
36 }
37 
int iEvent
Definition: GenABIO.cc:230
double discriminate(const CaloTauRef &theCaloTauRef) const override
void beginEvent(const edm::Event &, const edm::EventSetup &) override
DEFINE_FWK_MODULE(CosmicTrackingParticleSelector)