Class used to test if a track has interacted nuclearly. More...
#include <NuclearTester.h>
Public Member Functions | |
const TMContainer & | back () const |
std::vector< int > | compatibleHits () const |
double | fwdEstimate (const std::vector< TrajectoryMeasurement > &vecTM) const |
double | fwdEstimate () const |
const TMPair & | goodTMPair () const |
std::vector< GlobalPoint > | HitPositions (const std::vector< TrajectoryMeasurement > &vecTM) const |
bool | isNuclearInteraction () |
std::vector< TM >::const_iterator | lastValidTM (const std::vector< TM > &vecTM) const |
double | meanHitDistance (const std::vector< TrajectoryMeasurement > &vecTM) const |
double | meanHitDistance () const |
unsigned int | nHitsChecked () const |
int | nuclearIndex () const |
NuclearTester (unsigned int max_hits, const MeasurementEstimator *est, const TrackerGeometry *track_geom) | |
void | push_back (const TM &init_tm, const TMContainer &vecTM) |
void | reset (unsigned int nMeasurements) |
Private Types | |
typedef TrajectoryMeasurement::ConstRecHitPointer | ConstRecHitPointer |
typedef TrajectoryMeasurement | TM |
typedef std::vector< TM > | TMContainer |
typedef std::pair < TrajectoryMeasurement, TMContainer > | TMPair |
typedef std::vector< TMPair > | TMPairVector |
Private Member Functions | |
bool | checkWithMultiplicity () |
Private Attributes | |
TMPairVector | allTM |
std::vector< int > | compatible_hits |
unsigned int | maxHits |
int | NuclearIndex |
const MeasurementEstimator * | theEstimator |
const TrackerGeometry * | trackerGeom |
Class used to test if a track has interacted nuclearly.
Using the properties of all the compatible TMs of the TMs associated to a track, the method isNuclearInteraction return 1 in case the track has interacted nuclearly, 0 else.
Definition at line 16 of file NuclearTester.h.
Definition at line 21 of file NuclearTester.h.
|
private |
Definition at line 19 of file NuclearTester.h.
|
private |
Definition at line 20 of file NuclearTester.h.
|
private |
Definition at line 22 of file NuclearTester.h.
|
private |
Definition at line 23 of file NuclearTester.h.
NuclearTester::NuclearTester | ( | unsigned int | max_hits, |
const MeasurementEstimator * | est, | ||
const TrackerGeometry * | track_geom | ||
) |
|
inline |
Definition at line 43 of file NuclearTester.h.
References allTM.
Referenced by fwdEstimate(), meanHitDistance(), and NuclearInteractionFinder::run().
|
private |
Definition at line 30 of file NuclearTester.cc.
References compatible_hits, and NuclearIndex.
Referenced by isNuclearInteraction().
|
inline |
Definition at line 61 of file NuclearTester.h.
References compatible_hits.
Referenced by NuclearInteractionFinder::run().
double NuclearTester::fwdEstimate | ( | const std::vector< TrajectoryMeasurement > & | vecTM | ) | const |
Definition at line 93 of file NuclearTester.cc.
References MeasurementEstimator::estimate(), TrackingRecHit::isValid(), edm::second(), and theEstimator.
Referenced by NuclearInteractionFinder::run().
|
inline |
Definition at line 47 of file NuclearTester.h.
References back(), and fwdEstimate().
Referenced by fwdEstimate().
|
inline |
Definition at line 57 of file NuclearTester.h.
References allTM, and nuclearIndex().
Referenced by NuclearInteractionFinder::run().
std::vector< GlobalPoint > NuclearTester::HitPositions | ( | const std::vector< TrajectoryMeasurement > & | vecTM | ) | const |
Definition at line 81 of file NuclearTester.cc.
References TrackerGeometry::idToDet(), prof2calltree::last, lastValidTM(), GeomDet::toGlobal(), and trackerGeom.
Referenced by meanHitDistance().
bool NuclearTester::isNuclearInteraction | ( | ) |
Definition at line 10 of file NuclearTester.cc.
References allTM, checkWithMultiplicity(), compatible_hits, maxHits, nHitsChecked(), NuclearIndex, and funct::true.
Referenced by NuclearInteractionFinder::run().
std::vector< TrajectoryMeasurement >::const_iterator NuclearTester::lastValidTM | ( | const std::vector< TM > & | vecTM | ) | const |
Definition at line 116 of file NuclearTester.cc.
Referenced by HitPositions().
double NuclearTester::meanHitDistance | ( | const std::vector< TrajectoryMeasurement > & | vecTM | ) | const |
Definition at line 63 of file NuclearTester.cc.
References HitPositions(), and mag().
Referenced by NuclearInteractionFinder::run().
|
inline |
Definition at line 45 of file NuclearTester.h.
References back(), and meanHitDistance().
Referenced by meanHitDistance().
|
inline |
Definition at line 59 of file NuclearTester.h.
References compatible_hits.
Referenced by isNuclearInteraction(), and NuclearInteractionFinder::run().
|
inline |
Definition at line 55 of file NuclearTester.h.
References NuclearIndex.
Referenced by goodTMPair(), and NuclearInteractionFinder::run().
|
inline |
Definition at line 38 of file NuclearTester.h.
References allTM, and compatible_hits.
Referenced by NuclearInteractionFinder::run().
|
inline |
Definition at line 49 of file NuclearTester.h.
References allTM, compatible_hits, and maxHits.
Referenced by NuclearInteractionFinder::run().
|
private |
Definition at line 66 of file NuclearTester.h.
Referenced by back(), goodTMPair(), isNuclearInteraction(), push_back(), and reset().
|
private |
Definition at line 67 of file NuclearTester.h.
Referenced by checkWithMultiplicity(), compatibleHits(), isNuclearInteraction(), nHitsChecked(), push_back(), and reset().
|
private |
Definition at line 71 of file NuclearTester.h.
Referenced by isNuclearInteraction(), and reset().
|
private |
Definition at line 68 of file NuclearTester.h.
Referenced by checkWithMultiplicity(), isNuclearInteraction(), nuclearIndex(), and NuclearTester().
|
private |
Definition at line 72 of file NuclearTester.h.
Referenced by fwdEstimate().
|
private |
Definition at line 73 of file NuclearTester.h.
Referenced by HitPositions().