CMS 3D CMS Logo

ConversionTrackCandidateProducer.h
Go to the documentation of this file.
1 #ifndef RecoEgamma_EgammaPhotonProducers_ConversionTrackCandidateProducer_h
2 #define RecoEgamma_EgammaPhotonProducers_ConversionTrackCandidateProducer_h
3 
15 
31 
36 
37 // ConversionTrackCandidateProducer inherits from EDProducer, so it can be a module:
39 public:
42 
43  void beginRun(edm::Run const&, edm::EventSetup const& es) final;
44  void produce(edm::Event& evt, const edm::EventSetup& es) override;
45 
46 private:
47  int nEvt_;
48 
50  void setEventSetup(const edm::EventSetup& es);
51 
54 
57 
66 
68  double maxHOverE_;
69  double minSCEt_;
70  double isoConeR_;
72  double isoEtaSlice_;
73  double isoEtMin_;
74  double isoEMin_;
77 
78  std::vector<int> flagsexclEB_;
79  std::vector<int> flagsexclEE_;
80  std::vector<int> severitiesexclEB_;
81  std::vector<int> severitiesexclEE_;
82 
85 
87 
88  std::unique_ptr<BaseCkfTrajectoryBuilder> theTrajectoryBuilder_;
89 
90  std::unique_ptr<OutInConversionSeedFinder> theOutInSeedFinder_;
91  std::unique_ptr<OutInConversionTrackFinder> theOutInTrackFinder_;
92  std::unique_ptr<InOutConversionSeedFinder> theInOutSeedFinder_;
93  std::unique_ptr<InOutConversionTrackFinder> theInOutTrackFinder_;
94 
95  std::vector<edm::Ptr<reco::CaloCluster> > caloPtrVecOutIn_;
96  std::vector<edm::Ptr<reco::CaloCluster> > caloPtrVecInOut_;
97 
98  std::vector<edm::Ref<reco::SuperClusterCollection> > vecOfSCRefForOutIn;
99  std::vector<edm::Ref<reco::SuperClusterCollection> > vecOfSCRefForInOut;
100 
101  void buildCollections(bool detector,
102  const edm::Handle<edm::View<reco::CaloCluster> >& scHandle,
103  const edm::Handle<edm::View<reco::CaloCluster> >& bcHandle,
104  edm::Handle<EcalRecHitCollection> ecalRecHitHandle,
105  const EcalRecHitCollection& ecalRecHits,
106  const EcalSeverityLevelAlgo* sevLev,
107  //edm::ESHandle<EcalChannelStatus> chStatus,
108  const edm::Handle<CaloTowerCollection>& hcalTowersHandle,
109  TrackCandidateCollection& outInTracks,
110  TrackCandidateCollection& inOutTracks,
111  std::vector<edm::Ptr<reco::CaloCluster> >& vecRecOI,
112  std::vector<edm::Ptr<reco::CaloCluster> >& vecRecIO);
113 };
114 #endif
EcalSeverityLevelAlgo
Definition: EcalSeverityLevelAlgo.h:33
ConversionTrackCandidateProducer::scIslandEndcapProducer_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > scIslandEndcapProducer_
Definition: ConversionTrackCandidateProducer.h:61
ConversionTrackCandidateProducer::severitiesexclEB_
std::vector< int > severitiesexclEB_
Definition: ConversionTrackCandidateProducer.h:80
ConversionTrackCandidateProducer::bcBarrelCollection_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > bcBarrelCollection_
Definition: ConversionTrackCandidateProducer.h:58
ConversionTrackCandidateProducer::theTrajectoryBuilder_
std::unique_ptr< BaseCkfTrajectoryBuilder > theTrajectoryBuilder_
Definition: ConversionTrackCandidateProducer.h:88
ConversionTrackCandidateProducer::useNumXtals_
bool useNumXtals_
Definition: ConversionTrackCandidateProducer.h:76
ConversionTrackCandidateProducer::~ConversionTrackCandidateProducer
~ConversionTrackCandidateProducer() override
Definition: ConversionTrackCandidateProducer.cc:133
ConversionTrackCandidateProducer::vecOfSCRefForOutIn
std::vector< edm::Ref< reco::SuperClusterCollection > > vecOfSCRefForOutIn
Definition: ConversionTrackCandidateProducer.h:98
TrackCandidateCollection.h
ConversionTrackCandidateProducer::hOverEConeSize_
double hOverEConeSize_
Definition: ConversionTrackCandidateProducer.h:67
ESHandle.h
ConversionTrackCandidateProducer::nEvt_
int nEvt_
Definition: ConversionTrackCandidateProducer.h:47
ConversionTrackCandidateProducer::buildCollections
void buildCollections(bool detector, const edm::Handle< edm::View< reco::CaloCluster > > &scHandle, const edm::Handle< edm::View< reco::CaloCluster > > &bcHandle, edm::Handle< EcalRecHitCollection > ecalRecHitHandle, const EcalRecHitCollection &ecalRecHits, const EcalSeverityLevelAlgo *sevLev, const edm::Handle< CaloTowerCollection > &hcalTowersHandle, TrackCandidateCollection &outInTracks, TrackCandidateCollection &inOutTracks, std::vector< edm::Ptr< reco::CaloCluster > > &vecRecOI, std::vector< edm::Ptr< reco::CaloCluster > > &vecRecIO)
Definition: ConversionTrackCandidateProducer.cc:294
EcalSeverityLevelAlgoRcd.h
edm::Run
Definition: Run.h:45
ConversionTrackCandidateProducer::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &es) final
Definition: ConversionTrackCandidateProducer.cc:142
edm::EDGetTokenT
Definition: EDGetToken.h:33
ConversionTrackCandidateProducer::OutInTrackCandidateCollection_
std::string OutInTrackCandidateCollection_
Definition: ConversionTrackCandidateProducer.h:52
ConversionTrackCandidateProducer::severitiesexclEE_
std::vector< int > severitiesexclEE_
Definition: ConversionTrackCandidateProducer.h:81
ConversionTrackCandidateProducer::barrelecalCollection_
edm::EDGetTokenT< EcalRecHitCollection > barrelecalCollection_
Definition: ConversionTrackCandidateProducer.h:63
InOutConversionSeedFinder
Definition: InOutConversionSeedFinder.h:34
EDProducer.h
edm::SortedCollection< EcalRecHit >
ConversionTrackCandidateProducer::isoEtMin_
double isoEtMin_
Definition: ConversionTrackCandidateProducer.h:73
ConversionTrackCandidateProducer::endcapecalCollection_
edm::EDGetTokenT< EcalRecHitCollection > endcapecalCollection_
Definition: ConversionTrackCandidateProducer.h:64
edm::Handle
Definition: AssociativeIterator.h:50
ConversionTrackCandidateProducer::flagsexclEE_
std::vector< int > flagsexclEE_
Definition: ConversionTrackCandidateProducer.h:79
GeometricSearchTracker.h
ConversionTrackCandidateProducer::hcalTowers_
edm::EDGetTokenT< CaloTowerCollection > hcalTowers_
Definition: ConversionTrackCandidateProducer.h:62
ConversionTrackCandidateProducer::isoInnerConeR_
double isoInnerConeR_
Definition: ConversionTrackCandidateProducer.h:71
LayerMeasurements.h
ConversionTrackCandidateProducer::InOutTrackSuperClusterAssociationCollection_
std::string InOutTrackSuperClusterAssociationCollection_
Definition: ConversionTrackCandidateProducer.h:56
ConversionTrackCandidateProducer::caloPtrVecOutIn_
std::vector< edm::Ptr< reco::CaloCluster > > caloPtrVecOutIn_
Definition: ConversionTrackCandidateProducer.h:95
edm::ESHandle< CaloGeometry >
CaloClusterFwd.h
OutInConversionSeedFinder
Definition: OutInConversionSeedFinder.h:29
ConversionTrackCandidateProducer::theOutInTrackFinder_
std::unique_ptr< OutInConversionTrackFinder > theOutInTrackFinder_
Definition: ConversionTrackCandidateProducer.h:91
ConversionTrackCandidateProducer::maxHOverE_
double maxHOverE_
Definition: ConversionTrackCandidateProducer.h:68
EcalSeverityLevelAlgo.h
ConversionTrackCandidateProducer::OutInTrackSuperClusterAssociationCollection_
std::string OutInTrackSuperClusterAssociationCollection_
Definition: ConversionTrackCandidateProducer.h:55
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ConversionTrackCandidateProducer::setEventSetup
void setEventSetup(const edm::EventSetup &es)
Initialize EventSetup objects at each event.
Definition: ConversionTrackCandidateProducer.cc:135
ConversionTrackCandidateProducer::InOutTrackCandidateCollection_
std::string InOutTrackCandidateCollection_
Definition: ConversionTrackCandidateProducer.h:53
ConversionTrackCandidateProducer::caloPtrVecInOut_
std::vector< edm::Ptr< reco::CaloCluster > > caloPtrVecInOut_
Definition: ConversionTrackCandidateProducer.h:96
edm::View
Definition: CaloClusterFwd.h:14
ConversionTrackCandidateProducer::vetoClusteredHits_
bool vetoClusteredHits_
Definition: ConversionTrackCandidateProducer.h:75
edm::ParameterSet
Definition: ParameterSet.h:36
ConversionTrackCandidateProducer::isoConeR_
double isoConeR_
Definition: ConversionTrackCandidateProducer.h:70
TrackCandidateCollection
std::vector< TrackCandidate > TrackCandidateCollection
Definition: TrackCandidateCollection.h:7
ConversionTrackCandidateProducer::ecalIsoCut_offset_
double ecalIsoCut_offset_
Definition: ConversionTrackCandidateProducer.h:83
ConversionTrackCandidateProducer::measurementTrkEvtToken_
edm::EDGetTokenT< MeasurementTrackerEvent > measurementTrkEvtToken_
Definition: ConversionTrackCandidateProducer.h:65
Event.h
edm::stream::EDProducer
Definition: EDProducer.h:38
MagneticField.h
edm::EventSetup
Definition: EventSetup.h:57
edm::Ptr
Definition: AssociationVector.h:31
CaloTowerCollection.h
ConversionTrackCandidateProducer::produce
void produce(edm::Event &evt, const edm::EventSetup &es) override
Definition: ConversionTrackCandidateProducer.cc:151
ConversionTrackCandidateProducer::minSCEt_
double minSCEt_
Definition: ConversionTrackCandidateProducer.h:69
ConversionTrackCandidateProducer::isoEMin_
double isoEMin_
Definition: ConversionTrackCandidateProducer.h:74
ConversionTrackCandidateProducer::theInOutSeedFinder_
std::unique_ptr< InOutConversionSeedFinder > theInOutSeedFinder_
Definition: ConversionTrackCandidateProducer.h:92
OutInConversionTrackFinder
Definition: OutInConversionTrackFinder.h:30
SuperClusterFwd.h
ConversionTrackCandidateProducer::vecOfSCRefForInOut
std::vector< edm::Ref< reco::SuperClusterCollection > > vecOfSCRefForInOut
Definition: ConversionTrackCandidateProducer.h:99
ConversionTrackCandidateProducer::theOutInSeedFinder_
std::unique_ptr< OutInConversionSeedFinder > theOutInSeedFinder_
Definition: ConversionTrackCandidateProducer.h:90
ConversionTrackCandidateProducer
Definition: ConversionTrackCandidateProducer.h:38
ConversionTrackCandidateProducer::scHybridBarrelProducer_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > scHybridBarrelProducer_
Definition: ConversionTrackCandidateProducer.h:60
BaseCkfTrajectoryBuilder.h
CaloGeometry.h
ConversionTrackCandidateProducer::isoEtaSlice_
double isoEtaSlice_
Definition: ConversionTrackCandidateProducer.h:72
EventSetup.h
ConversionTrackCandidateProducer::ConversionTrackCandidateProducer
ConversionTrackCandidateProducer(const edm::ParameterSet &ps)
Definition: ConversionTrackCandidateProducer.cc:55
hgcalTestNeighbor_cfi.detector
detector
Definition: hgcalTestNeighbor_cfi.py:6
View.h
ParameterSet.h
NavigationSchool.h
edm::Event
Definition: Event.h:73
ConversionTrackCandidateProducer::theCaloGeom_
edm::ESHandle< CaloGeometry > theCaloGeom_
Definition: ConversionTrackCandidateProducer.h:86
InOutConversionTrackFinder
Definition: InOutConversionTrackFinder.h:28
ConversionTrackCandidateProducer::bcEndcapCollection_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > bcEndcapCollection_
Definition: ConversionTrackCandidateProducer.h:59
ConversionTrackCandidateProducer::ecalIsoCut_slope_
double ecalIsoCut_slope_
Definition: ConversionTrackCandidateProducer.h:84
CaloCluster.h
MeasurementTracker.h
ConversionTrackCandidateProducer::theInOutTrackFinder_
std::unique_ptr< InOutConversionTrackFinder > theInOutTrackFinder_
Definition: ConversionTrackCandidateProducer.h:93
ConversionTrackCandidateProducer::flagsexclEB_
std::vector< int > flagsexclEB_
Definition: ConversionTrackCandidateProducer.h:78