1 #ifndef RecoHI_HiTracking_HITrackingRegionForPrimaryVtxProducer_H
2 #define RecoHI_HiTracking_HITrackingRegionForPrimaryVtxProducer _H
44 double xDir = regionPSet.
getParameter<
double>(
"directionXCoord");
45 double yDir = regionPSet.
getParameter<
double>(
"directionYCoord");
46 double zDir = regionPSet.
getParameter<
double>(
"directionZCoord");
70 std::vector<const TrackingRecHit*> theChosenHits;
72 return theChosenHits.size();
83 float aa = 1.34306e-06;
85 float estTracks = aa*estMult*estMult+bb*estMult+cc;
87 LogTrace(
"heavyIonHLTVertexing")<<
"[HIVertexing]";
88 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: hits in the 1. layer:" << estMult <<
"]";
89 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: estimated number of tracks:" << estTracks <<
"]";
91 float regTracking = 60.;
95 float decEta = estTracks/90.;
98 if(estTracks>regTracking) {
99 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: Regional Tracking]";
100 LogTrace(
"heavyIonHLTVertexing")<<
" [Regional Tracking: eta range: -" << etaB <<
", "<< etaB <<
"]";
101 LogTrace(
"heavyIonHLTVertexing")<<
" [Regional Tracking: phi range: -" << phiB <<
", "<< phiB <<
"]";
102 LogTrace(
"heavyIonHLTVertexing")<<
" [Regional Tracking: factor of decrease: " << decEta*2. <<
"]";
106 float varPtCutoff = 1500;
109 if(estMult > 0) minpt += estMult * (
thePtMin - 0.075)/varPtCutoff;
113 std::vector<TrackingRegion* >
result;
128 for(reco::VertexCollection::const_iterator iV=vertexCollection->begin();
129 iV != vertexCollection->end() ; iV++) {
130 if (iV->isFake() || !iV->isValid())
continue;
136 if(estTracks>regTracking) {
141 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: Global Tracking]";
T getParameter(std::string const &) const
double z0() const
z coordinate
void copyDetSetRange(DSTV const &dstv, std::vector< T const * > &v, std::pair< A, B > const &sel)
edm::EDGetTokenT< SiPixelRecHitCollection > theSiPixelRecHitsToken
virtual ~HITrackingRegionForPrimaryVtxProducer()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::InputTag theSiPixelRecHits
Global3DPoint GlobalPoint
std::vector< Vertex > VertexCollection
collection of Vertex objects
virtual std::vector< TrackingRegion * > regions(const edm::Event &ev, const edm::EventSetup &es) const
edm::InputTag theBeamSpotTag
HITrackingRegionForPrimaryVtxProducer(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
edm::InputTag vertexCollName
double sigmaZ() const
sigma z
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotToken
edm::EDGetTokenT< reco::VertexCollection > vertexCollToken
double y0() const
y coordinate
int estimateMultiplicity(const edm::Event &ev, const edm::EventSetup &es) const
GlobalVector theDirection
Global3DVector GlobalVector
double x0() const
x coordinate