◆ Charge
◆ TrackingRegionsFromSuperClustersProducer()
◆ ~TrackingRegionsFromSuperClustersProducer()
TrackingRegionsFromSuperClustersProducer::~TrackingRegionsFromSuperClustersProducer |
( |
| ) |
|
|
inlineoverride |
◆ createTrackingRegion()
Definition at line 280 of file TrackingRegionsFromSuperClustersProducer.cc.
291 return std::make_unique<RectangularEtaPhiTrackingRegion>(fts.momentum(),
References ALCARECOTkAlJpsiMuMu_cff::charge, deltaEtaRegion_, deltaPhiRegion_, HCALHighEnergyHPDFilter_cfi::energy, reco::CaloCluster::energy(), trackingTools::ftsFromVertexToPoint(), originRadius_, reco::CaloCluster::position(), precise_, ptMin_, and whereToUseMeasTracker_.
Referenced by regions().
◆ fillDescriptions()
Definition at line 187 of file TrackingRegionsFromSuperClustersProducer.cc.
190 desc.add<
double>(
"ptMin", 1.5);
191 desc.add<
double>(
"originRadius", 0.2);
192 desc.add<
double>(
"originHalfLength", 15.0)
193 ->setComment(
"z range is +/- this value except when using the beamspot (useZInBeamspot=true)");
194 desc.add<
double>(
"deltaPhiRegion", 0.4);
195 desc.add<
double>(
"deltaEtaRegion", 0.1);
196 desc.add<
bool>(
"useZInVertex",
false)
197 ->setComment(
"use the leading vertex position +/-orginHalfLength, mutually exclusive with useZInBeamspot");
198 desc.add<
bool>(
"useZInBeamspot",
true)
200 "use the beamspot position +/- nrSigmaForBSDeltaZ* sigmaZ_{bs}, mutually exclusive with useZInVertex");
201 desc.add<
double>(
"nrSigmaForBSDeltaZ", 3.0)
202 ->setComment(
"# of sigma to extend the z region when using the beamspot, only active if useZInBeamspot=true");
203 desc.add<
double>(
"minBSDeltaZ", 0.0)
204 ->setComment(
"a minimum value of the beamspot sigma z to use, only active if useZInBeamspot=true");
205 desc.add<
double>(
"defaultZ", 0.)
206 ->setComment(
"the default z position, only used if useZInVertex and useZInBeamspot are both false");
207 desc.add<
bool>(
"precise",
true);
210 ->setComment(
"only used if useZInBeamspot is true");
212 desc.add<std::vector<edm::InputTag>>(
"superClusters",
213 std::vector<edm::InputTag>{
edm::InputTag{
"hltEgammaSuperClustersToPixelMatch"}});
219 descriptions.
add(
"trackingRegionsFromSuperClusters", descRegion);
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ getVtxPos()
GlobalPoint TrackingRegionsFromSuperClustersProducer::getVtxPos |
( |
const edm::Event & |
iEvent, |
|
|
double & |
deltaZVertex |
|
) |
| const |
|
private |
Definition at line 248 of file TrackingRegionsFromSuperClustersProducer.cc.
253 if (!verticesHandle->empty()) {
255 const auto&
pv = verticesHandle->front();
267 const double bsSigmaZ =
std::sqrt(beamSpotHandle->sigmaZ() * beamSpotHandle->sigmaZ() +
268 beamSpotHandle->sigmaZ0Error() * beamSpotHandle->sigmaZ0Error());
References beamSpotToken_, qcdUeDQM_cfi::bsPos, defaultZ_, iEvent, SiStripPI::max, minBSDeltaZ_, nrSigmaForBSDeltaZ_, originHalfLength_, MetAnalyzer::pv(), BeamSpotPI::sigmaZ, mathSSE::sqrt(), useZInBeamspot_, useZInVertex_, and verticesToken_.
Referenced by regions().
◆ regions()
Implements TrackingRegionProducer.
Definition at line 222 of file TrackingRegionsFromSuperClustersProducer.cc.
226 double deltaZVertex = 0;
236 auto superClustersHandle = getHandle(
iEvent, superClustersToken);
237 for (
auto& superClusterRef : *superClustersHandle) {
References createTrackingRegion(), edm::EventSetup::getData(), getVtxPos(), iEvent, edm::EDGetTokenT< T >::isUninitialized(), magFieldToken_, measTrackerEventToken_, NEG, POS, superClustersTokens_, and hltSeeds_cff::trackingRegions.
◆ validateConfigSettings()
void TrackingRegionsFromSuperClustersProducer::validateConfigSettings |
( |
| ) |
const |
|
private |
◆ beamSpotToken_
◆ defaultZ_
double TrackingRegionsFromSuperClustersProducer::defaultZ_ |
|
private |
◆ deltaEtaRegion_
double TrackingRegionsFromSuperClustersProducer::deltaEtaRegion_ |
|
private |
◆ deltaPhiRegion_
double TrackingRegionsFromSuperClustersProducer::deltaPhiRegion_ |
|
private |
◆ magFieldToken_
◆ measTrackerEventToken_
◆ minBSDeltaZ_
double TrackingRegionsFromSuperClustersProducer::minBSDeltaZ_ |
|
private |
◆ nrSigmaForBSDeltaZ_
double TrackingRegionsFromSuperClustersProducer::nrSigmaForBSDeltaZ_ |
|
private |
◆ originHalfLength_
double TrackingRegionsFromSuperClustersProducer::originHalfLength_ |
|
private |
◆ originRadius_
double TrackingRegionsFromSuperClustersProducer::originRadius_ |
|
private |
◆ precise_
bool TrackingRegionsFromSuperClustersProducer::precise_ |
|
private |
◆ ptMin_
double TrackingRegionsFromSuperClustersProducer::ptMin_ |
|
private |
◆ superClustersTokens_
◆ useZInBeamspot_
bool TrackingRegionsFromSuperClustersProducer::useZInBeamspot_ |
|
private |
◆ useZInVertex_
bool TrackingRegionsFromSuperClustersProducer::useZInVertex_ |
|
private |
◆ verticesToken_
◆ whereToUseMeasTracker_
std::unique_ptr< TrackingRegion > createTrackingRegion(const reco::SuperCluster &superCluster, const GlobalPoint &vtxPos, const double deltaZVertex, const Charge charge, const MeasurementTrackerEvent *measTrackerEvent, const MagneticField &magField) const