1 #ifndef HITRegionalPixelSeedGenerator_h 2 #define HITRegionalPixelSeedGenerator_h 28 #include "Math/GenVector/VectorUtil.h" 29 #include "Math/GenVector/PxPyPzE4D.h" 42 edm::LogInfo (
"HITRegionalPixelSeedGenerator")<<
"Enter the HITRegionalPixelSeedGenerator";
61 if (usetracks_ || useIsoTracks_ || fixedReg_ || usejets_)
72 std::vector<std::unique_ptr<TrackingRegion> >
result;
87 reco::VertexCollection::const_iterator ci = vertCollection.begin();
89 if(vertCollection.size() > 0)
99 if(tracks->size() == 0)
return result;
101 reco::TrackCollection::const_iterator itr = tracks->begin();
102 for(;itr != tracks->end();itr++)
105 GlobalVector ptrVec((itr)->px(),(itr)->py(),(itr)->pz());
106 globalVector = ptrVec;
109 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>(globalVector,
124 std::vector< edm::Ref<reco::IsolatedPixelTrackCandidateCollection> > isoPixTrackRefs;
131 reco::VertexCollection::const_iterator ci = vertCollection.begin();
133 if(vertCollection.size() > 0)
143 if(isoPixTrackRefs.size() == 0)
return result;
145 for(uint32_t
p=0;
p<isoPixTrackRefs.size();
p++)
148 globalVector = ptrVec;
150 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>(globalVector,
168 reco::VertexCollection::const_iterator ci = vertCollection.begin();
169 if(vertCollection.size() > 0)
179 if(jets->size() == 0)
return result;
181 for (l1extra::L1JetParticleCollection::const_iterator iJet = jets->begin(); iJet != jets->end(); iJet++)
183 GlobalVector jetVector(iJet->p4().x(), iJet->p4().y(), iJet->p4().z());
186 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>( jetVector,
203 reco::VertexCollection::const_iterator ci = vertCollection.begin();
204 if(vertCollection.size() > 0)
213 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>( fixedVector,
T getParameter(std::string const &) const
void getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
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
virtual std::vector< std::unique_ptr< TrackingRegion > > regions(const edm::Event &e, const edm::EventSetup &es) const override
Cos< T >::type cos(const T &t)
T const * product() const
HITRegionalPixelSeedGenerator(const edm::ParameterSet &conf_, edm::ConsumesCollector &&iC)
edm::EDGetTokenT< reco::TrackCollection > token_trks
virtual ~HITRegionalPixelSeedGenerator()