CMS 3D CMS Logo

ElectronSeedGenerator.h
Go to the documentation of this file.
1 #ifndef ElectronSeedGenerator_H
2 #define ElectronSeedGenerator_H
3 
17 
21 
24 
32 
38 
40 
42 public:
43  struct Tokens {
46  };
47 
52 
54 
55  void setupES(const edm::EventSetup& setup);
56  void run(edm::Event&,
57  const edm::EventSetup& setup,
59  const std::vector<const TrajectorySeedCollection*>& seedsV,
61 
62 private:
64  reco::BeamSpot const& beamSpot,
65  std::vector<reco::Vertex> const* vertices,
67 
68  const bool dynamicPhiRoad_;
71 
72  const float lowPtThresh_;
73  const float highPtThresh_;
74  const float nSigmasDeltaZ1_; // first z window size if not using the reco vertex
75  const float deltaZ1WithVertex_; // first z window size when using the reco vertex
76  const float sizeWindowENeg_;
77 
78  const float deltaPhi1Low_;
79  const float deltaPhi1High_;
80 
81  // so that deltaPhi1 = dPhi1Coef1_ + dPhi1Coef2_/clusterEnergyT
82  const double dPhi1Coef2_;
83  const double dPhi1Coef1_;
84 
85  const std::vector<const TrajectorySeedCollection*>* initialSeedCollectionVector_ = nullptr;
86 
89  std::unique_ptr<PropagatorWithMaterial> propagator_;
90 
91  // keep cacheIds to get records only when necessary
92  unsigned long long cacheIDMagField_ = 0;
93  unsigned long long cacheIDCkfComp_ = 0;
94  unsigned long long cacheIDTrkGeom_ = 0;
95 
96  const bool useRecoVertex_;
97 
98  const float deltaPhi2B_;
99  const float deltaPhi2F_;
100 
101  const float phiMin2B_;
102  const float phiMin2F_;
103  const float phiMax2B_;
104  const float phiMax2F_;
105 
108 };
109 
110 #endif // ElectronSeedGenerator_H
ElectronSeedGenerator::cacheIDMagField_
unsigned long long cacheIDMagField_
Definition: ElectronSeedGenerator.h:92
pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
ElectronSeedGenerator::deltaZ1WithVertex_
const float deltaZ1WithVertex_
Definition: ElectronSeedGenerator.h:75
TrackerGeometry.h
ESHandle.h
edm::EDGetTokenT
Definition: EDGetToken.h:33
ElectronSeedGenerator::dPhi1Coef1_
const double dPhi1Coef1_
Definition: ElectronSeedGenerator.h:83
ElectronSeedGenerator::magField_
edm::ESHandle< MagneticField > magField_
Definition: ElectronSeedGenerator.h:87
ElectronSeedGenerator::RecHitPointer
TransientTrackingRecHit::RecHitPointer RecHitPointer
Definition: ElectronSeedGenerator.h:50
ElectronSeedGenerator::positronMatcher_
PixelHitMatcher positronMatcher_
Definition: ElectronSeedGenerator.h:107
ElectronSeedGenerator::Tokens::token_bs
edm::EDGetTokenT< reco::BeamSpot > token_bs
Definition: ElectronSeedGenerator.h:45
ElectronSeedGenerator::sizeWindowENeg_
const float sizeWindowENeg_
Definition: ElectronSeedGenerator.h:76
ElectronSeedGenerator::trackerGeometry_
edm::ESHandle< TrackerGeometry > trackerGeometry_
Definition: ElectronSeedGenerator.h:88
TransientTrackingRecHit.h
ElectronSeedGenerator::phiMin2F_
const float phiMin2F_
Definition: ElectronSeedGenerator.h:102
edm::RefVector
Definition: EDProductfwd.h:27
TrackingRecHit::RecHitPointer
std::shared_ptr< TrackingRecHit const > RecHitPointer
Definition: TrackingRecHit.h:24
ElectronSeedGenerator::ConstRecHitPointer
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
Definition: ElectronSeedGenerator.h:49
ElectronSeedGenerator::phiMax2B_
const float phiMax2B_
Definition: ElectronSeedGenerator.h:103
ElectronSeedGenerator::highPtThresh_
const float highPtThresh_
Definition: ElectronSeedGenerator.h:73
ElectronSeedGenerator::deltaPhi1High_
const float deltaPhi1High_
Definition: ElectronSeedGenerator.h:79
TrajectoryStateUpdator.h
ElectronSeedGenerator::nSigmasDeltaZ1_
const float nSigmasDeltaZ1_
Definition: ElectronSeedGenerator.h:74
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
ElectronSeedGenerator::deltaPhi1Low_
const float deltaPhi1Low_
Definition: ElectronSeedGenerator.h:78
ElectronSeedGenerator::lowPtThresh_
const float lowPtThresh_
Definition: ElectronSeedGenerator.h:72
ElectronSeedGenerator::beamSpotTag_
const edm::EDGetTokenT< reco::BeamSpot > beamSpotTag_
Definition: ElectronSeedGenerator.h:70
ElectronSeedFwd.h
edm::Ref
Definition: AssociativeIterator.h:58
ElectronSeedGenerator::cacheIDTrkGeom_
unsigned long long cacheIDTrkGeom_
Definition: ElectronSeedGenerator.h:94
ElectronSeedGenerator
Definition: ElectronSeedGenerator.h:41
ElectronSeedGenerator::setupES
void setupES(const edm::EventSetup &setup)
Definition: ElectronSeedGenerator.cc:182
BeamSpot.h
TrackingRecHit::RecHitContainer
std::vector< ConstRecHitPointer > RecHitContainer
Definition: TrackingRecHit.h:31
reco::BeamSpot
Definition: BeamSpot.h:21
edm::ESHandle< MagneticField >
reco::ElectronSeedCollection
std::vector< ElectronSeed > ElectronSeedCollection
collection of ElectronSeed objects
Definition: ElectronSeedFwd.h:10
PixelHitMatcher
Definition: PixelHitMatcher.h:44
Vertex.h
ElectronSeedGenerator::RecHitContainer
TransientTrackingRecHit::RecHitContainer RecHitContainer
Definition: ElectronSeedGenerator.h:51
KFUpdator.h
edm::ParameterSet
Definition: ParameterSet.h:36
TSiPixelRecHit.h
EDConsumerBase.h
Event.h
ElectronSeedGenerator::propagator_
std::unique_ptr< PropagatorWithMaterial > propagator_
Definition: ElectronSeedGenerator.h:89
ElectronSeedGenerator::Tokens::token_vtx
edm::EDGetTokenT< std::vector< reco::Vertex > > token_vtx
Definition: ElectronSeedGenerator.h:44
ElectronSeedGenerator::ElectronSeedGenerator
ElectronSeedGenerator(const edm::ParameterSet &, const Tokens &)
Definition: ElectronSeedGenerator.cc:131
TrackingRecHit::ConstRecHitPointer
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
Definition: TrackingRecHit.h:25
ElectronSeedGenerator::Tokens
Definition: ElectronSeedGenerator.h:43
ElectronSeedGenerator::phiMin2B_
const float phiMin2B_
Definition: ElectronSeedGenerator.h:101
ElectronSeedGenerator::cacheIDCkfComp_
unsigned long long cacheIDCkfComp_
Definition: ElectronSeedGenerator.h:93
ElectronSeedGenerator::seedsFromThisCluster
void seedsFromThisCluster(edm::Ref< reco::SuperClusterCollection > seedCluster, reco::BeamSpot const &beamSpot, std::vector< reco::Vertex > const *vertices, reco::ElectronSeedCollection &out)
Definition: ElectronSeedGenerator.cc:231
edm::EventSetup
Definition: EventSetup.h:57
TrajectorySeedCollection.h
ElectronSeedGenerator::deltaPhi2F_
const float deltaPhi2F_
Definition: ElectronSeedGenerator.h:99
ElectronSeedGenerator::dynamicPhiRoad_
const bool dynamicPhiRoad_
Definition: ElectronSeedGenerator.h:68
VertexFwd.h
ElectronSeedGenerator::electronMatcher_
PixelHitMatcher electronMatcher_
Definition: ElectronSeedGenerator.h:106
ElectronSeedGenerator::PRecHitContainer
edm::OwnVector< TrackingRecHit > PRecHitContainer
Definition: ElectronSeedGenerator.h:48
ElectronSeedGenerator::deltaPhi2B_
const float deltaPhi2B_
Definition: ElectronSeedGenerator.h:98
SuperClusterFwd.h
ElectronSeedGenerator::run
void run(edm::Event &, const edm::EventSetup &setup, const reco::SuperClusterRefVector &, const std::vector< const TrajectorySeedCollection * > &seedsV, reco::ElectronSeedCollection &)
Definition: ElectronSeedGenerator.cc:205
PixelHitMatcher.h
ElectronSeedGenerator::initialSeedCollectionVector_
const std::vector< const TrajectorySeedCollection * > * initialSeedCollectionVector_
Definition: ElectronSeedGenerator.h:85
EventSetup.h
ElectronSeedGenerator::useRecoVertex_
const bool useRecoVertex_
Definition: ElectronSeedGenerator.h:96
TrajectoryStateTransform.h
ElectronSeedGenerator::dPhi1Coef2_
const double dPhi1Coef2_
Definition: ElectronSeedGenerator.h:82
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
ParameterSet.h
ElectronSeedGenerator::phiMax2F_
const float phiMax2F_
Definition: ElectronSeedGenerator.h:104
edm::Event
Definition: Event.h:73
ElectronSeed.h
edm::OwnVector< TrackingRecHit >
pwdgSkimBPark_cfi.vertices
vertices
Definition: pwdgSkimBPark_cfi.py:7
ElectronSeedGenerator::verticesTag_
const edm::EDGetTokenT< std::vector< reco::Vertex > > verticesTag_
Definition: ElectronSeedGenerator.h:69