|
|
Go to the documentation of this file. 1 #ifndef RecoHI_HiTracking_HITrackingRegionForPrimaryVtxProducer_H
2 #define RecoHI_HiTracking_HITrackingRegionForPrimaryVtxProducer _H
42 double xDir = regionPSet.
getParameter<
double>(
"directionXCoord");
43 double yDir = regionPSet.
getParameter<
double>(
"directionYCoord");
44 double zDir = regionPSet.
getParameter<
double>(
"directionZCoord");
61 desc.
add<
double>(
"ptMin", 0.7);
62 desc.
add<
bool>(
"doVariablePtMin",
true);
63 desc.
add<
double>(
"originRadius", 0.2);
64 desc.
add<
double>(
"nSigmaZ", 3.0);
66 desc.
add<
bool>(
"precise",
true);
67 desc.
add<
bool>(
"useMultipleScattering",
false);
68 desc.
add<
bool>(
"useFakeVertices",
false);
70 desc.
add<
double>(
"directionXCoord", 1.0);
71 desc.
add<
double>(
"directionYCoord", 1.0);
72 desc.
add<
double>(
"directionZCoord", 0.0);
73 desc.
add<
bool>(
"useFoundVertices",
true);
75 desc.
add<
bool>(
"useFixedError",
true);
76 desc.
add<
double>(
"fixedError", 3.0);
77 desc.
add<
double>(
"sigmaZVertex", 3.0);
83 descriptions.
add(
"hiTrackingRegionFromClusterVtx", descRegion);
94 std::vector<const TrackingRecHit*> theChosenHits;
96 return theChosenHits.size();
105 float bb = 0.0581765;
106 float aa = 1.34306e-06;
108 float estTracks = aa * estMult * estMult + bb * estMult +
cc;
110 LogTrace(
"heavyIonHLTVertexing") <<
"[HIVertexing]";
111 LogTrace(
"heavyIonHLTVertexing") <<
" [HIVertexing: hits in the 1. layer:" << estMult <<
"]";
112 LogTrace(
"heavyIonHLTVertexing") <<
" [HIVertexing: estimated number of tracks:" << estTracks <<
"]";
114 float regTracking = 60.;
118 float decEta = estTracks / 90.;
121 if (estTracks > regTracking) {
122 LogTrace(
"heavyIonHLTVertexing") <<
" [HIVertexing: Regional Tracking]";
123 LogTrace(
"heavyIonHLTVertexing") <<
" [Regional Tracking: eta range: -" << etaB <<
", " << etaB <<
"]";
124 LogTrace(
"heavyIonHLTVertexing") <<
" [Regional Tracking: phi range: -" << phiB <<
", " << phiB <<
"]";
125 LogTrace(
"heavyIonHLTVertexing") <<
" [Regional Tracking: factor of decrease: " << decEta * 2.
130 float varPtCutoff = 1500;
138 std::vector<std::unique_ptr<TrackingRegion> >
result;
154 if (iV->isFake() || !iV->isValid())
161 if (estTracks > regTracking) {
162 result.push_back(std::make_unique<RectangularEtaPhiTrackingRegion>(
173 LogTrace(
"heavyIonHLTVertexing") <<
" [HIVertexing: Global Tracking]";
ParameterDescriptionBase * add(U const &iLabel, T const &value)
int estimateMultiplicity(const edm::Event &ev, const edm::EventSetup &es) const
std::vector< Vertex > VertexCollection
collection of Vertex objects
~HITrackingRegionForPrimaryVtxProducer() override
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotToken
Global3DVector GlobalVector
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Global3DPoint GlobalPoint
void copyDetSetRange(DSTV const &dstv, std::vector< T const * > &v, std::pair< A, B > const &sel)
edm::EDGetTokenT< reco::VertexCollection > vertexCollToken
std::vector< std::unique_ptr< TrackingRegion > > regions(const edm::Event &ev, const edm::EventSetup &es) const override
GlobalVector theDirection
edm::EDGetTokenT< SiPixelRecHitCollection > theSiPixelRecHitsToken
std::pair< DetId, SameLayerComparator > pxbDetIdLayerComparator(uint32_t layer) const
edm::InputTag theSiPixelRecHits
T getParameter(std::string const &) const
edm::InputTag vertexCollName
edm::InputTag theBeamSpotTag
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
HITrackingRegionForPrimaryVtxProducer(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)