1 #ifndef HITRegionalPixelSeedGenerator_h 2 #define HITRegionalPixelSeedGenerator_h 27 #include "Math/GenVector/VectorUtil.h" 28 #include "Math/GenVector/PxPyPzE4D.h" 38 edm::LogInfo(
"HITRegionalPixelSeedGenerator") <<
"Enter the HITRegionalPixelSeedGenerator";
58 if (usetracks_ || useIsoTracks_ || fixedReg_ || usejets_)
70 std::vector<std::unique_ptr<TrackingRegion> >
result;
82 reco::VertexCollection::const_iterator ci = vertCollection.begin();
84 if (!vertCollection.empty()) {
94 reco::TrackCollection::const_iterator itr = tracks->begin();
95 for (; itr != tracks->end(); itr++) {
97 globalVector = ptrVec;
99 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>(
108 std::vector<edm::Ref<reco::IsolatedPixelTrackCandidateCollection> > isoPixTrackRefs;
115 reco::VertexCollection::const_iterator ci = vertCollection.begin();
117 if (!vertCollection.empty()) {
124 if (isoPixTrackRefs.empty())
127 for (uint32_t
p = 0;
p < isoPixTrackRefs.size();
p++) {
129 (isoPixTrackRefs[
p]->
track())->
py(),
130 (isoPixTrackRefs[
p]->
track())->pz());
131 globalVector = ptrVec;
133 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>(
145 reco::VertexCollection::const_iterator ci = vertCollection.begin();
146 if (!vertCollection.empty()) {
156 for (l1extra::L1JetParticleCollection::const_iterator iJet = jets->begin(); iJet != jets->end(); iJet++) {
157 GlobalVector jetVector(iJet->p4().x(), iJet->p4().y(), iJet->p4().z());
160 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>(
173 reco::VertexCollection::const_iterator ci = vertCollection.begin();
174 if (!vertCollection.empty()) {
180 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>(
T getParameter(std::string const &) const
void getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
std::vector< std::unique_ptr< TrackingRegion > > regions(const edm::Event &e, const edm::EventSetup &es) const override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< reco::VertexCollection > token_vertex
edm::EDGetTokenT< l1extra::L1JetParticleCollection > token_l1jet
Sin< T >::type sin(const T &t)
Global3DPoint GlobalPoint
std::vector< Track > TrackCollection
collection of Tracks
edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > token_isoTrack
std::vector< Vertex > VertexCollection
collection of Vertex objects
Cos< T >::type cos(const T &t)
~HITRegionalPixelSeedGenerator() override
T const * product() const
HITRegionalPixelSeedGenerator(const edm::ParameterSet &conf_, edm::ConsumesCollector &&iC)
edm::EDGetTokenT< reco::TrackCollection > token_trks