1 #ifndef RecoHI_HiTracking_HITrackingRegionForPrimaryVtxProducer_H
2 #define RecoHI_HiTracking_HITrackingRegionForPrimaryVtxProducer _H
41 double xDir = regionPSet.
getParameter<
double>(
"directionXCoord");
42 double yDir = regionPSet.
getParameter<
double>(
"directionYCoord");
43 double zDir = regionPSet.
getParameter<
double>(
"directionZCoord");
63 std::vector<const TrackingRecHit*> theChosenHits;
66 return theChosenHits.size();
77 float aa = 1.34306e-06;
79 float estTracks = aa*estMult*estMult+bb*estMult+cc;
81 LogTrace(
"heavyIonHLTVertexing")<<
"[HIVertexing]";
82 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: hits in the 1. layer:" << estMult <<
"]";
83 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: estimated number of tracks:" << estTracks <<
"]";
85 float regTracking = 60.;
89 float decEta = estTracks/90.;
92 if(estTracks>regTracking) {
93 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: Regional Tracking]";
94 LogTrace(
"heavyIonHLTVertexing")<<
" [Regional Tracking: eta range: -" << etaB <<
", "<< etaB <<
"]";
95 LogTrace(
"heavyIonHLTVertexing")<<
" [Regional Tracking: phi range: -" << phiB <<
", "<< phiB <<
"]";
96 LogTrace(
"heavyIonHLTVertexing")<<
" [Regional Tracking: factor of decrease: " << decEta*2. <<
"]";
100 float varPtCutoff = 1500;
103 if(estMult > 0) minpt += estMult * (
thePtMin - 0.075)/varPtCutoff;
107 std::vector<TrackingRegion* >
result;
122 for(reco::VertexCollection::const_iterator iV=vertexCollection->begin();
123 iV != vertexCollection->end() ; iV++) {
124 if (iV->isFake() || !iV->isValid())
continue;
130 if(estTracks>regTracking) {
135 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)
virtual ~HITrackingRegionForPrimaryVtxProducer()
edm::InputTag theSiPixelRecHits
Global3DPoint GlobalPoint
virtual std::vector< TrackingRegion * > regions(const edm::Event &ev, const edm::EventSetup &es) const
edm::InputTag theBeamSpotTag
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
edm::InputTag vertexCollName
double sigmaZ() const
sigma z
std::pair< DetId, DetIdPXBSameLayerComparator > pixelBarrelLayer(int layer)
double y0() const
y coordinate
int estimateMultiplicity(const edm::Event &ev, const edm::EventSetup &es) const
GlobalVector theDirection
HITrackingRegionForPrimaryVtxProducer(const edm::ParameterSet &cfg)
Global3DVector GlobalVector
double x0() const
x coordinate