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  : InitialClusteringStepBase(conf, sumes),
18  invisibleFraction_(conf.getParameter<double>("invisibleFraction")),
19  exclusiveFraction_(conf.getParameter<double>("exclusiveFraction")),
20  maxDistanceFilter_(conf.getParameter<bool>("maxDistanceFilter")),
21  maxDistance_(conf.getParameter<double>("maxDistance")),
22  maxDforTimingSquared_(conf.getParameter<double>("maxDforTimingSquared")),
23  timeOffset_(conf.getParameter<double>("timeOffset")),
24  minNHitsforTiming_(conf.getParameter<unsigned int>("minNHitsforTiming")),
25  useMCFractionsForExclEnergy_(conf.getParameter<bool>("useMCFractionsForExclEnergy")),
26  calibMinEta_(conf.getParameter<double>("calibMinEta")),
27  calibMaxEta_(conf.getParameter<double>("calibMaxEta")) {
29  hadronCalib_ = conf.getParameter<std::vector<double> >("hadronCalib");
30  egammaCalib_ = conf.getParameter<std::vector<double> >("egammaCalib");
31  }
32 
36 
37  void updateEvent(const edm::Event&) final;
38  void update(const edm::EventSetup&) final;
39 
41  const std::vector<bool>&,
42  const std::vector<bool>&,
43  reco::PFClusterCollection&) override;
44 
45 private:
47  const float invisibleFraction_ = 0.3f;
48  const float exclusiveFraction_ = 0.7f;
49  const bool maxDistanceFilter_ = false;
50  const float maxDistance_ = 10.f;
51  const float maxDforTimingSquared_ = 4.0f;
52  const float timeOffset_;
53  const unsigned int minNHitsforTiming_ = 3;
54  const bool useMCFractionsForExclEnergy_ = false;
55  const float calibMinEta_ = 1.4;
56  const float calibMaxEta_ = 3.0;
57  std::vector<double> hadronCalib_;
58  std::vector<double> egammaCalib_;
59 
62 };
63 
65 
66 #endif
reco::PFClusterCollection
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
Definition: PFClusterFwd.h:9
RealisticSimClusterMapper::simClusterH_
edm::Handle< SimClusterCollection > simClusterH_
Definition: RealisticSimClusterMapper.h:61
RealisticSimClusterMapper::maxDistanceFilter_
const bool maxDistanceFilter_
Definition: RealisticSimClusterMapper.h:49
RealisticSimClusterMapper::~RealisticSimClusterMapper
~RealisticSimClusterMapper() override
Definition: RealisticSimClusterMapper.h:33
RealisticSimClusterMapper::maxDistance_
const float maxDistance_
Definition: RealisticSimClusterMapper.h:50
hgcal::RecHitTools
Definition: RecHitTools.h:23
SimClusterCollection
std::vector< SimCluster > SimClusterCollection
Definition: SimClusterFwd.h:8
electrons_cff.bool
bool
Definition: electrons_cff.py:372
InitialClusteringStepBase.h
RealisticSimClusterMapper::hadronCalib_
std::vector< double > hadronCalib_
Definition: RealisticSimClusterMapper.h:57
RealisticSimClusterMapper::update
void update(const edm::EventSetup &) final
Definition: RealisticSimClusterMapper.cc:46
edm::EDGetTokenT< SimClusterCollection >
RealisticSimClusterMapper::egammaCalib_
std::vector< double > egammaCalib_
Definition: RealisticSimClusterMapper.h:58
RealisticSimClusterMapper::simClusterToken_
edm::EDGetTokenT< SimClusterCollection > simClusterToken_
Definition: RealisticSimClusterMapper.h:60
RealisticSimClusterMapper::buildClusters
void buildClusters(const edm::Handle< reco::PFRecHitCollection > &, const std::vector< bool > &, const std::vector< bool > &, reco::PFClusterCollection &) override
Definition: RealisticSimClusterMapper.cc:52
edm::Handle< reco::PFRecHitCollection >
RealisticSimClusterMapper::calibMinEta_
const float calibMinEta_
Definition: RealisticSimClusterMapper.h:55
RealisticSimClusterMapper
Definition: RealisticSimClusterMapper.h:14
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:49
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
edm::ParameterSet
Definition: ParameterSet.h:36
InitialClusteringStepBase
Definition: InitialClusteringStepBase.h:24
edmplugin::PluginFactory
Definition: PluginFactory.h:34
createfilelist.int
int
Definition: createfilelist.py:10
RealisticSimClusterMapper::updateEvent
void updateEvent(const edm::Event &) final
Definition: RealisticSimClusterMapper.cc:44
RealisticSimClusterMapper::minNHitsforTiming_
const unsigned int minNHitsforTiming_
Definition: RealisticSimClusterMapper.h:53
edm::EventSetup
Definition: EventSetup.h:57
SimClusterFwd.h
RealisticSimClusterMapper::useMCFractionsForExclEnergy_
const bool useMCFractionsForExclEnergy_
Definition: RealisticSimClusterMapper.h:54
PFRecHitFraction.h
RealisticSimClusterMapper::maxDforTimingSquared_
const float maxDforTimingSquared_
Definition: RealisticSimClusterMapper.h:51
RealisticSimClusterMapper::calibMaxEta_
const float calibMaxEta_
Definition: RealisticSimClusterMapper.h:56
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
RealisticSimClusterMapper::timeOffset_
const float timeOffset_
Definition: RealisticSimClusterMapper.h:52
RealisticSimClusterMapper::RealisticSimClusterMapper
RealisticSimClusterMapper(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes)
Definition: RealisticSimClusterMapper.h:16
RealisticSimClusterMapper::exclusiveFraction_
const float exclusiveFraction_
Definition: RealisticSimClusterMapper.h:48
RealisticSimClusterMapper::operator=
RealisticSimClusterMapper & operator=(const RealisticSimClusterMapper &)=delete
RealisticSimClusterMapper::rhtools_
hgcal::RecHitTools rhtools_
Definition: RealisticSimClusterMapper.h:46
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
RealisticSimClusterMapper::invisibleFraction_
const float invisibleFraction_
Definition: RealisticSimClusterMapper.h:47
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
RecHitTools.h