RecoTracker
DeDx
plugins
DeDxEstimatorProducer.h
Go to the documentation of this file.
1
#ifndef TrackRecoDeDx_DeDxEstimatorProducer_H
2
#define TrackRecoDeDx_DeDxEstimatorProducer_H
3
// user include files
4
5
#include <memory>
6
7
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
8
#include "
FWCore/Framework/interface/stream/EDProducer.h
"
9
#include "
FWCore/Framework/interface/Event.h
"
10
#include "
FWCore/Framework/interface/MakerMacros.h
"
11
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
12
#include "
FWCore/Framework/interface/ESHandle.h
"
13
14
#include "
Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h
"
15
#include "
Geometry/TrackerGeometryBuilder/interface/StripGeomDetUnit.h
"
16
#include "
Geometry/CommonDetUnit/interface/PixelGeomDetUnit.h
"
17
#include "
Geometry/CommonDetUnit/interface/GluedGeomDet.h
"
18
19
#include "
DataFormats/Common/interface/ValueMap.h
"
20
#include "
DataFormats/TrackReco/interface/DeDxData.h
"
21
#include "
DataFormats/TrackReco/interface/TrackDeDxHits.h
"
22
#include "
DataFormats/TrackReco/interface/DeDxHit.h
"
23
#include "
DataFormats/TrackReco/interface/Track.h
"
24
25
#include "
RecoTracker/DeDx/interface/BaseDeDxEstimator.h
"
26
#include "
RecoTracker/DeDx/interface/GenericAverageDeDxEstimator.h
"
27
#include "
RecoTracker/DeDx/interface/TruncatedAverageDeDxEstimator.h
"
28
#include "
RecoTracker/DeDx/interface/GenericTruncatedAverageDeDxEstimator.h
"
29
#include "
RecoTracker/DeDx/interface/MedianDeDxEstimator.h
"
30
#include "
RecoTracker/DeDx/interface/UnbinnedFitDeDxEstimator.h
"
31
#include "
RecoTracker/DeDx/interface/ProductDeDxDiscriminator.h
"
32
#include "
RecoTracker/DeDx/interface/SmirnovDeDxDiscriminator.h
"
33
#include "
RecoTracker/DeDx/interface/ASmirnovDeDxDiscriminator.h
"
34
#include "
RecoTracker/DeDx/interface/BTagLikeDeDxDiscriminator.h
"
35
36
#include "
RecoTracker/DeDx/interface/DeDxTools.h
"
37
38
#include "
TrackingTools/PatternTools/interface/TrajTrackAssociation.h
"
39
#include "
TrackingTools/PatternTools/interface/TrajTrackAssociation.h
"
40
41
//
42
// class declaration
43
//
44
45
class
DeDxEstimatorProducer
:
public
edm::stream::EDProducer
<> {
46
public
:
47
explicit
DeDxEstimatorProducer
(
const
edm::ParameterSet
&);
48
~DeDxEstimatorProducer
()
override
;
49
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions);
50
51
private
:
52
void
beginRun
(
edm::Run
const
&
run
,
const
edm::EventSetup
&)
override
;
53
void
produce
(
edm::Event
&,
const
edm::EventSetup
&)
override
;
54
55
void
makeCalibrationMap
(
const
TrackerGeometry
&
tkGeom
);
56
void
processHit
(
const
TrackingRecHit
*
recHit
,
57
float
trackMomentum
,
58
float
& cosine,
59
reco::DeDxHitCollection
& dedxHits,
60
int
& NClusterSaturating);
61
62
// ----------member data ---------------------------
63
std::unique_ptr<BaseDeDxEstimator>
m_estimator
;
64
65
edm::EDGetTokenT<reco::TrackCollection>
m_tracksTag
;
66
67
bool
usePixel
;
68
bool
useStrip
;
69
float
meVperADCPixel
;
70
float
meVperADCStrip
;
71
72
unsigned
int
MaxNrStrips
;
73
74
std::string
m_calibrationPath
;
75
bool
useCalibration
;
76
bool
shapetest
;
77
78
std::vector<std::vector<float> >
calibGains
;
79
unsigned
int
m_off
;
80
81
const
edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord>
tkGeomToken
;
82
const
TrackerGeometry
*
tkGeom
=
nullptr
;
83
};
84
85
#endif
GenericTruncatedAverageDeDxEstimator.h
StripGeomDetUnit.h
DeDxEstimatorProducer::beginRun
void beginRun(edm::Run const &run, const edm::EventSetup &) override
Definition:
DeDxEstimatorProducer.cc:95
TrackerGeometry.h
DeDxData.h
ESHandle.h
DeDxEstimatorProducer::calibGains
std::vector< std::vector< float > > calibGains
Definition:
DeDxEstimatorProducer.h:78
DeDxEstimatorProducer::meVperADCPixel
float meVperADCPixel
Definition:
DeDxEstimatorProducer.h:69
DeDxEstimatorProducer::m_calibrationPath
std::string m_calibrationPath
Definition:
DeDxEstimatorProducer.h:74
edm::Run
Definition:
Run.h:45
edm::EDGetTokenT< reco::TrackCollection >
DeDxEstimatorProducer::usePixel
bool usePixel
Definition:
DeDxEstimatorProducer.h:67
DeDxEstimatorProducer::useStrip
bool useStrip
Definition:
DeDxEstimatorProducer.h:68
reco::DeDxHitCollection
std::vector< DeDxHit > DeDxHitCollection
Definition:
DeDxHit.h:41
EDProducer.h
GluedGeomDet.h
SmirnovDeDxDiscriminator.h
ProductDeDxDiscriminator.h
rpcPointValidation_cfi.recHit
recHit
Definition:
rpcPointValidation_cfi.py:7
DeDxEstimatorProducer::shapetest
bool shapetest
Definition:
DeDxEstimatorProducer.h:76
DeDxEstimatorProducer::m_tracksTag
edm::EDGetTokenT< reco::TrackCollection > m_tracksTag
Definition:
DeDxEstimatorProducer.h:65
MakerMacros.h
TrackDeDxHits.h
Track.h
MedianDeDxEstimator.h
ASmirnovDeDxDiscriminator.h
GenericAverageDeDxEstimator.h
BTagLikeDeDxDiscriminator.h
DeDxEstimatorProducer::m_estimator
std::unique_ptr< BaseDeDxEstimator > m_estimator
Definition:
DeDxEstimatorProducer.h:63
DeDxHit.h
DeDxTools.h
DeDxEstimatorProducer::useCalibration
bool useCalibration
Definition:
DeDxEstimatorProducer.h:75
reco::btau::trackMomentum
Definition:
TaggingVariable.h:41
DeDxEstimatorProducer::m_off
unsigned int m_off
Definition:
DeDxEstimatorProducer.h:79
DeDxEstimatorProducer::MaxNrStrips
unsigned int MaxNrStrips
Definition:
DeDxEstimatorProducer.h:72
DeDxEstimatorProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
DeDxEstimatorProducer.cc:29
DeDxEstimatorProducer::tkGeom
const TrackerGeometry * tkGeom
Definition:
DeDxEstimatorProducer.h:82
TrajTrackAssociation.h
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
BaseDeDxEstimator.h
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
TruncatedAverageDeDxEstimator.h
edm::stream::EDProducer
Definition:
EDProducer.h:38
edm::EventSetup
Definition:
EventSetup.h:58
DeDxEstimatorProducer::~DeDxEstimatorProducer
~DeDxEstimatorProducer() override
Definition:
DeDxEstimatorProducer.cc:92
DeDxEstimatorProducer::makeCalibrationMap
void makeCalibrationMap(const TrackerGeometry &tkGeom)
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord >
TrackingRecHit
Definition:
TrackingRecHit.h:21
ValueMap.h
UnbinnedFitDeDxEstimator.h
writedatasetfile.run
run
Definition:
writedatasetfile.py:27
Frameworkfwd.h
PixelGeomDetUnit.h
DeDxEstimatorProducer::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
DeDxEstimatorProducer.cc:106
DeDxEstimatorProducer::DeDxEstimatorProducer
DeDxEstimatorProducer(const edm::ParameterSet &)
Definition:
DeDxEstimatorProducer.cc:48
DeDxEstimatorProducer
Definition:
DeDxEstimatorProducer.h:45
DeDxEstimatorProducer::meVperADCStrip
float meVperADCStrip
Definition:
DeDxEstimatorProducer.h:70
ParameterSet.h
DeDxEstimatorProducer::tkGeomToken
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken
Definition:
DeDxEstimatorProducer.h:81
DeDxEstimatorProducer::processHit
void processHit(const TrackingRecHit *recHit, float trackMomentum, float &cosine, reco::DeDxHitCollection &dedxHits, int &NClusterSaturating)
Definition:
DeDxEstimatorProducer.cc:152
edm::Event
Definition:
Event.h:73
TrackerGeometry
Definition:
TrackerGeometry.h:14
Generated for CMSSW Reference Manual by
1.8.16