1 #ifndef RecoHI_HiTracking_HITrackingRegionProducer_H 2 #define RecoHI_HiTracking_HITrackingRegionProducer_H 31 double xPos = regionPSet.
getParameter<
double>(
"originXPos");
32 double yPos = regionPSet.
getParameter<
double>(
"originYPos");
33 double zPos = regionPSet.
getParameter<
double>(
"originZPos");
34 double xDir = regionPSet.
getParameter<
double>(
"directionXCoord");
35 double yDir = regionPSet.
getParameter<
double>(
"directionYCoord");
36 double zDir = regionPSet.
getParameter<
double>(
"directionZCoord");
60 recHitIdIterator != recHitIdIteratorEnd; recHitIdIterator++) {
63 unsigned int detType=detId.
det();
68 if(detType==1 && subid==1 && layer==1) {
69 numRecHits += hits.
size();
80 float aa = 1.90935e-04;
81 float bb = -2.90167e-01;
82 float cc = 3.86125e+02;
84 float estTracks = aa*estMult*estMult+bb*estMult+cc;
86 LogTrace(
"heavyIonHLTVertexing")<<
"[HIVertexing]";
87 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: hits in the 1. layer:" << estMult <<
"]";
88 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: estimated number of tracks:" << estTracks <<
"]";
90 float regTracking = 400.;
94 float decEta = estTracks/600.;
97 if(estTracks>regTracking) {
98 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: Regional Tracking]";
99 LogTrace(
"heavyIonHLTVertexing")<<
" [Regional Tracking: eta range: -" << etaB <<
", "<< etaB <<
"]";
100 LogTrace(
"heavyIonHLTVertexing")<<
" [Regional Tracking: phi range: -" << phiB <<
", "<< phiB <<
"]";
101 LogTrace(
"heavyIonHLTVertexing")<<
" [Regional Tracking: factor of decrease: " << decEta*2. <<
"]";
105 std::vector<std::unique_ptr<TrackingRegion> >
result;
106 if(estTracks>regTracking) {
110 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: Global Tracking]";
T getParameter(std::string const &) const
int estimateMultiplicity(const edm::Event &ev, const edm::EventSetup &es) const
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator end(bool update=false) const
HITrackingRegionProducer(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< SiPixelRecHitCollection > theSiPixelRecHitsToken
edm::InputTag theSiPixelRecHits
Global3DPoint GlobalPoint
GlobalVector theDirection
~HITrackingRegionProducer() override
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
unsigned int pxbLayer(const DetId &id) const
double theOriginHalfLength
const_iterator begin(bool update=false) const
std::vector< std::unique_ptr< TrackingRegion > > regions(const edm::Event &ev, const edm::EventSetup &es) const override
Global3DVector GlobalVector
constexpr Detector det() const
get the detector field from this detid