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 20 of file NuclearTester.h.
|
private |
Definition at line 18 of file NuclearTester.h.
|
private |
Definition at line 19 of file NuclearTester.h.
|
private |
Definition at line 21 of file NuclearTester.h.
|
private |
Definition at line 22 of file NuclearTester.h.
NuclearTester::NuclearTester | ( | unsigned int | max_hits, |
const MeasurementEstimator * | est, | ||
const TrackerGeometry * | track_geom | ||
) |
|
inline |
Definition at line 42 of file NuclearTester.h.
References allTM.
Referenced by fwdEstimate(), meanHitDistance(), and NuclearInteractionFinder::run().
|
private |
Definition at line 39 of file NuclearTester.cc.
References compatible_hits, and NuclearIndex.
Referenced by isNuclearInteraction().
|
inline |
Definition at line 60 of file NuclearTester.h.
References compatible_hits.
Referenced by NuclearInteractionFinder::run().
double NuclearTester::fwdEstimate | ( | const std::vector< TrajectoryMeasurement > & | vecTM | ) | const |
Definition at line 107 of file NuclearTester.cc.
References MeasurementEstimator::estimate(), edm::second(), and theEstimator.
Referenced by NuclearInteractionFinder::run().
|
inline |
Definition at line 46 of file NuclearTester.h.
References back(), and fwdEstimate().
Referenced by fwdEstimate().
|
inline |
Definition at line 56 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 94 of file NuclearTester.cc.
References runTauDisplay::gp, TrackerGeometry::idToDet(), dqmdumpme::last, lastValidTM(), GeomDet::toGlobal(), and trackerGeom.
Referenced by meanHitDistance().
bool NuclearTester::isNuclearInteraction | ( | ) |
Definition at line 11 of file NuclearTester.cc.
References allTM, checkWithMultiplicity(), compatible_hits, maxHits, nHitsChecked(), and NuclearIndex.
Referenced by NuclearInteractionFinder::run().
std::vector< TrajectoryMeasurement >::const_iterator NuclearTester::lastValidTM | ( | const std::vector< TM > & | vecTM | ) | const |
Definition at line 132 of file NuclearTester.cc.
Referenced by HitPositions().
double NuclearTester::meanHitDistance | ( | const std::vector< TrajectoryMeasurement > & | vecTM | ) | const |
Definition at line 75 of file NuclearTester.cc.
References HitPositions(), and mag().
Referenced by NuclearInteractionFinder::run().
|
inline |
Definition at line 44 of file NuclearTester.h.
References back(), and meanHitDistance().
Referenced by meanHitDistance().
|
inline |
Definition at line 58 of file NuclearTester.h.
References compatible_hits.
Referenced by isNuclearInteraction(), and NuclearInteractionFinder::run().
|
inline |
Definition at line 54 of file NuclearTester.h.
References NuclearIndex.
Referenced by goodTMPair(), and NuclearInteractionFinder::run().
|
inline |
Definition at line 37 of file NuclearTester.h.
References allTM, and compatible_hits.
Referenced by NuclearInteractionFinder::run().
|
inline |
Definition at line 48 of file NuclearTester.h.
References allTM, compatible_hits, and maxHits.
Referenced by NuclearInteractionFinder::run().
|
private |
Definition at line 64 of file NuclearTester.h.
Referenced by back(), goodTMPair(), isNuclearInteraction(), push_back(), and reset().
|
private |
Definition at line 65 of file NuclearTester.h.
Referenced by checkWithMultiplicity(), compatibleHits(), isNuclearInteraction(), nHitsChecked(), push_back(), and reset().
|
private |
Definition at line 69 of file NuclearTester.h.
Referenced by isNuclearInteraction(), and reset().
|
private |
Definition at line 66 of file NuclearTester.h.
Referenced by checkWithMultiplicity(), isNuclearInteraction(), nuclearIndex(), and NuclearTester().
|
private |
Definition at line 70 of file NuclearTester.h.
Referenced by fwdEstimate().
|
private |
Definition at line 71 of file NuclearTester.h.
Referenced by HitPositions().