|
ATLAS Offline Software
|
#include <TrackHandle_xAODTrackParticle.h>
◆ TrackHandle_xAODTrackParticle()
◆ ~TrackHandle_xAODTrackParticle()
TrackHandle_xAODTrackParticle::~TrackHandle_xAODTrackParticle |
( |
| ) |
|
|
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_xAODTrackParticle::calculateCharge |
( |
| ) |
const |
|
protectedvirtual |
◆ charge()
double TrackHandleBase::charge |
( |
| ) |
const |
|
inherited |
◆ clearLine()
void TrackHandleBase::clearLine |
( |
| ) |
|
|
privateinherited |
◆ clicked()
QStringList TrackHandle_xAODTrackParticle::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 75 of file TrackHandle_xAODTrackParticle.cxx.
78 l <<
"xAODTrackParticle:";
◆ 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))
◆ ensureInitSubSysHitInfo()
void TrackHandle_xAODTrackParticle::ensureInitSubSysHitInfo |
( |
| ) |
const |
|
private |
◆ 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_xAODTrackParticle::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()
unsigned TrackHandle_xAODTrackParticle::getNCSCHits |
( |
| ) |
const |
|
virtual |
◆ getNMDTHits()
unsigned TrackHandle_xAODTrackParticle::getNMDTHits |
( |
| ) |
const |
|
virtual |
◆ getNMMHits()
virtual unsigned TrackHandleBase::getNMMHits |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getNMuonHits()
virtual unsigned TrackHandleBase::getNMuonHits |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getNMuonPhiHits()
unsigned TrackHandle_xAODTrackParticle::getNMuonPhiHits |
( |
| ) |
const |
|
virtual |
◆ getNMuonPrecisionHits()
virtual unsigned TrackHandleBase::getNMuonPrecisionHits |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getNPixelHits()
unsigned TrackHandle_xAODTrackParticle::getNPixelHits |
( |
| ) |
const |
|
virtual |
◆ getNRPCHits()
unsigned TrackHandle_xAODTrackParticle::getNRPCHits |
( |
| ) |
const |
|
virtual |
◆ getNSCTHits()
unsigned TrackHandle_xAODTrackParticle::getNSCTHits |
( |
| ) |
const |
|
virtual |
◆ getNsTGCHits()
virtual unsigned TrackHandleBase::getNsTGCHits |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getNTGCHits()
unsigned TrackHandle_xAODTrackParticle::getNTGCHits |
( |
| ) |
const |
|
virtual |
◆ getNTRTHits()
unsigned TrackHandle_xAODTrackParticle::getNTRTHits |
( |
| ) |
const |
|
virtual |
◆ 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.
◆ hasCharge()
bool TrackHandleBase::hasCharge |
( |
| ) |
const |
|
inlineinherited |
◆ hasMass()
bool TrackHandleBase::hasMass |
( |
| ) |
const |
|
inlineinherited |
◆ hasSubSystemHitInfo()
virtual bool TrackHandle_xAODTrackParticle::hasSubSystemHitInfo |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ 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()
virtual int TrackHandleBase::pdgCode |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ provide_pathInfoPoints()
|
inlineprotectedvirtualinherited |
◆ provide_pathInfoTrkTrack()
const Trk::Track * TrackHandle_xAODTrackParticle::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");
◆ 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_xAODTrackParticle::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 TrackHandleBase::visibleStateChanged |
( |
| ) |
|
|
protectedvirtualinherited |
◆ m_collhandle
◆ m_currentmaterial
SoMaterial* TrackHandleBase::m_currentmaterial |
|
privateinherited |
◆ m_d
Imp* TrackHandle_xAODTrackParticle::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
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)
float charge() const
Returns the charge.
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.
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
SoMaterial * m_currentmaterial
static bool isSafe(const Trk::TrackStateOnSurface *)
bool summaryValue(uint8_t &value, const SummaryType &information) const
Accessor for TrackSummary values.
std::set< GeoPVConstLink > touchedmuonchambers
virtual unsigned getNTGCHits() const
TouchedMuonChamberHelper * touchedMuonChamberHelper() const
TrackCollHandleBase * collHandle() const
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
void registerTrack(SoNode *, TrackHandleBase *)
@ numberOfTRTHits
number of TRT hits [unit8_t].
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?)
TrackHandle_xAODTrackParticle * theclass
Base class for the XxxReadoutElement, with Xxx = Mdt, Rpc, Tgc, Csc.
static double phiFromXY(const double &x, const double &y)
const Trk::Track * createTrack(Trk::TrackStates *trackStateOnSurfaces) const
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
const Trk::Perigee & perigeeParameters() const
Returns the Trk::MeasuredPerigee track parameters.
Amg::SetVectorVector3D * points_propagated_id_projections
QTreeWidgetItem * m_objBrowseTree
SoMaterial * randommaterial
const MdtReadoutElement * getMdtReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
DataVector< const Trk::TrackStateOnSurface > TrackStates
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
virtual unsigned getNMuonHits() const
static MeasurementType type(const Trk::PrepRawData *prd)
virtual QString shortInfo() const
returns mom and hit information about track
void ensureInitPointsPropagated()
const Trk::Track * trkTrack
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
represents the track state (measurement, material, fit parameters and quality) at a surface.
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 &)
value_type push_back(value_type pElem)
Add an element to the end of the collection.
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
@ numberOfSCTHits
number of hits in SCT [unit8_t].
TrackCommonFlags::TSOSPartsFlags customColouredTSOSParts
std::vector< Amg::Vector3D > * points_propagated
QStringList baseInfo() const
const sTgcReadoutElement * getsTgcReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
TrackSysCommonData * common() const
virtual double mass() const
const xAOD::TrackParticle * trackparticle
static bool hasMuonGeometry()
std::vector< AssociatedObjectHandleBase * > * tsos_ascobjs
void message(const QString &) const
VP1TrackSanity * trackSanityHelper() const
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
std::vector< Amg::Vector3D > * points_raw