CMS 3D CMS Logo

CITKIsolationConeDefinitionBase.h
Go to the documentation of this file.
1 #ifndef IsolationAlgos_CITKIsolationConeDefinitionBase_H
2 #define IsolationAlgos_CITKIsolationConeDefinitionBase_H
3 
5 
8 
11 
13 
14 #include <unordered_map>
15 
16 namespace citk {
18  public:
20  : _coneSize2(std::pow(c.getParameter<double>("coneSize"), 2.0)),
21  _name(c.getParameter<std::string>("isolationAlgo")) {}
24 
25  virtual void getEventSetupInfo(const edm::EventSetup&) {}
26  virtual void getEventInfo(const edm::Event&) {}
27  virtual void setConsumes(edm::ConsumesCollector) = 0;
28 
29  virtual bool isInIsolationCone(const reco::CandidatePtr& physob, const reco::CandidatePtr& other) const = 0;
30 
31  const std::string& name() const { return _name; }
32 
33  const std::string& additionalCode() const { return _additionalCode; }
34 
37 
38  protected:
39  const float _coneSize2;
41 
42  private:
44  };
45 } // namespace citk
46 
50 
51 #endif
citk::IsolationConeDefinitionBase::additionalCode
const std::string & additionalCode() const
Definition: CITKIsolationConeDefinitionBase.h:33
PluginFactory.h
citk::IsolationConeDefinitionBase::isInIsolationCone
virtual bool isInIsolationCone(const reco::CandidatePtr &physob, const reco::CandidatePtr &other) const =0
citk::IsolationConeDefinitionBase::_name
const std::string _name
Definition: CITKIsolationConeDefinitionBase.h:43
citk::IsolationConeDefinitionBase::getEventInfo
virtual void getEventInfo(const edm::Event &)
Definition: CITKIsolationConeDefinitionBase.h:26
citk
Definition: CITKIsolationConeDefinitionBase.h:16
CandidateFwd.h
citk::IsolationConeDefinitionBase
Definition: CITKIsolationConeDefinitionBase.h:17
citk::IsolationConeDefinitionBase::getEventSetupInfo
virtual void getEventSetupInfo(const edm::EventSetup &)
Definition: CITKIsolationConeDefinitionBase.h:25
trackingPlots.other
other
Definition: trackingPlots.py:1465
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
citk::IsolationConeDefinitionBase::name
const std::string & name() const
Definition: CITKIsolationConeDefinitionBase.h:31
edmplugin::PluginFactory
Definition: PluginFactory.h:34
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
edm::Ptr< Candidate >
citk::IsolationConeDefinitionBase::_coneSize2
const float _coneSize2
Definition: CITKIsolationConeDefinitionBase.h:36
std
Definition: JetResolutionObject.h:76
citk::IsolationConeDefinitionBase::_additionalCode
std::string _additionalCode
Definition: CITKIsolationConeDefinitionBase.h:40
citk::IsolationConeDefinitionBase::~IsolationConeDefinitionBase
virtual ~IsolationConeDefinitionBase()
Destructor.
Definition: CITKIsolationConeDefinitionBase.h:36
EventSetup.h
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
citk::IsolationConeDefinitionBase::operator=
IsolationConeDefinitionBase & operator=(const IsolationConeDefinitionBase &)=delete
ConsumesCollector.h
Candidate.h
ParameterSet.h
edm::Event
Definition: Event.h:73
citk::IsolationConeDefinitionBase::setConsumes
virtual void setConsumes(edm::ConsumesCollector)=0
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
citk::IsolationConeDefinitionBase::IsolationConeDefinitionBase
IsolationConeDefinitionBase(const edm::ParameterSet &c)
Definition: CITKIsolationConeDefinitionBase.h:19