#include <RoadSearchCloudMakerAlgorithm.h>
Public Member Functions | |
double | CheckXYIntersection (LocalPoint &ip1, LocalPoint &op1, LocalPoint &ip2, LocalPoint &op2) |
double | CheckZPhiIntersection (double iPhi1, double iZ1, double oPhi1, double oZ1, double iPhi2, double iZ2, double oPhi2, double oZ2) |
RoadSearchCloudCollection | Clean (RoadSearchCloudCollection *rawColl) |
SiStripMatchedRecHit2D * | CorrectMatchedHit (const TrackingRecHit *originalRH, const GluedGeomDet *gluedDet, const TrackerGeometry *tracker, const SiStripRecHitMatcher *theHitMatcher, double k0, double phi0) |
unsigned int | FillPixRecHitsIntoCloud (DetId id, const SiPixelRecHitCollection *inputRecHits, double d0, double phi0, double k0, Roads::type roadType, double ringPhi, const TrackerGeometry *tracker, RoadSearchCloud &cloud) |
unsigned int | FillRecHitsIntoCloud (DetId id, const SiStripRecHit2DCollection *inputRecHits, double d0, double phi0, double k0, Roads::type roadType, double ringPhi, const TrackerGeometry *tracker, RoadSearchCloud &cloud) |
unsigned int | FillRecHitsIntoCloudGeneral (DetId id, double d0, double phi0, double k0, double phi1, double k1, Roads::type roadType, double ringPhi, const TrackerGeometry *tracker, const SiStripRecHitMatcher *theHitMatcher, RoadSearchCloud &cloud) |
bool | isBarrelSensor (DetId id) |
bool | isSingleLayer (DetId id) |
void | makecircle (double x1_cs, double y1_cs, double x2_cs, double y2_cs, double x3_cs, double y3_cs) |
double | map_phi (double phi) |
double | map_phi2 (double phi) |
double | phiFromExtrapolation (double d0, double phi0, double k0, double ringRadius, Roads::type roadType) |
double | phiMax (Roads::type roadType, double phi0, double k0) |
RoadSearchCloudMakerAlgorithm (const edm::ParameterSet &conf) | |
void | run (edm::Handle< RoadSearchSeedCollection > input, const SiStripRecHit2DCollection *rphiRecHits, const SiStripRecHit2DCollection *stereoRecHits, const SiStripMatchedRecHit2DCollection *matchedRecHits, const SiPixelRecHitCollection *pixRecHits, const edm::EventSetup &es, RoadSearchCloudCollection &output) |
Runs the algorithm. More... | |
double | ZPhiDeltaPhi (double phi1, double phi2, double phiExpect) |
~RoadSearchCloudMakerAlgorithm () | |
Private Attributes | |
edm::ParameterSet | conf_ |
double | d0h |
bool | doCleaning_ |
unsigned int | increaseMaxNumberOfConsecutiveMissedLayersPerCloud |
unsigned int | increaseMaxNumberOfMissedLayersPerCloud |
unsigned int | maxDetHitsInCloudPerDetId |
double | maxFractionOfConsecutiveMissedLayersPerCloud |
double | maxFractionOfMissedLayersPerCloud |
unsigned int | maxRecHitsInCloud_ |
double | mergingFraction_ |
double | minFractionOfUsedLayersPerCloud |
bool | NoFieldCosmic |
double | omegah |
std::ostringstream | output_ |
double | phi0h |
DetHitAccess | recHitVectorClass |
std::string | roadsLabel_ |
double | rphicsq |
int | rphinhits |
double | scalefactorRoadSeedWindow_ |
double | theMinimumHalfRoad |
const SiPixelRecHitCollection | thePixRecHits |
double | theRPhiRoadSize |
double | theZPhiRoadSize |
bool | UsePixels |
Static Private Attributes | |
static double | epsilon = 0.000000001 |
Definition at line 82 of file RoadSearchCloudMakerAlgorithm.h.
RoadSearchCloudMakerAlgorithm::RoadSearchCloudMakerAlgorithm | ( | const edm::ParameterSet & | conf | ) |
Definition at line 103 of file RoadSearchCloudMakerAlgorithm.cc.
References conf_, doCleaning_, edm::ParameterSet::getParameter(), increaseMaxNumberOfConsecutiveMissedLayersPerCloud, increaseMaxNumberOfMissedLayersPerCloud, maxDetHitsInCloudPerDetId, maxFractionOfConsecutiveMissedLayersPerCloud, maxFractionOfMissedLayersPerCloud, maxRecHitsInCloud_, mergingFraction_, minFractionOfUsedLayersPerCloud, NoFieldCosmic, recHitVectorClass, roadsLabel_, scalefactorRoadSeedWindow_, DetHitAccess::setMode(), DetHitAccess::standard, theMinimumHalfRoad, theRPhiRoadSize, theZPhiRoadSize, DetHitAccess::use_rphiRecHits(), DetHitAccess::use_stereoRecHits(), and UsePixels.
RoadSearchCloudMakerAlgorithm::~RoadSearchCloudMakerAlgorithm | ( | ) |
Definition at line 131 of file RoadSearchCloudMakerAlgorithm.cc.
double RoadSearchCloudMakerAlgorithm::CheckXYIntersection | ( | LocalPoint & | ip1, |
LocalPoint & | op1, | ||
LocalPoint & | ip2, | ||
LocalPoint & | op2 | ||
) |
Definition at line 1007 of file RoadSearchCloudMakerAlgorithm.cc.
References inter, min, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by FillRecHitsIntoCloudGeneral().
double RoadSearchCloudMakerAlgorithm::CheckZPhiIntersection | ( | double | iPhi1, |
double | iZ1, | ||
double | oPhi1, | ||
double | oZ1, | ||
double | iPhi2, | ||
double | iZ2, | ||
double | oPhi2, | ||
double | oZ2 | ||
) |
Definition at line 1045 of file RoadSearchCloudMakerAlgorithm.cc.
References SiPixelRawToDigiRegional_cfi::deltaPhi, inter, map_phi2(), min, and Geom::pi().
Referenced by FillRecHitsIntoCloudGeneral().
RoadSearchCloudCollection RoadSearchCloudMakerAlgorithm::Clean | ( | RoadSearchCloudCollection * | rawColl | ) |
Definition at line 1124 of file RoadSearchCloudMakerAlgorithm.cc.
References RoadSearchCloud::addHit(), RoadSearchCloud::begin_hits(), RoadSearchCloud::end_hits(), i, gen::k, LogDebug, maxRecHitsInCloud_, mergingFraction_, convertSQLitetoXML_cfg::output, and RoadSearchCloud::size().
Referenced by run().
SiStripMatchedRecHit2D * RoadSearchCloudMakerAlgorithm::CorrectMatchedHit | ( | const TrackingRecHit * | originalRH, |
const GluedGeomDet * | gluedDet, | ||
const TrackerGeometry * | tracker, | ||
const SiStripRecHitMatcher * | theHitMatcher, | ||
double | k0, | ||
double | phi0 | ||
) |
Definition at line 1238 of file RoadSearchCloudMakerAlgorithm.cc.
References funct::cos(), gather_cfg::cout, TrackingRecHit::geographicalId(), TrackerGeometry::idToDet(), reco::ParticleMasses::k0, BaseTrackerRecHit::localPosition(), map_phi2(), SiStripRecHitMatcher::match(), GluedGeomDet::monoDet(), SiStripMatchedRecHit2D::monoHit(), PV3DBase< T, PVType, FrameType >::perp(), funct::sin(), GeomDet::surface(), toLocal(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by FillRecHitsIntoCloudGeneral().
unsigned int RoadSearchCloudMakerAlgorithm::FillPixRecHitsIntoCloud | ( | DetId | id, |
const SiPixelRecHitCollection * | inputRecHits, | ||
double | d0, | ||
double | phi0, | ||
double | k0, | ||
Roads::type | roadType, | ||
double | ringPhi, | ||
const TrackerGeometry * | tracker, | ||
RoadSearchCloud & | cloud | ||
) |
Definition at line 798 of file RoadSearchCloudMakerAlgorithm.cc.
References abs, RoadSearchCloud::addHit(), edmNew::DetSet< T >::begin(), edmNew::DetSet< T >::end(), edmNew::DetSetVector< T >::end(), edmNew::DetSetVector< T >::find(), TrackingRecHit::geographicalId(), TrackerGeometry::idToDet(), TrackerGeometry::idToDetUnit(), isBarrelSensor(), BaseTrackerRecHit::localPosition(), map_phi(), phi, PV3DBase< T, PVType, FrameType >::phi(), phiFromExtrapolation(), phiMax(), Roads::RPhi, mathSSE::sqrt(), GeomDet::surface(), GeomDet::toGlobal(), Surface::toGlobal(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
unsigned int RoadSearchCloudMakerAlgorithm::FillRecHitsIntoCloud | ( | DetId | id, |
const SiStripRecHit2DCollection * | inputRecHits, | ||
double | d0, | ||
double | phi0, | ||
double | k0, | ||
Roads::type | roadType, | ||
double | ringPhi, | ||
const TrackerGeometry * | tracker, | ||
RoadSearchCloud & | cloud | ||
) |
unsigned int RoadSearchCloudMakerAlgorithm::FillRecHitsIntoCloudGeneral | ( | DetId | id, |
double | d0, | ||
double | phi0, | ||
double | k0, | ||
double | phi1, | ||
double | k1, | ||
Roads::type | roadType, | ||
double | ringPhi, | ||
const TrackerGeometry * | tracker, | ||
const SiStripRecHitMatcher * | theHitMatcher, | ||
RoadSearchCloud & | cloud | ||
) |
Definition at line 492 of file RoadSearchCloudMakerAlgorithm.cc.
References abs, RoadSearchCloud::addHit(), CheckXYIntersection(), CheckZPhiIntersection(), CorrectMatchedHit(), funct::cos(), SiPixelRawToDigiRegional_cfi::deltaPhi, TrackingRecHit::geographicalId(), DetHitAccess::getHitVector(), TrackerGeometry::idToDet(), TrackerGeometry::idToDetUnit(), isBarrelSensor(), isSingleLayer(), BaseTrackerRecHit::localPosition(), StripTopology::localStripLength(), LogDebug, map_phi(), map_phi2(), maxDetHitsInCloudPerDetId, maxRecHitsInCloud_, PV3DBase< T, PVType, FrameType >::perp(), phi, PV3DBase< T, PVType, FrameType >::phi(), phiFromExtrapolation(), phiMax(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, recHitVectorClass, Roads::RPhi, funct::sin(), RoadSearchCloud::size(), mathSSE::sqrt(), StripTopology::strip(), StripTopology::stripAngle(), GeomDet::surface(), funct::tan(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, GeomDet::toGlobal(), Surface::toGlobal(), GloballyPositioned< T >::toLocal(), GeomDetUnit::topology(), UsePixels, PV3DBase< T, PVType, FrameType >::x(), vdt::x, detailsBasic3DVector::y, PV3DBase< T, PVType, FrameType >::y(), detailsBasic3DVector::z, PV3DBase< T, PVType, FrameType >::z(), and ZPhiDeltaPhi().
Referenced by run().
bool RoadSearchCloudMakerAlgorithm::isBarrelSensor | ( | DetId | id | ) |
Definition at line 909 of file RoadSearchCloudMakerAlgorithm.cc.
References PixelSubdetector::PixelBarrel, StripSubdetector::TIB, and StripSubdetector::TOB.
Referenced by FillPixRecHitsIntoCloud(), and FillRecHitsIntoCloudGeneral().
bool RoadSearchCloudMakerAlgorithm::isSingleLayer | ( | DetId | id | ) |
Definition at line 880 of file RoadSearchCloudMakerAlgorithm.cc.
References SiStripDetId::glued(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, and StripSubdetector::TOB.
Referenced by FillRecHitsIntoCloudGeneral().
void RoadSearchCloudMakerAlgorithm::makecircle | ( | double | x1_cs, |
double | y1_cs, | ||
double | x2_cs, | ||
double | y2_cs, | ||
double | x3_cs, | ||
double | y3_cs | ||
) |
Definition at line 980 of file RoadSearchCloudMakerAlgorithm.cc.
References d0h, epsilon, python.connectstrParser::f1, python.connectstrParser::f2, python.connectstrParser::f3, Geom::halfPi(), omegah, phi0h, rho, and mathSSE::sqrt().
Referenced by run().
double RoadSearchCloudMakerAlgorithm::map_phi | ( | double | phi | ) |
Definition at line 135 of file RoadSearchCloudMakerAlgorithm.cc.
References phi, query::result, and Geom::twoPi().
Referenced by FillPixRecHitsIntoCloud(), FillRecHitsIntoCloudGeneral(), phiFromExtrapolation(), and run().
double RoadSearchCloudMakerAlgorithm::map_phi2 | ( | double | phi | ) |
Definition at line 144 of file RoadSearchCloudMakerAlgorithm.cc.
References phi, Geom::pi(), query::result, and Geom::twoPi().
Referenced by CheckZPhiIntersection(), CorrectMatchedHit(), FillRecHitsIntoCloudGeneral(), run(), and ZPhiDeltaPhi().
double RoadSearchCloudMakerAlgorithm::phiFromExtrapolation | ( | double | d0, |
double | phi0, | ||
double | k0, | ||
double | ringRadius, | ||
Roads::type | roadType | ||
) |
Definition at line 923 of file RoadSearchCloudMakerAlgorithm.cc.
References funct::cos(), reco::ParticleMasses::k0, prof2calltree::l, map_phi(), Roads::RPhi, funct::sin(), and mathSSE::sqrt().
Referenced by FillPixRecHitsIntoCloud(), FillRecHitsIntoCloudGeneral(), and run().
double RoadSearchCloudMakerAlgorithm::phiMax | ( | Roads::type | roadType, |
double | phi0, | ||
double | k0 | ||
) |
Definition at line 960 of file RoadSearchCloudMakerAlgorithm.cc.
References Roads::RPhi, theRPhiRoadSize, theZPhiRoadSize, and Roads::ZPhi.
Referenced by FillPixRecHitsIntoCloud(), and FillRecHitsIntoCloudGeneral().
void RoadSearchCloudMakerAlgorithm::run | ( | edm::Handle< RoadSearchSeedCollection > | input, |
const SiStripRecHit2DCollection * | rphiRecHits, | ||
const SiStripRecHit2DCollection * | stereoRecHits, | ||
const SiStripMatchedRecHit2DCollection * | matchedRecHits, | ||
const SiPixelRecHitCollection * | pixRecHits, | ||
const edm::EventSetup & | es, | ||
RoadSearchCloudCollection & | output | ||
) |
Runs the algorithm.
Definition at line 152 of file RoadSearchCloudMakerAlgorithm.cc.
References abs, alpha, begin, Clean(), funct::cos(), cond::rpcobgas::detid, doCleaning_, relativeConstraints::empty, PV3DBase< T, PVType, FrameType >::eta(), FillRecHitsIntoCloudGeneral(), TrackingRecHit::geographicalId(), edm::EventSetup::get(), increaseMaxNumberOfConsecutiveMissedLayersPerCloud, increaseMaxNumberOfMissedLayersPerCloud, reco::ParticleMasses::k0, TrackingRecHit::localPosition(), LogDebug, makecircle(), map_phi(), map_phi2(), maxFractionOfConsecutiveMissedLayersPerCloud, maxFractionOfMissedLayersPerCloud, minFractionOfUsedLayersPerCloud, netabin, NoFieldCosmic, omegah, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), phi0h, phiFromExtrapolation(), Geom::pi(), edm::Handle< T >::product(), edm::ESHandle< class >::product(), recHitVectorClass, relativeConstraints::ring, RoadMapESSource_cfi::roads, roadsLabel_, Roads::RPhi, DetHitAccess::setCollections(), DetHitAccess::setMode(), funct::sin(), RoadSearchCloud::size(), mathSSE::sqrt(), DetHitAccess::standard, groupFilesInBlocks::temp, theMinimumHalfRoad, patCandidatesForDimuonsSequences_cff::tracker, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by RoadSearchCloudMaker::produce().
double RoadSearchCloudMakerAlgorithm::ZPhiDeltaPhi | ( | double | phi1, |
double | phi2, | ||
double | phiExpect | ||
) |
Definition at line 1091 of file RoadSearchCloudMakerAlgorithm.cc.
References abs, SiPixelRawToDigiRegional_cfi::deltaPhi, and map_phi2().
Referenced by FillRecHitsIntoCloudGeneral().
|
private |
Definition at line 143 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by RoadSearchCloudMakerAlgorithm().
|
private |
Definition at line 145 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by makecircle().
|
private |
Definition at line 165 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by RoadSearchCloudMakerAlgorithm(), and run().
|
staticprivate |
Definition at line 144 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by utils.BinToBin::checkBinningMatches(), utils.BinToBin1percent::checkBinningMatches(), utils.BinToBin::do_test(), and makecircle().
|
private |
Definition at line 162 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by RoadSearchCloudMakerAlgorithm(), and run().
|
private |
Definition at line 163 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by RoadSearchCloudMakerAlgorithm(), and run().
|
private |
Definition at line 158 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by FillRecHitsIntoCloudGeneral(), and RoadSearchCloudMakerAlgorithm().
|
private |
Definition at line 161 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by RoadSearchCloudMakerAlgorithm(), and run().
|
private |
Definition at line 160 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by RoadSearchCloudMakerAlgorithm(), and run().
|
private |
Definition at line 167 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by Clean(), FillRecHitsIntoCloudGeneral(), and RoadSearchCloudMakerAlgorithm().
|
private |
Definition at line 166 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by Clean(), and RoadSearchCloudMakerAlgorithm().
|
private |
Definition at line 159 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by RoadSearchCloudMakerAlgorithm(), and run().
|
private |
Definition at line 157 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by RoadSearchCloudMakerAlgorithm(), and run().
|
private |
Definition at line 145 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by makecircle(), and run().
|
private |
Definition at line 169 of file RoadSearchCloudMakerAlgorithm.h.
|
private |
Definition at line 145 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by makecircle(), and run().
|
private |
Definition at line 151 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by FillRecHitsIntoCloudGeneral(), RoadSearchCloudMakerAlgorithm(), and run().
|
private |
Definition at line 172 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by RoadSearchCloudMakerAlgorithm(), and run().
|
private |
Definition at line 146 of file RoadSearchCloudMakerAlgorithm.h.
|
private |
Definition at line 147 of file RoadSearchCloudMakerAlgorithm.h.
|
private |
Definition at line 170 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by RoadSearchCloudMakerAlgorithm().
|
private |
Definition at line 155 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by RoadSearchCloudMakerAlgorithm(), and run().
|
private |
Definition at line 148 of file RoadSearchCloudMakerAlgorithm.h.
|
private |
Definition at line 153 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by phiMax(), and RoadSearchCloudMakerAlgorithm().
|
private |
Definition at line 154 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by phiMax(), and RoadSearchCloudMakerAlgorithm().
|
private |
Definition at line 156 of file RoadSearchCloudMakerAlgorithm.h.
Referenced by FillRecHitsIntoCloudGeneral(), and RoadSearchCloudMakerAlgorithm().