1 #ifndef HITRegionalPixelSeedGenerator_h
2 #define HITRegionalPixelSeedGenerator_h
26 #include "Math/GenVector/VectorUtil.h"
27 #include "Math/GenVector/PxPyPzE4D.h"
39 edm::LogInfo (
"HITRegionalPixelSeedGenerator")<<
"Enter the HITRegionalPixelSeedGenerator";
67 std::vector<TrackingRegion* >
result;
82 reco::VertexCollection::const_iterator ci = vertCollection.begin();
84 if(vertCollection.size() > 0)
94 if(tracks->size() == 0)
return result;
96 reco::TrackCollection::const_iterator itr = tracks->begin();
97 for(;itr != tracks->end();itr++)
100 GlobalVector ptrVec((itr)->px(),(itr)->py(),(itr)->pz());
101 globalVector = ptrVec;
111 result.push_back(etaphiRegion);
121 std::vector< edm::Ref<reco::IsolatedPixelTrackCandidateCollection> > isoPixTrackRefs;
128 reco::VertexCollection::const_iterator ci = vertCollection.begin();
130 if(vertCollection.size() > 0)
140 if(isoPixTrackRefs.size() == 0)
return result;
142 for(uint32_t
p=0;
p<isoPixTrackRefs.size();
p++)
144 GlobalVector ptrVec((isoPixTrackRefs[
p]->track())->px(),(isoPixTrackRefs[
p]->track())->py(),(isoPixTrackRefs[
p]->track())->pz());
145 globalVector = ptrVec;
154 result.push_back(etaphiRegion);
166 reco::VertexCollection::const_iterator ci = vertCollection.begin();
167 if(vertCollection.size() > 0)
177 if(jets->size() == 0)
return result;
179 for (l1extra::L1JetParticleCollection::const_iterator iJet = jets->begin(); iJet != jets->end(); iJet++)
181 GlobalVector jetVector(iJet->p4().x(), iJet->p4().y(), iJet->p4().z());
191 result.push_back(etaphiRegion);
202 reco::VertexCollection::const_iterator ci = vertCollection.begin();
203 if(vertCollection.size() > 0)
219 result.push_back(etaphiRegion);
T getParameter(std::string const &) const
Sin< T >::type sin(const T &t)
Global3DPoint GlobalPoint
std::vector< Vertex > VertexCollection
collection of Vertex objects
edm::InputTag isoTracksrc_
Cos< T >::type cos(const T &t)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual std::vector< TrackingRegion * > regions(const edm::Event &e, const edm::EventSetup &es) const
HITRegionalPixelSeedGenerator(const edm::ParameterSet &conf_)
T const * product() const
virtual ~HITRegionalPixelSeedGenerator()