|
ATLAS Offline Software
|
#include <TrackHandle_TruthTrack.h>
Definition at line 28 of file TrackHandle_TruthTrack.h.
◆ TrackHandle_TruthTrack()
◆ ~TrackHandle_TruthTrack()
TrackHandle_TruthTrack::~TrackHandle_TruthTrack |
( |
| ) |
|
|
virtual |
◆ baseInfo()
QStringList TrackHandleBase::baseInfo |
( |
| ) |
const |
|
inherited |
coverity 17186: this code is unreachable int pdg = pdgCode(); if (pdg) { bool ok; QString name = VP1ParticleData::particleName(pdg,ok); if (ok) l << "pdg: "+QString::number(pdg)+" ["+name+"]"; else l << "pdg: "+QString::number(pdg); }
return l;
Definition at line 1551 of file TrackHandleBase.cxx.
1556 if (
mom.mag2()==0.0) {
1557 l <<
"Momentum : 0 (undefined)";
◆ browserTreeItem()
QTreeWidgetItem * TrackHandleBase::browserTreeItem |
( |
| ) |
const |
|
inherited |
◆ calculateCharge()
double TrackHandle_TruthTrack::calculateCharge |
( |
| ) |
const |
|
protectedvirtual |
◆ charge()
double TrackHandleBase::charge |
( |
| ) |
const |
|
inherited |
◆ clearLine()
void TrackHandleBase::clearLine |
( |
| ) |
|
|
privateinherited |
◆ clicked()
QStringList TrackHandle_TruthTrack::clicked |
( |
| ) |
const |
|
virtual |
Called when user selects the node (stringlist is displayed in messagebox).
Reimplementations should add info momInfo() to get momentum, eta, phi, pid,charge, mass printed.
Implements TrackHandleBase.
Definition at line 208 of file TrackHandle_TruthTrack.cxx.
◆ collHandle()
◆ common()
◆ containsDetElement()
virtual bool TrackHandleBase::containsDetElement |
( |
const QString & |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ currentMaterial()
SoMaterial* TrackHandleBase::currentMaterial |
( |
| ) |
const |
|
inlineinherited |
◆ currentMaterialChanged()
virtual void TrackHandleBase::currentMaterialChanged |
( |
| ) |
|
|
inlineprotectedvirtualinherited |
◆ customColouredTSOSParts()
TrackCommonFlags::TSOSPartsFlags TrackHandleBase::customColouredTSOSParts |
( |
| ) |
const |
|
inherited |
◆ endPoint()
std::optional< Amg::Vector3D > TrackHandleBase::endPoint |
( |
| ) |
const |
|
virtualinherited |
returns 0 if can't find start point.
Definition at line 1607 of file TrackHandleBase.cxx.
1613 for (; tsos_iter != tsos_end; ++tsos_iter) {
1614 if (
common()->trackSanityHelper()->isSafe(*tsos_iter)) {
1616 if (
common()->trackSanityHelper()->isSafe(trackParam))
◆ ensureInitTSOSs()
|
protectedvirtualinherited |
Ensure that the TSOSs are initialized.
This is called by update3DObjects() and should be called by any method that needs to access the TSOSs.
Reimplemented in TrackHandle_TrackContainer.
Definition at line 380 of file TrackHandleBase.cxx.
382 std::cout<<
"TrackHandleBase::ensureInitTSOSs"<<std::endl;
386 tsos_ascobjs =
new std::vector<AssociatedObjectHandleBase*>;
394 unsigned parindex(0);
400 for (; tsos_iter != tsos_end; ++tsos_iter) {
401 trackParam = (*tsos_iter)->trackParameters();
411 if (ascObjNeedDistToNext&&trackParam) {
412 ascObjNeedDistToNext->setDistToNextPar((trackParam->position()-ascObjNeedDistToNext->approxCenter()).mag());
413 ascObjNeedDistToNext =
nullptr;
416 ascObjNeedDistToNext =
m_d->
addTSOS(*tsos_iter,parindex++);
◆ ensureTouchedMuonChambersInitialised()
void TrackHandle_TruthTrack::ensureTouchedMuonChambersInitialised |
( |
| ) |
const |
|
protectedvirtual |
◆ extrapolationParticleHypothesis()
|
protectedvirtualinherited |
◆ fillObjectBrowser()
void TrackHandleBase::fillObjectBrowser |
( |
QList< QTreeWidgetItem * > & |
list | ) |
|
|
virtualinherited |
◆ getAllAscObjHandles()
override if need to take action in this case.
Return list of all AscObj handles. Not guaranteed to be filled unless tsoses are visible.
Definition at line 1634 of file TrackHandleBase.cxx.
◆ getAttachmentHandle()
◆ getFitQuality()
◆ getMuonReadoutElement()
◆ getNCSCHits()
virtual unsigned TrackHandleBase::getNCSCHits |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getNMDTHits()
virtual unsigned TrackHandleBase::getNMDTHits |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getNMMHits()
virtual unsigned TrackHandleBase::getNMMHits |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getNMuonHits()
virtual unsigned TrackHandleBase::getNMuonHits |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getNMuonPhiHits()
virtual unsigned TrackHandleBase::getNMuonPhiHits |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getNMuonPrecisionHits()
virtual unsigned TrackHandleBase::getNMuonPrecisionHits |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getNPixelHits()
virtual unsigned TrackHandleBase::getNPixelHits |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getNRPCHits()
virtual unsigned TrackHandleBase::getNRPCHits |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getNSCTHits()
virtual unsigned TrackHandleBase::getNSCTHits |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getNsTGCHits()
virtual unsigned TrackHandleBase::getNsTGCHits |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getNTGCHits()
virtual unsigned TrackHandleBase::getNTGCHits |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getNTRTHits()
virtual unsigned TrackHandleBase::getNTRTHits |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getVisibleMeasurements()
Definition at line 1996 of file TrackHandleBase.cxx.
1998 QList<AssociatedObjectHandleBase*>
l;
2004 if ((*it)->hasMeasurement()&&(*it)->visible())
◆ hackGetPointsPropagated()
std::vector< Amg::Vector3D > * TrackHandleBase::hackGetPointsPropagated |
( |
| ) |
|
|
inherited |
FIXME.
Used to get position of track for use in short tubes etc.
Definition at line 1639 of file TrackHandleBase.cxx.
◆ hasBarCodeZero()
bool TrackHandle_TruthTrack::hasBarCodeZero |
( |
| ) |
const |
◆ hasCharge()
bool TrackHandleBase::hasCharge |
( |
| ) |
const |
|
inlineinherited |
◆ hasMass()
bool TrackHandleBase::hasMass |
( |
| ) |
const |
|
inlineinherited |
◆ hasSubSystemHitInfo()
virtual bool TrackHandleBase::hasSubSystemHitInfo |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ hasVertexAtIR()
bool TrackHandle_TruthTrack::hasVertexAtIR |
( |
const double & |
rmaxsq, |
|
|
const double & |
zmax |
|
) |
| const |
◆ isIDTrack()
bool TrackHandleBase::isIDTrack |
( |
| ) |
const |
|
virtualinherited |
◆ isRun4EDM()
virtual bool TrackHandleBase::isRun4EDM |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ mass()
double TrackHandleBase::mass |
( |
| ) |
const |
|
virtualinherited |
◆ momentum()
◆ numberOfInstances()
int TrackHandleBase::numberOfInstances |
( |
| ) |
|
|
staticinherited |
◆ pdgCode()
int TrackHandle_TruthTrack::pdgCode |
( |
| ) |
const |
|
virtual |
◆ provide_pathInfoPoints()
|
inlineprotectedvirtualinherited |
◆ provide_pathInfoTrkTrack()
const Trk::Track * TrackHandle_TruthTrack::provide_pathInfoTrkTrack |
( |
| ) |
const |
|
protectedvirtual |
◆ registerAssocObject()
◆ registerTouchedMuonChamber()
void TrackHandleBase::registerTouchedMuonChamber |
( |
const GeoPVConstLink & |
chamberPV | ) |
const |
|
protectedinherited |
If not earlier, touched muon chambers must me registered at latest when this method is invoked.
Call this from constructor - (at least) once for each muon chamber "touched" by this track.
Definition at line 1269 of file TrackHandleBase.cxx.
◆ registerTrack()
void TrackHandleBase::registerTrack |
( |
| ) |
|
|
privateinherited |
◆ rerandomiseRandomMaterial()
void TrackHandleBase::rerandomiseRandomMaterial |
( |
| ) |
|
|
inherited |
Definition at line 1395 of file TrackHandleBase.cxx.
1400 double r2 = 0.3*0.3;
1405 r = (
rand() /
static_cast<double>(RAND_MAX));
1406 g = (
rand() /
static_cast<double>(RAND_MAX));
1407 b = (
rand() /
static_cast<double>(RAND_MAX));
1411 if ( (
r-1.0)*(
r-1.0)+
g*
g+
b*
b <
r2*0.5 )
1413 else if (
r*
r/(
r*
r+
g*
g+
b*
b) > 0.8 )
1415 else if (
r*
r+
g*
g+
b*
b < r2*2.0 )
1425 " not be selected such as to satisfy all separation criterias");
◆ setAscObjsVisible()
void TrackHandle_TruthTrack::setAscObjsVisible |
( |
bool |
b | ) |
|
◆ setCustomColouredTSOSParts()
void TrackHandleBase::setCustomColouredTSOSParts |
( |
TrackCommonFlags::TSOSPartsFlags |
f | ) |
|
|
privateinherited |
Definition at line 356 of file TrackHandleBase.cxx.
367 TrackCommonFlags::TSOSPartsFlags changedShownParts(change &
m_d->
shownTSOSParts);
369 if (!changedShownParts)
374 if ((*it)->parts()&changedShownParts)
375 (*it)->update3DObjects();
◆ setShownTSOSParts()
void TrackHandleBase::setShownTSOSParts |
( |
TrackCommonFlags::TSOSPartsFlags |
f | ) |
|
|
privateinherited |
Definition at line 312 of file TrackHandleBase.cxx.
333 if (!((*it)->parts()&change)){
337 if (vis==(*it)->visible()) {
339 (*it)->update3DObjects();
345 (*it)->update3DObjects();
346 (*it)->setVisible(vis);
349 (*it)->setVisible(vis);
350 (*it)->update3DObjects();
◆ setVisible()
void TrackHandleBase::setVisible |
( |
bool |
vis | ) |
|
|
inherited |
use by the collection handle.
Definition at line 434 of file TrackHandleBase.cxx.
436 std::cout<<
"TrackHandleBase::setVisible"<<std::endl;
437 QString
tmp = (vis)?
"True":
"False";
442 std::cout<<
"TrackHandleBase::setVisible 1"<<std::endl;
464 std::cout<<
"TrackHandleBase::setVisible 2"<<std::endl;
467 bool initTSOS(
false);
474 std::cout<<
"TrackHandleBase::setVisible 3"<<std::endl;
483 (*it)->toggleVisible();
487 if ((*it)->visible())
488 (*it)->setVisible(
false);
492 std::cout<<
"TrackHandleBase::setVisible 4"<<std::endl;
498 it->second->trackVisibilityChanged();
◆ shortInfo()
virtual QString TrackHandleBase::shortInfo |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ shownTSOSParts()
TrackCommonFlags::TSOSPartsFlags TrackHandleBase::shownTSOSParts |
( |
| ) |
const |
|
inherited |
◆ startPoint()
std::optional< Amg::Vector3D > TrackHandleBase::startPoint |
( |
| ) |
const |
|
virtualinherited |
returns 0 if can't find start point.
Definition at line 1587 of file TrackHandleBase.cxx.
1593 for (; tsos_iter != tsos_end; ++tsos_iter) {
1594 if (
common()->trackSanityHelper()->isSafe(*tsos_iter)) {
1596 if (
common()->trackSanityHelper()->isSafe(trackParam))
◆ touchedMuonChambers()
const std::set< GeoPVConstLink > & TrackHandleBase::touchedMuonChambers |
( |
| ) |
const |
|
inherited |
◆ type()
virtual QString TrackHandle_TruthTrack::type |
( |
| ) |
const |
|
inlinevirtual |
◆ unknown()
static double TrackHandleBase::unknown |
( |
| ) |
|
|
inlinestaticinherited |
◆ update3DObjects()
void TrackHandleBase::update3DObjects |
( |
bool |
invalidatePropagatedPoints = false , |
|
|
float |
maxR = 0.0 |
|
) |
| |
|
inherited |
◆ updateInDetProjections()
void TrackHandleBase::updateInDetProjections |
( |
| ) |
|
|
inherited |
◆ updateMaterial()
void TrackHandleBase::updateMaterial |
( |
| ) |
|
|
inherited |
◆ updateMuonProjections()
void TrackHandleBase::updateMuonProjections |
( |
| ) |
|
|
inherited |
◆ updateObjectBrowser()
virtual void TrackHandleBase::updateObjectBrowser |
( |
| ) |
|
|
inlinevirtualinherited |
◆ updateRandomColourTransparencyAndBrightness()
void TrackHandleBase::updateRandomColourTransparencyAndBrightness |
( |
| ) |
|
|
inherited |
◆ updateShapes_TSOSWithErrors()
void TrackHandleBase::updateShapes_TSOSWithErrors |
( |
| ) |
|
|
privateinherited |
◆ updateShapes_TSOSWithMaterialEffects()
void TrackHandleBase::updateShapes_TSOSWithMaterialEffects |
( |
| ) |
|
|
privateinherited |
Definition at line 287 of file TrackHandleBase.cxx.
295 if ((*it)->hasMaterialEffect())
296 (*it)->update3DObjects();
◆ updateShapes_TSOSWithMeasurements()
void TrackHandleBase::updateShapes_TSOSWithMeasurements |
( |
| ) |
|
|
privateinherited |
Definition at line 261 of file TrackHandleBase.cxx.
269 if ((*it)->hasMeasurement())
270 (*it)->update3DObjects();
◆ visible()
bool TrackHandleBase::visible |
( |
| ) |
const |
|
inlineinherited |
◆ visibleStateChanged()
void TrackHandle_TruthTrack::visibleStateChanged |
( |
| ) |
|
|
protectedvirtual |
◆ m_collhandle
◆ m_currentmaterial
SoMaterial* TrackHandleBase::m_currentmaterial |
|
privateinherited |
◆ m_d
Imp* TrackHandle_TruthTrack::m_d |
|
private |
◆ m_visible
bool TrackHandleBase::m_visible |
|
privateinherited |
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
const RpcReadoutElement * getRpcReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
QTreeWidgetItem * browserTreeItem() const
bool isNonUniqueSecondary() const
const std::set< GeoPVConstLink > & touchedMuonChambers() const
virtual void visibleStateChanged()
override if need to take action in this case.
TrackHandleBase * theclass
Const iterator class for DataVector/DataList.
AscObj_TSOS * addTSOS(const Trk::TrackStateOnSurface *tsos, unsigned index) const
void decrementNShownHandles()
std::map< std::pair< int, double >, AssocObjAttachmentHandle * > attachmentHandles
Scalar phi() const
phi method
void incrementNumberOfObjectsForPV(const GeoPVConstLink &chamberPV)
const_reverse_iterator rend() const noexcept
Return a const_reverse_iterator pointing at the beginning of the collection.
Scalar eta() const
pseudorapidity method
const Amg::Vector3D & position() const
Access method for the position.
const Trk::TrackStates * trackStateOnSurfaces() const
return a pointer to a const DataVector of const TrackStateOnSurfaces.
SoMaterial * m_currentmaterial
static bool isSafe(const Trk::TrackStateOnSurface *)
std::set< GeoPVConstLink > touchedmuonchambers
virtual unsigned getNTGCHits() const
TouchedMuonChamberHelper * touchedMuonChamberHelper() const
TrackCollHandleBase * collHandle() const
void ensureInitTrkTracks()
void registerTrack(SoNode *, TrackHandleBase *)
virtual unsigned getNSCTHits() const
static QString str(const QString &s)
Amg::SetVectorVector3D * points_propagated_muon_projections
friend class AssocObjAttachmentHandle
virtual QString type() const
return very short word with type (maybe link with collection type?)
Base class for the XxxReadoutElement, with Xxx = Mdt, Rpc, Tgc, Csc.
static double phiFromXY(const double &x, const double &y)
const TgcReadoutElement * getTgcReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
virtual unsigned getNsTGCHits() const
SoMaterial * determineMaterial()
virtual double calculateCharge() const
virtual void ensureTouchedMuonChambersInitialised() const
virtual unsigned getNTRTHits() const
Amg::SetVectorVector3D * points_propagated_id_projections
QTreeWidgetItem * m_objBrowseTree
SoMaterial * randommaterial
const MdtReadoutElement * getMdtReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
const Trk::Track * pathInfo_TrkTrack
Used in the case of a Trk::Track.
virtual Amg::Vector3D momentum() const
const CscReadoutElement * getCscReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
virtual void ensureInitTSOSs(std::vector< AssociatedObjectHandleBase * > *&)
Ensure that the TSOSs are initialized.
virtual unsigned getNRPCHits() const
QList< AssociatedObjectHandleBase * > associatedObjects
std::vector< AscObj_TruthPoint * > * ascObjs
virtual unsigned getNMuonHits() const
static MeasurementType type(const Trk::PrepRawData *prd)
virtual QString shortInfo() const
returns mom and hit information about track
HepMC::ConstGenParticlePtr genParticle
void ensureInitPointsPropagated()
virtual int pdgCode() const
0 means unknown
const_reverse_iterator rbegin() const noexcept
Return a const_reverse_iterator pointing past the end of the collection.
virtual unsigned getNMDTHits() const
void unregisterTrack(SoNode *)
virtual unsigned getNMMHits() const
TrackCollHandleBase * m_collhandle
TrackSysCommonData * common() const
TrackHandleBase(TrackCollHandleBase *)
const DataVector< const TrackParameters > * trackParameters() const
Return a pointer to a vector of TrackParameters.
virtual unsigned getNPixelHits() const
void setAscObjsVisible(bool)
virtual std::optional< Amg::Vector3D > startPoint() const
returns 0 if can't find start point.
IVP1System * systemBase() const
TrackCommonFlags::TSOSPartsFlags shownTSOSParts
std::reverse_iterator< const_iterator > const_reverse_iterator
Standard const_reverse_iterator.
static void messageVerbose(const QString &)
const std::vector< Amg::Vector3D > * pathInfo_Points
Used in all other cases.
Eigen::Matrix< double, 3, 1 > Vector3D
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
void decrementNumberOfObjectsForPV(const GeoPVConstLink &chamberPV)
virtual unsigned getNCSCHits() const
static const MuonGM::MuonDetectorManager * muonDetMgr()
static void messageDebug(const QString &)
void incrementNShownHandles()
static void message(const QString &, IVP1System *sys=0)
void ensureLoadPathInfo()
const double mb
1mb to cm2
void update3DObjects(bool invalidatePropagatedPoints=false, float maxR=0.0)
const MMReadoutElement * getMMReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
const boost::regex re(r_e)
static double particleMass(const int &pdgcode, bool &ok)
Amg::SetVectorVector3D * points_raw_muon_projections
Amg::SetVectorVector3D * points_raw_id_projections
TrackCommonFlags::TSOSPartsFlags customColouredTSOSParts
std::vector< Amg::Vector3D > * points_propagated
QStringList baseInfo() const
const HepMC::GenVertex * ConstGenVertexPtr
const sTgcReadoutElement * getsTgcReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
TrackSysCommonData * common() const
virtual double mass() const
static bool hasMuonGeometry()
std::vector< AssociatedObjectHandleBase * > * tsos_ascobjs
void message(const QString &) const
HepMcParticleLink::index_type evtIndex() const
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
std::vector< Amg::Vector3D > * points_raw
const Trk::Track * trkTrack