CMS 3D CMS Logo

RealisticSimClusterMapper.h
Go to the documentation of this file.
1 #ifndef __RecoParticleFlow_PFClusterProducer_RealisticSimClusterMapper_H__
2 #define __RecoParticleFlow_PFClusterProducer_RealisticSimClusterMapper_H__
3 // Author: Felice Pantaleo
5 // Date: 30/06/2017
6 // Email: felice@cern.ch
11 
13 
15  public:
17  edm::ConsumesCollector& sumes) :
18  InitialClusteringStepBase(conf,sumes),
19  invisibleFraction_(conf.getParameter<double>("invisibleFraction")),
20  exclusiveFraction_(conf.getParameter<double>("exclusiveFraction")),
21  maxDistanceFilter_(conf.getParameter<bool>("maxDistanceFilter")),
22  maxDistance_(conf.getParameter<double>("maxDistance")),
23  useMCFractionsForExclEnergy_(conf.getParameter<bool>("useMCFractionsForExclEnergy")),
24  calibMinEta_(conf.getParameter<double>("calibMinEta")),
25  calibMaxEta_(conf.getParameter<double>("calibMaxEta"))
26  {
28  hadronCalib_ = conf.getParameter < std::vector<double> > ("hadronCalib");
29  egammaCalib_ = conf.getParameter < std::vector<double> > ("egammaCalib");
30  }
31 
35 
36  void updateEvent(const edm::Event&) final;
37  void update(const edm::EventSetup&) final;
38 
40  const std::vector<bool>&,
41  const std::vector<bool>&,
42  reco::PFClusterCollection&) override;
43 
44  private:
46  const float invisibleFraction_ = 0.3f;
47  const float exclusiveFraction_ = 0.7f;
48  const bool maxDistanceFilter_ = false;
49  const float maxDistance_ = 10.f;
50  const bool useMCFractionsForExclEnergy_ = false;
51  const float calibMinEta_ = 1.4;
52  const float calibMaxEta_ = 3.0;
53  std::vector<double> hadronCalib_;
54  std::vector<double> egammaCalib_;
55 
58 
59 };
60 
63  "RealisticSimClusterMapper");
64 
65 #endif
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
void buildClusters(const edm::Handle< reco::PFRecHitCollection > &, const std::vector< bool > &, const std::vector< bool > &, reco::PFClusterCollection &) override
RealisticSimClusterMapper & operator=(const RealisticSimClusterMapper &)=delete
void update(const edm::EventSetup &) final
edm::EDGetTokenT< SimClusterCollection > simClusterToken_
std::vector< double > egammaCalib_
void updateEvent(const edm::Event &) final
std::vector< double > hadronCalib_
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
Definition: PFClusterFwd.h:9
#define DEFINE_EDM_PLUGIN(factory, type, name)
edm::Handle< SimClusterCollection > simClusterH_
RealisticSimClusterMapper(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes)
std::vector< SimCluster > SimClusterCollection
Definition: SimClusterFwd.h:8