CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Basic2DGenericPFlowPositionCalc.h
Go to the documentation of this file.
1 #ifndef __Basic2DGenericPFlowPositionCalc_H__
2 #define __Basic2DGenericPFlowPositionCalc_H__
3 
7 
9 
11  public:
14  _posCalcNCrystals(conf.getParameter<int>("posCalcNCrystals")),
15  _logWeightDenom(conf.getParameter<double>("logWeightDenominator")),
16  _minAllowedNorm(conf.getParameter<double>("minAllowedNormalization"))
17 
18  {
20  if( conf.exists("timeResolutionCalcBarrel") ) {
21  const edm::ParameterSet& timeResConf =
22  conf.getParameterSet("timeResolutionCalcBarrel");
24  }
26  if( conf.exists("timeResolutionCalcEndcap") ) {
27  const edm::ParameterSet& timeResConf =
28  conf.getParameterSet("timeResolutionCalcEndcap");
30  }
31  }
34 
37 
38  private:
39  const int _posCalcNCrystals;
40  const double _logWeightDenom;
41  const double _minAllowedNorm;
42 
43  std::unique_ptr<CaloRecHitResolutionProvider> _timeResolutionCalcBarrel;
44  std::unique_ptr<CaloRecHitResolutionProvider> _timeResolutionCalcEndcap;
45 
47 };
48 
51  "Basic2DGenericPFlowPositionCalc");
52 
53 #endif
Basic2DGenericPFlowPositionCalc(const edm::ParameterSet &conf)
void calculateAndSetPositionActual(reco::PFCluster &) const
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
Definition: PFCluster.h:47
bool exists(std::string const &parameterName) const
checks if a parameter exists
#define NULL
Definition: scimark2.h:8
void calculateAndSetPositions(reco::PFClusterCollection &)
tuple conf
Definition: dbtoconf.py:185
ParameterSet const & getParameterSet(std::string const &) const
std::unique_ptr< CaloRecHitResolutionProvider > _timeResolutionCalcBarrel
std::unique_ptr< CaloRecHitResolutionProvider > _timeResolutionCalcEndcap
Basic2DGenericPFlowPositionCalc & operator=(const Basic2DGenericPFlowPositionCalc &)=delete
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
Definition: PFClusterFwd.h:9
#define DEFINE_EDM_PLUGIN(factory, type, name)