Class used to obtain vector of all compatible TMs associated to a trajectory to be used by the NuclearTester. More...
#include <NuclearInteractionFinder.h>
Public Member Functions | |
std::unique_ptr< TrajectorySeedCollection > | getPersistentSeeds () |
Fill 'output' with persistent nuclear seeds. More... | |
void | improveSeeds (const MeasurementTrackerEvent &event) |
Improve the seeds with a third RecHit. More... | |
const NavigationSchool * | nav () const |
NuclearInteractionFinder () | |
NuclearInteractionFinder (const edm::EventSetup &es, const edm::ParameterSet &iConfig) | |
TrajectoryStateOnSurface | rescaleError (float rescale, const TSOS &state) const |
bool | run (const Trajectory &traj, const MeasurementTrackerEvent &event) |
Run the Finder. More... | |
virtual | ~NuclearInteractionFinder () |
Private Types | |
typedef TrajectoryMeasurement::ConstRecHitPointer | ConstRecHitPointer |
typedef FreeTrajectoryState | FTS |
typedef TrajectoryMeasurement | TM |
typedef std::vector< Trajectory > | TrajectoryContainer |
typedef TrajectoryStateOnSurface | TSOS |
Private Member Functions | |
void | definePrimaryHelix (std::vector< TrajectoryMeasurement >::const_iterator it_meas) |
Calculate the parameters of the circle representing the primary track at the interaction point. More... | |
void | fillSeeds (const std::pair< TrajectoryMeasurement, std::vector< TrajectoryMeasurement > > &tmPairs) |
get the seeds at the interaction point More... | |
std::vector< TrajectoryMeasurement > | findCompatibleMeasurements (const TM &lastMeas, double rescaleFactor, const LayerMeasurements &layerMeasurements) const |
Find compatible TM of a TM with error rescaled by rescaleFactor. More... | |
std::vector< TrajectoryMeasurement > | findMeasurementsFromTSOS (const TSOS ¤tState, DetId detid, const LayerMeasurements &layerMeasurements) const |
Private Attributes | |
std::vector< SeedFromNuclearInteraction > | allSeeds |
bool | checkCompletedTrack |
SeedFromNuclearInteraction * | currentSeed |
unsigned int | maxHits |
std::string | navigationSchoolName |
NuclearTester * | nuclTester |
double | ptMin |
double | rescaleErrorFactor |
const MeasurementEstimator * | theEstimator |
const GeometricSearchTracker * | theGeomSearchTracker |
edm::ESHandle< MagneticField > | theMagField |
const MeasurementTracker * | theMeasurementTracker |
const NavigationSchool * | theNavigationSchool |
TangentHelix * | thePrimaryHelix |
const Propagator * | thePropagator |
Class used to obtain vector of all compatible TMs associated to a trajectory to be used by the NuclearTester.
\description The method run gets all compatible TMs of all TMs associated of a trajectory. Then it uses the NuclearTester class to decide whether the trajectory has interacted nuclearly or not. It finally returns a pair of the TM where the nuclear interaction occurs and all compatible TMs associated.
Definition at line 41 of file NuclearInteractionFinder.h.
|
private |
Definition at line 47 of file NuclearInteractionFinder.h.
|
private |
Definition at line 44 of file NuclearInteractionFinder.h.
|
private |
Definition at line 45 of file NuclearInteractionFinder.h.
|
private |
Definition at line 46 of file NuclearInteractionFinder.h.
|
private |
Definition at line 43 of file NuclearInteractionFinder.h.
|
inline |
Definition at line 65 of file NuclearInteractionFinder.h.
NuclearInteractionFinder::NuclearInteractionFinder | ( | const edm::EventSetup & | es, |
const edm::ParameterSet & | iConfig | ||
) |
Definition at line 19 of file NuclearInteractionFinder.cc.
References checkCompletedTrack, currentSeed, edm::EventSetup::get(), get, edm::ParameterSet::getParameter(), LogDebug, maxHits, HLT_FULL_cff::measurementTrackerName, nav(), navigationSchoolName, nuclTester, edm::ESHandle< T >::product(), rescaleErrorFactor, AlCaHLTBitMon_QueryRunRegistry::string, theEstimator, theGeomSearchTracker, theMagField, theMeasurementTracker, theNavigationSchool, thePrimaryHelix, and thePropagator.
|
virtual |
Definition at line 61 of file NuclearInteractionFinder.cc.
References currentSeed, nuclTester, and thePrimaryHelix.
|
private |
Calculate the parameters of the circle representing the primary track at the interaction point.
Definition at line 130 of file NuclearInteractionFinder.cc.
References mps_fire::i, DiDispStaMuonMonitor_cfi::pt, and thePrimaryHelix.
Referenced by run().
|
private |
get the seeds at the interaction point
Definition at line 192 of file NuclearInteractionFinder.cc.
References allSeeds, currentSeed, sistrip::SpyUtilities::isValid(), LogDebug, TrajectoryMeasurement::recHit(), SeedFromNuclearInteraction::setMeasurements(), and TrajectoryMeasurement::updatedState().
Referenced by run().
|
private |
Find compatible TM of a TM with error rescaled by rescaleFactor.
Definition at line 142 of file NuclearInteractionFinder.cc.
References findMeasurementsFromTSOS(), LogDebug, TrajectoryMeasurement::recHit(), MuonErrorMatrixAdjuster_cfi::rescale, rescaleError(), and TrajectoryMeasurement::updatedState().
Referenced by run().
|
private |
Definition at line 151 of file NuclearInteractionFinder.cc.
References alongMomentum, GeometricSearchTracker::detLayer(), TrajectoryStateOnSurface::freeState(), LogDebug, LayerMeasurements::measurements(), NavigationSchool::nextLayers(), mps_fire::result, jetUpdater_cfi::sort, theEstimator, theGeomSearchTracker, theNavigationSchool, thePropagator, and createJobs::tmp.
Referenced by findCompatibleMeasurements(), and improveSeeds().
std::unique_ptr< TrajectorySeedCollection > NuclearInteractionFinder::getPersistentSeeds | ( | ) |
Fill 'output' with persistent nuclear seeds.
Definition at line 211 of file NuclearInteractionFinder.cc.
References allSeeds, LogDebug, and convertSQLitetoXML_cfg::output.
void NuclearInteractionFinder::improveSeeds | ( | const MeasurementTrackerEvent & | event | ) |
Improve the seeds with a third RecHit.
Definition at line 224 of file NuclearInteractionFinder.cc.
References allSeeds, currentSeed, findMeasurementsFromTSOS(), SeedFromNuclearInteraction::setMeasurements(), theMeasurementTracker, and thePrimaryHelix.
|
inline |
Definition at line 82 of file NuclearInteractionFinder.h.
References theNavigationSchool.
Referenced by NuclearInteractionFinder().
TrajectoryStateOnSurface NuclearInteractionFinder::rescaleError | ( | float | rescale, |
const TSOS & | state | ||
) | const |
Definition at line 253 of file NuclearInteractionFinder.cc.
References visualization-live-secondInstance_cfg::m, HLTObjectMonitor_cfi::mr, MuonErrorMatrixAdjuster_cfi::rescale, and LocalTrajectoryParameters::signedInverseMomentum().
Referenced by findCompatibleMeasurements().
bool NuclearInteractionFinder::run | ( | const Trajectory & | traj, |
const MeasurementTrackerEvent & | event | ||
) |
Run the Finder.
Definition at line 68 of file NuclearInteractionFinder.cc.
References allSeeds, alongMomentum, NuclearTester::back(), checkCompletedTrack, NuclearTester::compatibleHits(), definePrimaryHelix(), Trajectory::direction(), Trajectory::empty(), fillSeeds(), findCompatibleMeasurements(), Trajectory::foundHits(), NuclearTester::fwdEstimate(), NuclearTester::goodTMPair(), NuclearTester::isNuclearInteraction(), Trajectory::isValid(), LogDebug, maxHits, NuclearTester::meanHitDistance(), Trajectory::measurements(), NuclearTester::nHitsChecked(), NuclearTester::nuclearIndex(), nuclTester, NuclearTester::push_back(), rescaleErrorFactor, NuclearTester::reset(), groupFilesInBlocks::reverse, findQualityFiles::size, and theMeasurementTracker.
|
private |
Definition at line 94 of file NuclearInteractionFinder.h.
Referenced by fillSeeds(), getPersistentSeeds(), improveSeeds(), and run().
|
private |
If set to true check all the tracks, even those reaching the edge of the tracker
Definition at line 101 of file NuclearInteractionFinder.h.
Referenced by NuclearInteractionFinder(), and run().
|
private |
Definition at line 93 of file NuclearInteractionFinder.h.
Referenced by fillSeeds(), improveSeeds(), NuclearInteractionFinder(), and ~NuclearInteractionFinder().
|
private |
Definition at line 99 of file NuclearInteractionFinder.h.
Referenced by NuclearInteractionFinder(), and run().
|
private |
Definition at line 102 of file NuclearInteractionFinder.h.
Referenced by NuclearInteractionFinder().
|
private |
Definition at line 92 of file NuclearInteractionFinder.h.
Referenced by NuclearInteractionFinder(), run(), and ~NuclearInteractionFinder().
|
private |
Definition at line 98 of file NuclearInteractionFinder.h.
|
private |
Definition at line 100 of file NuclearInteractionFinder.h.
Referenced by NuclearInteractionFinder(), and run().
|
private |
Definition at line 86 of file NuclearInteractionFinder.h.
Referenced by findMeasurementsFromTSOS(), and NuclearInteractionFinder().
|
private |
Definition at line 88 of file NuclearInteractionFinder.h.
Referenced by findMeasurementsFromTSOS(), and NuclearInteractionFinder().
|
private |
Definition at line 90 of file NuclearInteractionFinder.h.
Referenced by NuclearInteractionFinder().
|
private |
Definition at line 87 of file NuclearInteractionFinder.h.
Referenced by improveSeeds(), NuclearInteractionFinder(), and run().
|
private |
Definition at line 89 of file NuclearInteractionFinder.h.
Referenced by findMeasurementsFromTSOS(), nav(), and NuclearInteractionFinder().
|
private |
Definition at line 95 of file NuclearInteractionFinder.h.
Referenced by definePrimaryHelix(), improveSeeds(), NuclearInteractionFinder(), and ~NuclearInteractionFinder().
|
private |
Definition at line 85 of file NuclearInteractionFinder.h.
Referenced by findMeasurementsFromTSOS(), and NuclearInteractionFinder().