1 #ifndef HITRegionalPixelSeedGenerator_h
2 #define HITRegionalPixelSeedGenerator_h
27 #include "Math/GenVector/VectorUtil.h"
28 #include "Math/GenVector/PxPyPzE4D.h"
41 edm::LogInfo (
"HITRegionalPixelSeedGenerator")<<
"Enter the HITRegionalPixelSeedGenerator";
60 if (usetracks_ || useIsoTracks_ || fixedReg_ || usejets_)
71 std::vector<TrackingRegion* >
result;
86 reco::VertexCollection::const_iterator ci = vertCollection.begin();
88 if(vertCollection.size() > 0)
98 if(tracks->size() == 0)
return result;
100 reco::TrackCollection::const_iterator itr = tracks->begin();
101 for(;itr != tracks->end();itr++)
104 GlobalVector ptrVec((itr)->px(),(itr)->py(),(itr)->pz());
105 globalVector = ptrVec;
115 result.push_back(etaphiRegion);
125 std::vector< edm::Ref<reco::IsolatedPixelTrackCandidateCollection> > isoPixTrackRefs;
132 reco::VertexCollection::const_iterator ci = vertCollection.begin();
134 if(vertCollection.size() > 0)
144 if(isoPixTrackRefs.size() == 0)
return result;
146 for(uint32_t
p=0;
p<isoPixTrackRefs.size();
p++)
148 GlobalVector ptrVec((isoPixTrackRefs[
p]->track())->px(),(isoPixTrackRefs[
p]->track())->py(),(isoPixTrackRefs[
p]->track())->pz());
149 globalVector = ptrVec;
158 result.push_back(etaphiRegion);
170 reco::VertexCollection::const_iterator ci = vertCollection.begin();
171 if(vertCollection.size() > 0)
181 if(jets->size() == 0)
return result;
183 for (l1extra::L1JetParticleCollection::const_iterator iJet = jets->begin(); iJet != jets->end(); iJet++)
185 GlobalVector jetVector(iJet->p4().x(), iJet->p4().y(), iJet->p4().z());
195 result.push_back(etaphiRegion);
206 reco::VertexCollection::const_iterator ci = vertCollection.begin();
207 if(vertCollection.size() > 0)
223 result.push_back(etaphiRegion);
T getParameter(std::string const &) const
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)
virtual std::vector< TrackingRegion * > regions(const edm::Event &e, const edm::EventSetup &es) const
T const * product() const
HITRegionalPixelSeedGenerator(const edm::ParameterSet &conf_, edm::ConsumesCollector &&iC)
edm::EDGetTokenT< reco::TrackCollection > token_trks
virtual ~HITRegionalPixelSeedGenerator()