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<std::unique_ptr<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;
108 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>(globalVector,
123 std::vector< edm::Ref<reco::IsolatedPixelTrackCandidateCollection> > isoPixTrackRefs;
130 reco::VertexCollection::const_iterator ci = vertCollection.begin();
132 if(vertCollection.size() > 0)
142 if(isoPixTrackRefs.size() == 0)
return result;
144 for(uint32_t
p=0;
p<isoPixTrackRefs.size();
p++)
147 globalVector = ptrVec;
149 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>(globalVector,
167 reco::VertexCollection::const_iterator ci = vertCollection.begin();
168 if(vertCollection.size() > 0)
178 if(jets->size() == 0)
return result;
180 for (l1extra::L1JetParticleCollection::const_iterator iJet = jets->begin(); iJet != jets->end(); iJet++)
182 GlobalVector jetVector(iJet->p4().x(), iJet->p4().y(), iJet->p4().z());
185 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>( jetVector,
202 reco::VertexCollection::const_iterator ci = vertCollection.begin();
203 if(vertCollection.size() > 0)
212 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()