Definition at line 83 of file VP1TrackSystem.cxx.
◆ calcTotalMomentumOfSelectedHandles()
| unsigned VP1TrackSystem::Imp::calcTotalMomentumOfSelectedHandles |
( |
Amg::Vector3D & | totmom, |
|
|
Amg::Vector3D & | totpos, |
|
|
double & | mass ) const |
Definition at line 641 of file VP1TrackSystem.cxx.
642{
647 return 0;
648 unsigned nused(0);
649 double totenergy(0);
650 for (
int i = 0;
i <
sel_tracks->getList()->getLength(); ++
i) {
651 SoFullPath *fPath =
static_cast<SoFullPath *
>((*(
sel_tracks->getList()))[i]);
652 TrackHandleBase *
handle =
common->trackHandle(fPath?fPath->getTail():
nullptr);
653 if (!handle)
654 continue;
657 continue;
658
659 std::optional<Amg::Vector3D>
pos =
handle->startPoint();
660 if (!pos)
661 continue;
662 ++nused;
666 totenergy += sqrt(
mom.mag2() + mass*mass);
667 }
668 if (nused>1) {
669 double msq = totenergy*totenergy - totmom.mag2();
670 mass = (msq<0?-1.0:1.0)*sqrt(fabs(msq));
671 totpos /= nused;
672 }
673 return nused;
674}
TrackSysCommonData * common
SoCooperativeSelection * sel_tracks
Eigen::Matrix< double, 3, 1 > Vector3D
virtual void handle(const Incident &inc)
Handle end of run incidents to save the metadata at that point.
◆ createCollections()
Definition at line 115 of file VP1TrackSystem.cxx.
115 {
116 QList<TrackCollHandleBase*>
l;
117 l << createSpecificCollections<TrackCollHandle_TrkTrack>();
118 l << createSpecificCollections<TrackCollHandle_TrkSegment>();
119
120
121
122 l << createSpecificCollections<TrackCollHandle_TruthTracks>();
123 l << createSpecificCollections<TrackCollHandle_SimulationTracks>();
124
125 l << createSpecificCollections<TrackCollHandle_TrackParticle>();
126 l << createSpecificCollections<TrackCollHandle_xAODTrackParticle>();
127 theclass->message(
"Creating coll handle for ACTS TrackContainers");
128 l << createSpecificCollections<TrackCollHandle_TrackContainer>();
130 }
VP1TrackSystem * theclass
l
Printing final latex table to .tex output file.
◆ createSpecificCollections()
Definition at line 105 of file VP1TrackSystem.cxx.
105 {
106 QList<TrackCollHandleBase*>
l;
107 for (
const QString&
name : T::availableCollections(
theclass)) {
108 std::cout<<
name.toStdString()<<std::endl;
110 col->init();
112 }
114 }
const QString & name() const
◆ currentUsedIDProjections()
| InDetProjFlags::DetTypeFlags VP1TrackSystem::Imp::currentUsedIDProjections |
( |
| ) |
const |
Definition at line 750 of file VP1TrackSystem.cxx.
751{
752 if (
common->controller()->collWidget()->visibleStdCollections().isEmpty())
757}
◆ ascObjSelManager
◆ chamberT0s
| std::vector<std::map<GeoPVConstLink, float> > VP1TrackSystem::Imp::chamberT0s |
◆ common
◆ lastEmittedUsedIDProjections
| InDetProjFlags::DetTypeFlags VP1TrackSystem::Imp::lastEmittedUsedIDProjections |
◆ sel_tracks
◆ selectedPRDs
◆ selMode
◆ theclass
◆ totmass
| double VP1TrackSystem::Imp::totmass = 0.0 |
◆ totmomgev
◆ totmomline
| SoLineSet* VP1TrackSystem::Imp::totmomline = nullptr |
◆ totmomsep
| SoSeparator* VP1TrackSystem::Imp::totmomsep = nullptr |
◆ vertexMaterialForTrackBases
| std::map<const Trk::Track*, SoMaterial*> VP1TrackSystem::Imp::vertexMaterialForTrackBases |
The documentation for this class was generated from the following file: