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");
63 desc.
add<
double>(
"ptMin", 0.7);
64 desc.
add<
bool>(
"doVariablePtMin",
true);
65 desc.
add<
double>(
"originRadius", 0.2);
66 desc.
add<
double>(
"nSigmaZ", 3.0);
68 desc.
add<
bool>(
"precise",
true);
69 desc.
add<
bool>(
"useMultipleScattering",
false);
70 desc.
add<
bool>(
"useFakeVertices",
false);
72 desc.
add<
double>(
"directionXCoord", 1.0);
73 desc.
add<
double>(
"directionYCoord", 1.0);
74 desc.
add<
double>(
"directionZCoord", 0.0);
75 desc.
add<
bool>(
"useFoundVertices",
true);
77 desc.
add<
bool>(
"useFixedError",
true);
78 desc.
add<
double>(
"fixedError", 3.0);
79 desc.
add<
double>(
"sigmaZVertex", 3.0);
85 descriptions.
add(
"hiTrackingRegionFromClusterVtx", descRegion);
98 std::vector<const TrackingRecHit*> theChosenHits;
100 return theChosenHits.size();
110 float bb = 0.0581765;
111 float aa = 1.34306e-06;
113 float estTracks = aa*estMult*estMult+bb*estMult+cc;
115 LogTrace(
"heavyIonHLTVertexing")<<
"[HIVertexing]";
116 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: hits in the 1. layer:" << estMult <<
"]";
117 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: estimated number of tracks:" << estTracks <<
"]";
119 float regTracking = 60.;
123 float decEta = estTracks/90.;
126 if(estTracks>regTracking) {
127 LogTrace(
"heavyIonHLTVertexing")<<
" [HIVertexing: Regional Tracking]";
128 LogTrace(
"heavyIonHLTVertexing")<<
" [Regional Tracking: eta range: -" << etaB <<
", "<< etaB <<
"]";
129 LogTrace(
"heavyIonHLTVertexing")<<
" [Regional Tracking: phi range: -" << phiB <<
", "<< phiB <<
"]";
130 LogTrace(
"heavyIonHLTVertexing")<<
" [Regional Tracking: factor of decrease: " << decEta*2. <<
"]";
134 float varPtCutoff = 1500;
137 if(estMult > 0) minpt += estMult * (
thePtMin - 0.075)/varPtCutoff;
141 std::vector<std::unique_ptr<TrackingRegion> >
result;
156 for(reco::VertexCollection::const_iterator iV=vertexCollection->begin();
157 iV != vertexCollection->end() ; iV++) {
158 if (iV->isFake() || !iV->isValid())
continue;
164 if(estTracks>regTracking) {
169 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< std::unique_ptr< TrackingRegion > > regions(const edm::Event &ev, const edm::EventSetup &es) const
edm::InputTag theBeamSpotTag
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
HITrackingRegionForPrimaryVtxProducer(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
edm::InputTag vertexCollName
double sigmaZ() const
sigma z
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotToken
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< reco::VertexCollection > vertexCollToken
double y0() const
y coordinate
int estimateMultiplicity(const edm::Event &ev, const edm::EventSetup &es) const
GlobalVector theDirection
std::pair< DetId, SameLayerComparator > pxbDetIdLayerComparator(uint32_t layer) const
Global3DVector GlobalVector
double x0() const
x coordinate