1 #ifndef RecoHI_HiTracking_HITrackingRegionForPrimaryVtxProducer_H
2 #define RecoHI_HiTracking_HITrackingRegionForPrimaryVtxProducer _H
43 double xDir = regionPSet.
getParameter<
double>(
"directionXCoord");
44 double yDir = regionPSet.
getParameter<
double>(
"directionYCoord");
45 double zDir = regionPSet.
getParameter<
double>(
"directionZCoord");
66 std::vector<const TrackingRecHit*> theChosenHits;
69 return theChosenHits.size();
80 float aa = 1.34306e-06;
82 float estTracks = aa*estMult*estMult+bb*estMult+cc;
84 LogTrace(
"heavyIonHLTVertexing")<<
"[HIVertexing]";
85 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: hits in the 1. layer:" << estMult <<
"]";
86 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: estimated number of tracks:" << estTracks <<
"]";
88 float regTracking = 60.;
92 float decEta = estTracks/90.;
95 if(estTracks>regTracking) {
96 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: Regional Tracking]";
97 LogTrace(
"heavyIonHLTVertexing")<<
" [Regional Tracking: eta range: -" << etaB <<
", "<< etaB <<
"]";
98 LogTrace(
"heavyIonHLTVertexing")<<
" [Regional Tracking: phi range: -" << phiB <<
", "<< phiB <<
"]";
99 LogTrace(
"heavyIonHLTVertexing")<<
" [Regional Tracking: factor of decrease: " << decEta*2. <<
"]";
103 float varPtCutoff = 1500;
106 if(estMult > 0) minpt += estMult * (
thePtMin - 0.075)/varPtCutoff;
110 std::vector<TrackingRegion* >
result;
125 for(reco::VertexCollection::const_iterator iV=vertexCollection->begin();
126 iV != vertexCollection->end() ; iV++) {
127 if (iV->isFake() || !iV->isValid())
continue;
133 if(estTracks>regTracking) {
138 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
std::pair< DetId, DetIdPXBSameLayerComparator > pixelBarrelLayer(int layer)
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