RecoParticleFlow
PFClusterProducer
plugins
SpikeAndDoubleSpikeCleaner.h
Go to the documentation of this file.
1
#ifndef __SpikeAndDoubleSpikeCleaner_H__
2
#define __SpikeAndDoubleSpikeCleaner_H__
3
4
#include "
RecoParticleFlow/PFClusterProducer/interface/RecHitTopologicalCleanerBase.h
"
5
#include "
DataFormats/HcalRecHit/interface/HFRecHit.h
"
6
7
#include <unordered_map>
8
9
class
SpikeAndDoubleSpikeCleaner
:
public
RecHitTopologicalCleanerBase
{
10
public
:
11
struct
spike_cleaning
{
12
double
_singleSpikeThresh
;
13
double
_minS4S1_a
;
14
double
_minS4S1_b
;
15
double
_doubleSpikeS6S2
;
16
double
_eneThreshMod
;
17
double
_fracThreshMod
;
18
double
_doubleSpikeThresh
;
19
};
20
21
SpikeAndDoubleSpikeCleaner
(
const
edm::ParameterSet
& conf);
22
SpikeAndDoubleSpikeCleaner
(
const
SpikeAndDoubleSpikeCleaner
&) =
delete
;
23
SpikeAndDoubleSpikeCleaner
&
operator=
(
const
SpikeAndDoubleSpikeCleaner
&) =
delete
;
24
25
void
clean
(
const
edm::Handle<reco::PFRecHitCollection>
&
input
, std::vector<bool>& mask)
override
;
26
27
private
:
28
const
std::unordered_map<std::string, int>
_layerMap
;
29
std::unordered_map<int, spike_cleaning>
_thresholds
;
30
};
31
32
DEFINE_EDM_PLUGIN
(
RecHitTopologicalCleanerFactory
,
SpikeAndDoubleSpikeCleaner
,
"SpikeAndDoubleSpikeCleaner"
);
33
34
#endif
input
static const std::string input
Definition:
EdmProvDump.cc:48
SpikeAndDoubleSpikeCleaner::spike_cleaning::_singleSpikeThresh
double _singleSpikeThresh
Definition:
SpikeAndDoubleSpikeCleaner.h:12
SpikeAndDoubleSpikeCleaner::spike_cleaning::_minS4S1_b
double _minS4S1_b
Definition:
SpikeAndDoubleSpikeCleaner.h:14
SpikeAndDoubleSpikeCleaner::_thresholds
std::unordered_map< int, spike_cleaning > _thresholds
Definition:
SpikeAndDoubleSpikeCleaner.h:29
SpikeAndDoubleSpikeCleaner::operator=
SpikeAndDoubleSpikeCleaner & operator=(const SpikeAndDoubleSpikeCleaner &)=delete
SpikeAndDoubleSpikeCleaner::spike_cleaning::_eneThreshMod
double _eneThreshMod
Definition:
SpikeAndDoubleSpikeCleaner.h:16
edm::Handle
Definition:
AssociativeIterator.h:50
HFRecHit.h
SpikeAndDoubleSpikeCleaner::spike_cleaning::_minS4S1_a
double _minS4S1_a
Definition:
SpikeAndDoubleSpikeCleaner.h:13
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:124
RecHitTopologicalCleanerBase.h
SpikeAndDoubleSpikeCleaner::clean
void clean(const edm::Handle< reco::PFRecHitCollection > &input, std::vector< bool > &mask) override
Definition:
SpikeAndDoubleSpikeCleaner.cc:103
edm::ParameterSet
Definition:
ParameterSet.h:47
SpikeAndDoubleSpikeCleaner::SpikeAndDoubleSpikeCleaner
SpikeAndDoubleSpikeCleaner(const edm::ParameterSet &conf)
Definition:
SpikeAndDoubleSpikeCleaner.cc:69
edmplugin::PluginFactory
Definition:
PluginFactory.h:34
SpikeAndDoubleSpikeCleaner::spike_cleaning
Definition:
SpikeAndDoubleSpikeCleaner.h:11
SpikeAndDoubleSpikeCleaner::spike_cleaning::_fracThreshMod
double _fracThreshMod
Definition:
SpikeAndDoubleSpikeCleaner.h:17
SpikeAndDoubleSpikeCleaner::spike_cleaning::_doubleSpikeThresh
double _doubleSpikeThresh
Definition:
SpikeAndDoubleSpikeCleaner.h:18
SpikeAndDoubleSpikeCleaner
Definition:
SpikeAndDoubleSpikeCleaner.h:9
SpikeAndDoubleSpikeCleaner::_layerMap
const std::unordered_map< std::string, int > _layerMap
Definition:
SpikeAndDoubleSpikeCleaner.h:28
SpikeAndDoubleSpikeCleaner::spike_cleaning::_doubleSpikeS6S2
double _doubleSpikeS6S2
Definition:
SpikeAndDoubleSpikeCleaner.h:15
RecHitTopologicalCleanerBase
Definition:
RecHitTopologicalCleanerBase.h:12
Generated for CMSSW Reference Manual by
1.8.16