|
ATLAS Offline Software
|
#include <VP1BPhysSystem.h>
|
| VP1BPhysSystem () |
|
virtual | ~VP1BPhysSystem () |
|
void | buildEventSceneGraph (StoreGateSvc *sg, SoSeparator *root) |
|
QWidget * | buildController () |
|
virtual void | systemcreate (StoreGateSvc *detstore) |
|
void | ensureBuildController () |
|
virtual void | buildPermanentSceneGraph (StoreGateSvc *detstore, SoSeparator *root) |
|
void | updateGUI () |
|
virtual void | userPickedNode (SoNode *pickedNode, SoPath *pickedPath) |
|
virtual void | systemerase () |
|
virtual void | systemuncreate () |
|
void | warnOnDisabledNotifications () const |
|
void | registerCamera (SoCamera *camera) |
|
void | registerViewer (SoQtViewer *viewer) |
|
void | registerSelectionNode (SoCooperativeSelection *) |
|
void | unregisterSelectionNode (SoCooperativeSelection *) |
|
void | setUserSelectionNotificationsEnabled (SoCooperativeSelection *sel, bool enabled) |
|
virtual void | userSelectedSingleNode (SoCooperativeSelection *, SoNode *, SoPath *) |
|
virtual void | userDeselectedSingleNode (SoCooperativeSelection *, SoNode *, SoPath *) |
|
virtual void | userChangedSelection (SoCooperativeSelection *, QSet< SoNode * >, QSet< SoPath * >) |
|
virtual void | userClickedOnBgd () |
|
virtual void | deselectAll (SoCooperativeSelection *exception_sel=0) |
|
CamList | getCameraList () |
|
virtual QWidget * | buildExtraDisplayWidget () |
|
const QString & | name () const |
|
const QString & | information () const |
|
const QString & | contact_info () const |
|
QWidget * | controllerWidget () |
|
virtual QByteArray | saveState () |
|
virtual void | restoreFromState (QByteArray) |
|
void | message (const QString &) const |
|
void | message (const QStringList &, const QString &addtoend="") const |
|
void | message (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
|
void | messageDebug (const QString &) const |
|
void | messageDebug (const QStringList &, const QString &addtoend="") const |
|
void | messageDebug (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
|
void | messageVerbose (const QString &) const |
|
void | messageVerbose (const QStringList &, const QString &addtoend="") const |
|
void | messageVerbose (const QString &addtostart, const QStringList &, const QString &addtoend="") const |
|
StoreGateSvc * | storeGate () const |
|
StoreGateSvc * | eventStore () const |
|
StoreGateSvc * | detectorStore () const |
|
ISvcLocator * | serviceLocator () const |
|
IToolSvc * | toolSvc () const |
|
State | state () const |
|
ActiveState | activeState () const |
|
|
void | actualBuild () |
|
void | filterTrack (SoSeparator *root, const Rec::TrackParticleContainer *partCont, double pt, double eta, double phi, double d0, double z0, double x, double y, double z, unsigned long color, std::vector< const Rec::TrackParticle * > *selectedParticles) |
| drawing methods ******************************************************************* More...
|
|
void | drawAllTrackParticles (StoreGateSvc *sg, SoSeparator *root, std::vector< const Rec::TrackParticle * > *selectedParticles) |
|
void | drawTrackParticle (SoSwitch *trackSwitch, const Rec::TrackParticle *part, unsigned long color) |
|
void | drawCutoffTrackParticle (SoSeparator *root, const Rec::TrackParticle *part, double x, double y, double z, unsigned long color) |
|
void | drawNeutralTrack (SoSeparator *root, double x, double y, double z, double px, double py, double pz, double length, unsigned long color) |
|
void | drawRefittedTrack (SoSeparator *root, double x, double y, double z, double px, double py, double pz, double charge, unsigned long color) |
|
void | drawVertex (SoSeparator *root, double x, double y, double z, double radius, double xx, double xy, double xz, double yy, double yz, double zz, unsigned long color, std::vector< SoSwitch * > &vertexSwitches) |
|
void | drawPoints (SoSwitch *trackSwitch, std::vector< Amg::Vector3D > *points, unsigned long color, double width, bool isNeutral) |
|
std::vector< Amg::Vector3D > * | getPoints (const Trk::Track *track) |
|
std::vector< Amg::Vector3D > * | getPoints (const Rec::TrackParticle *part) |
|
std::vector< Amg::Vector3D > * | findClosestApproach (std::vector< Amg::Vector3D > *points, double x, double y, double z) |
|
const Trk::Track * | getTrack (const Rec::TrackParticle *trackparticle) |
| utils ***************************************************************************** More...
|
|
const Trk::Track * | getRefittedTrack (const Amg::Vector3D &pos, const Amg::Vector3D &mom, double charge) |
|
void | getColor (unsigned long icolor, double &r, double &g, double &b) |
|
SoLineSet * | createCross (double extent) |
|
SoSeparator * | getSceneGraph () const |
|
void | create (StoreGateSvc *detstore) |
|
void | refresh (StoreGateSvc *storegate) |
|
void | erase () |
|
void | uncreate () |
|
void | disallowUpdateGUI () |
|
void | allowUpdateGUI () |
|
void | setChannel (IVP1ChannelWidget *) |
|
IVP1ChannelWidget * | channel () const |
|
void | deleteController () |
|
void | setState (const State &) |
|
void | setActiveState (const ActiveState &, const bool &donttriggererase=true) |
|
bool | isRefreshing () |
|
void | setRefreshing (const bool &) |
|
void | setCanRegisterController (const bool &) |
|
Definition at line 95 of file VP1BPhysSystem.h.
◆ CamList
◆ CamListItr
◆ ActiveState
◆ State
Enumerator |
---|
CONSTRUCTED | |
REFRESHED | |
ERASED | |
UNCREATED | |
Definition at line 143 of file IVP1System.h.
◆ VP1BPhysSystem()
VP1BPhysSystem::VP1BPhysSystem |
( |
| ) |
|
◆ ~VP1BPhysSystem()
virtual VP1BPhysSystem::~VP1BPhysSystem |
( |
| ) |
|
|
inlinevirtual |
◆ activateClickedOutside
void IVP13DSystem::activateClickedOutside |
( |
| ) |
|
|
privateslotinherited |
◆ activeState()
◆ actualBuild()
void VP1BPhysSystem::actualBuild |
( |
| ) |
|
|
private |
Definition at line 190 of file VP1BPhysSystem.cxx.
193 m_root->removeAllChildren();
197 message(
"Error: Got null storegate pointer");
202 if(
m_tree==
nullptr)
return;
205 const EventContext& ctx = Gaudi::Hive::currentContext();
206 int evtNum = ctx.eventID().event_number();
207 int runNum = ctx.eventID().run_number();
212 if (
status != StatusCode::SUCCESS || !partCont) {
213 message(
"Error: Could not retrieve track particle container (used key=TrackParticleCandidate)");
228 std::vector<const Rec::TrackParticle*>* selectedParticles =
new std::vector<const Rec::TrackParticle*>();
235 for(
int i=0;
i<
m_tree->GetEntries(); ++
i) {
244 m_c->
ui.lStatus->setText(
"No event to display");
245 message(
"Event is not in the VP1BPhys Display File. Skipping.");
247 m_c->
ui.lStatus->setText(
"");
272 message(
"Different lengths of some filter track collections");
308 for(; neutralPxItr!=
m_br->
neutral_refitted_px->end(); ++neutralPxItr, ++neutralPyItr, ++neutralPzItr, ++neutralLengthItr, ++neutralColorItr) {
310 *neutralPxItr, *neutralPyItr, *neutralPzItr, *neutralLengthItr, *neutralColorItr);
331 delete selectedParticles;
◆ allowUpdateGUI()
void IVP1System::allowUpdateGUI |
( |
| ) |
|
|
privateinherited |
◆ buildController()
QWidget * VP1BPhysSystem::buildController |
( |
| ) |
|
|
virtual |
◆ buildEventSceneGraph()
void VP1BPhysSystem::buildEventSceneGraph |
( |
StoreGateSvc * |
sg, |
|
|
SoSeparator * |
root |
|
) |
| |
|
virtual |
◆ buildExtraDisplayWidget()
virtual QWidget* IVP13DSystem::buildExtraDisplayWidget |
( |
| ) |
|
|
inlinevirtualinherited |
◆ buildPermanentSceneGraph()
void IVP13DSystemSimple::buildPermanentSceneGraph |
( |
StoreGateSvc * |
detstore, |
|
|
SoSeparator * |
root |
|
) |
| |
|
virtualinherited |
◆ channel()
◆ contact_info()
const QString & IVP1System::contact_info |
( |
| ) |
const |
|
inherited |
◆ controllerWidget()
QWidget * IVP1System::controllerWidget |
( |
| ) |
|
|
inherited |
◆ create()
◆ createCross()
SoLineSet * VP1BPhysSystem::createCross |
( |
double |
extent | ) |
|
|
private |
Definition at line 1078 of file VP1BPhysSystem.cxx.
1081 SoVertexProperty *vertices =
new SoVertexProperty();
1082 vertices->vertex.set1Value ( 0,-extent, 0 , 0 );
1083 vertices->vertex.set1Value ( 1, extent, 0 , 0 );
1084 vertices->vertex.set1Value ( 2, 0 ,-extent , 0 );
1085 vertices->vertex.set1Value ( 3, 0 , extent , 0 );
1086 vertices->vertex.set1Value ( 4, 0 , 0 ,-extent );
1087 vertices->vertex.set1Value ( 5, 0 , 0 , extent );
1088 SoLineSet *
line =
new SoLineSet();
1089 line->numVertices.set1Value(0,2);
1090 line->numVertices.set1Value(1,2);
1091 line->numVertices.set1Value(2,2);
1092 line->vertexProperty = vertices;
◆ crossToggled
void VP1BPhysSystem::crossToggled |
( |
bool |
checked | ) |
|
|
privateslot |
◆ deleteController()
void IVP1System::deleteController |
( |
| ) |
|
|
privateinherited |
◆ deselectAll()
Reimplemented in VP1PrepRawDataSystem.
Definition at line 331 of file IVP13DSystem.cxx.
335 if (
it->second!=
this)
337 if (
it->first!=exception_sel) {
338 if (
it->first->policy.getValue()!=SoCooperativeSelection::SINGLE) {
340 it->first->deselectAll();
343 if (
it->first->getList()->getLength()==1) {
345 SoPath *
path =
static_cast<SoPath*
>(
it->first->getList()->get(0));
347 it->first->deselectAll();
◆ detectorStore()
◆ disallowUpdateGUI()
void IVP1System::disallowUpdateGUI |
( |
| ) |
|
|
privateinherited |
◆ displayAllTracksChanged
void VP1BPhysSystem::displayAllTracksChanged |
( |
int |
state | ) |
|
|
privateslot |
◆ displayNeutralChanged
void VP1BPhysSystem::displayNeutralChanged |
( |
int |
state | ) |
|
|
privateslot |
◆ displayOrigSignalChanged
void VP1BPhysSystem::displayOrigSignalChanged |
( |
int |
state | ) |
|
|
privateslot |
◆ displayRefTracksChanged
void VP1BPhysSystem::displayRefTracksChanged |
( |
int |
state | ) |
|
|
privateslot |
◆ displayVerticesChanged
void VP1BPhysSystem::displayVerticesChanged |
( |
int |
state | ) |
|
|
privateslot |
◆ drawAllTrackParticles()
Definition at line 378 of file VP1BPhysSystem.cxx.
384 if (
status != StatusCode::SUCCESS || !partCont) {
385 message(
"Error: Could not retrieve track particle container (used key=TrackParticleCandidate)");
390 for ( partItr = partCont->
begin() ; partItr != partItrEnd; ++partItr) {
392 if(selectedParticles!=
nullptr) {
393 std::vector<const Rec::TrackParticle*>::const_iterator selItr = selectedParticles->begin();
394 for(; selItr!=selectedParticles->end(); ++selItr) {
395 if(*partItr == *selItr) {
402 SoSwitch* trackSwitch =
new SoSwitch();
403 root->addChild(trackSwitch);
404 trackSwitch->whichChild =
m_showAll ? SO_SWITCH_ALL : SO_SWITCH_NONE;
408 SoSwitch* trackSwitch =
new SoSwitch();
409 root->addChild(trackSwitch);
◆ drawCutoffTrackParticle()
void VP1BPhysSystem::drawCutoffTrackParticle |
( |
SoSeparator * |
root, |
|
|
const Rec::TrackParticle * |
part, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
unsigned long |
color |
|
) |
| |
|
private |
Definition at line 436 of file VP1BPhysSystem.cxx.
446 SoSwitch* trackSwitch =
new SoSwitch();
447 root->addChild(trackSwitch);
448 trackSwitch->whichChild =
m_showSignal ? SO_SWITCH_ALL : SO_SWITCH_NONE;
◆ drawNeutralTrack()
void VP1BPhysSystem::drawNeutralTrack |
( |
SoSeparator * |
root, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
double |
px, |
|
|
double |
py, |
|
|
double |
pz, |
|
|
double |
length, |
|
|
unsigned long |
color |
|
) |
| |
|
private |
Definition at line 460 of file VP1BPhysSystem.cxx.
463 std::vector<Amg::Vector3D >*
points =
new std::vector<Amg::Vector3D >();
467 CLHEP::Hep3Vector
track =
p.unit();
474 SoSwitch* trackSwitch =
new SoSwitch();
475 root->addChild(trackSwitch);
476 trackSwitch->whichChild =
m_showNeutral ? SO_SWITCH_ALL : SO_SWITCH_NONE;
◆ drawPoints()
void VP1BPhysSystem::drawPoints |
( |
SoSwitch * |
trackSwitch, |
|
|
std::vector< Amg::Vector3D > * |
points, |
|
|
unsigned long |
color, |
|
|
double |
width, |
|
|
bool |
isNeutral |
|
) |
| |
|
private |
Definition at line 515 of file VP1BPhysSystem.cxx.
519 if(
points ==
nullptr)
return;
521 SoSeparator*
sep =
new SoSeparator();
524 SoDrawStyle* drawStyle =
new SoDrawStyle();
525 drawStyle->lineWidth =
width;
527 drawStyle->linePattern = 0x00ff;
529 sep->addChild(drawStyle);
532 SoBaseColor* baseColor =
new SoBaseColor();
535 baseColor->rgb.setValue(
r,
g,
b);
536 sep->addChild(baseColor);
539 SoVertexProperty *vertices =
new SoVertexProperty();
543 vertices->vertex.set1Value(iver++,(*it).x(),(*it).y(),(*it).z());
547 SoLineSet *
line =
new SoLineSet();
548 line->numVertices = iver;
549 line->vertexProperty = vertices;
555 trackSwitch->addChild(
sep);
◆ drawRefittedTrack()
void VP1BPhysSystem::drawRefittedTrack |
( |
SoSeparator * |
root, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
double |
px, |
|
|
double |
py, |
|
|
double |
pz, |
|
|
double |
charge, |
|
|
unsigned long |
color |
|
) |
| |
|
private |
Definition at line 487 of file VP1BPhysSystem.cxx.
501 SoSwitch* trackSwitch =
new SoSwitch();
502 root->addChild(trackSwitch);
503 trackSwitch->whichChild =
m_showRefitted ? SO_SWITCH_ALL : SO_SWITCH_NONE;
◆ drawTrackParticle()
void VP1BPhysSystem::drawTrackParticle |
( |
SoSwitch * |
trackSwitch, |
|
|
const Rec::TrackParticle * |
part, |
|
|
unsigned long |
color |
|
) |
| |
|
private |
◆ drawVertex()
void VP1BPhysSystem::drawVertex |
( |
SoSeparator * |
root, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
double |
radius, |
|
|
double |
xx, |
|
|
double |
xy, |
|
|
double |
xz, |
|
|
double |
yy, |
|
|
double |
yz, |
|
|
double |
zz, |
|
|
unsigned long |
color, |
|
|
std::vector< SoSwitch * > & |
vertexSwitches |
|
) |
| |
|
private |
sphere
cross
ellipsoid
Definition at line 679 of file VP1BPhysSystem.cxx.
685 SoSeparator*
sep =
new SoSeparator();
688 SoTranslation * translation =
new SoTranslation;
689 translation->translation.setValue (
x,
y,
z );
690 sep->addChild ( translation );
693 SoBaseColor* baseColor =
new SoBaseColor();
696 baseColor->rgb.setValue(
rr,gg,bb);
697 sep->addChild(baseColor);
700 SoSwitch* vtxSwitch =
new SoSwitch();
702 vtxSwitch->whichChild = SO_SWITCH_NONE;
706 sep->addChild(vtxSwitch);
709 SoSphere * sphere =
new SoSphere;
711 vtxSwitch->addChild ( sphere );
715 vtxSwitch->addChild ( cross );
718 SoSeparator* sepEllipsoid =
new SoSeparator();
719 vtxSwitch->addChild ( sepEllipsoid );
731 double sixthrootofdet =
exp(
log(
det)/6.0);
732 double invdet = 1.0/sixthrootofdet;
739 SbMatrix sbMat(
a,
b,
c,0,
743 SoMatrixTransform * matTrans =
new SoMatrixTransform();
744 matTrans->matrix.setValue(sbMat);
745 sepEllipsoid->addChild (matTrans);
749 SoSphere * ellipsoid =
new SoSphere;
750 ellipsoid->radius = 3;
751 sepEllipsoid->addChild ( sphere );
756 vertexSwitches.push_back(vtxSwitch);
◆ ellipsoidToggled
void VP1BPhysSystem::ellipsoidToggled |
( |
bool |
checked | ) |
|
|
privateslot |
◆ ensureBuildController()
void IVP13DSystemSimple::ensureBuildController |
( |
| ) |
|
|
inherited |
◆ erase()
void IVP13DSystemSimple::erase |
( |
| ) |
|
|
privatevirtualinherited |
◆ eventStore()
◆ filterTrack()
void VP1BPhysSystem::filterTrack |
( |
SoSeparator * |
root, |
|
|
const Rec::TrackParticleContainer * |
partCont, |
|
|
double |
pt, |
|
|
double |
eta, |
|
|
double |
phi, |
|
|
double |
d0, |
|
|
double |
z0, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
unsigned long |
color, |
|
|
std::vector< const Rec::TrackParticle * > * |
selectedParticles |
|
) |
| |
|
private |
drawing methods *******************************************************************
Definition at line 349 of file VP1BPhysSystem.cxx.
357 for ( partItr = partCont->
begin() ; partItr != partItrEnd; ++partItr) {
359 double trk_qOverP = (*partItr)->measuredPerigee()->parameters()[
Trk::qOverP];
360 double trk_theta = (*partItr)->measuredPerigee()->parameters()[
Trk::theta];
363 double trk_pt = fabs(1./trk_qOverP)*
sin(trk_theta);
364 double trk_eta = -
log(
tan(trk_theta/2));
367 if(fabs(trk_pt -
pt)<0.1 && fabs(trk_eta -
eta)<0.01) {
369 if(selectedParticles!=
nullptr) {
370 selectedParticles->push_back(*partItr);
◆ findClosestApproach()
std::vector< Amg::Vector3D > * VP1BPhysSystem::findClosestApproach |
( |
std::vector< Amg::Vector3D > * |
points, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
|
private |
Definition at line 632 of file VP1BPhysSystem.cxx.
635 std::vector<Amg::Vector3D >* pointsOut =
new std::vector<Amg::Vector3D >();
638 if(
points->size()<2)
return pointsOut;
640 double lastDist = 1e10;
647 CLHEP::Hep3Vector
p = CLHEP::Hep3Vector((*(
it+1)).
x()-(*it).x(), (*(
it+1)).y()-(*it).y(), (*(
it+1)).z()-(*it).z());
648 CLHEP::Hep3Vector
v = CLHEP::Hep3Vector(
x - (*it).x(),
y - (*it).y(),
z - (*it).z());
651 double proj =
v.dot(
p.unit());
652 CLHEP::Hep3Vector vect =
p.unit();
656 if(proj<0 || proj >
p.mag())
continue;
659 double dist = sqrt(
p.mag2() -
proj*
proj);
662 point =
Amg::Vector3D((*it).x() + vect.x(), (*it).y() + vect.y(), (*it).z() + vect.z());
668 pointsOut->push_back(point);
670 pointsOut->push_back(*
it);
◆ getCameraList()
std::set< SoCamera * > IVP13DSystem::getCameraList |
( |
| ) |
|
|
inherited |
Definition at line 395 of file IVP13DSystem.cxx.
400 SoCamera*cam = (*it)->getCamera();
402 cameralist.insert(cam);
◆ getColor()
void VP1BPhysSystem::getColor |
( |
unsigned long |
icolor, |
|
|
double & |
r, |
|
|
double & |
g, |
|
|
double & |
b |
|
) |
| |
|
private |
Definition at line 1059 of file VP1BPhysSystem.cxx.
1062 unsigned long red = icolor/65536;
1063 icolor -=
red*65536;
1065 unsigned long green = icolor/256;
1066 icolor -=
green*256;
1068 unsigned long blue = icolor;
◆ getPoints() [1/2]
◆ getPoints() [2/2]
Definition at line 565 of file VP1BPhysSystem.cxx.
574 propagator = toolaccess.getToolPointer<
Trk::IExtrapolator>(
"Trk::Extrapolator/VP1Extrapolator",
false,
true);
575 if(propagator ==
nullptr) {
576 message(
"Error: propagator Trk::Extrapolator/VP1Extrapolator couldn't be created");
584 std::vector< Amg::Vector3D >*
points =
new std::vector<Amg::Vector3D >();
588 if(propagator!=
nullptr && propagationHelper!=
nullptr) {
598 message(
"Error: no track parameters");
602 points->push_back(
Amg::Vector3D((*it)->position().x(),(*it)->position().y(),(*it)->position().z()));
608 delete propagationHelper;
◆ getRefittedTrack()
Definition at line 1021 of file VP1BPhysSystem.cxx.
1029 covMtxP.setIdentity();
1041 trackStateOnSurfaces->push_back(
new Trk::TrackStateOnSurface(
nullptr,
p->
uniqueClone(),
nullptr));
1044 #ifdef TRKTRACK_TRACKINFO_H
◆ getSceneGraph()
SoSeparator * IVP13DSystemSimple::getSceneGraph |
( |
| ) |
const |
|
privatevirtualinherited |
◆ getTrack()
utils *****************************************************************************
Definition at line 960 of file VP1BPhysSystem.cxx.
966 std::vector< const Trk::TrackParameters* > trackpars;
969 auto trackStateOnSurfaces = std::make_unique<Trk::TrackStates>();
972 if (!trackpars.empty()) {
973 bool needresorting = trackpars.at(0)!=trackparticle->
perigee();
986 unsigned limit(needresorting?trackpars.size()-1:trackpars.size());
991 for (
unsigned i = 0;
i <
limit; ++
i) {
1006 #ifdef TRKTRACK_TRACKINFO_H
◆ inactiveSystemTurnedActive
void IVP1System::inactiveSystemTurnedActive |
( |
| ) |
|
|
signalinherited |
◆ information()
const QString & IVP1System::information |
( |
| ) |
const |
|
inherited |
◆ isRefreshing()
bool IVP1System::isRefreshing |
( |
| ) |
|
|
privateinherited |
◆ itemFromSystemSelected
void IVP13DSystem::itemFromSystemSelected |
( |
| ) |
|
|
signalinherited |
◆ loadFile
void VP1BPhysSystem::loadFile |
( |
| ) |
|
|
privateslot |
slots *****************************************************************************
Definition at line 770 of file VP1BPhysSystem.cxx.
774 QString
fileName = QFileDialog::getOpenFileName(
nullptr, tr(
"Open File"),tr(
"."),tr(
"ROOT files (*.root)"));
799 m_tree->BuildIndex(
"runNum",
"evtNum");
802 m_c->
ui.lStatus->setText(
"");
804 m_c->
ui.lStatus->setText(
"File doesn't contain vp1bphys tree");
805 message(
"File doesn't contain vp1bphys tree");
808 m_c->
ui.lStatus->setText(
"File doesn't exist");
◆ message() [1/3]
void IVP1System::message |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ message() [2/3]
void IVP1System::message |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 400 of file IVP1System.cxx.
402 if (addtostart.isEmpty()) {
406 if (addtoend.isEmpty()) {
◆ message() [3/3]
void IVP1System::message |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageDebug() [1/3]
void IVP1System::messageDebug |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageDebug() [2/3]
void IVP1System::messageDebug |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 416 of file IVP1System.cxx.
418 if (addtostart.isEmpty()) {
422 if (addtoend.isEmpty()) {
◆ messageDebug() [3/3]
void IVP1System::messageDebug |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageVerbose() [1/3]
void IVP1System::messageVerbose |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageVerbose() [2/3]
void IVP1System::messageVerbose |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 432 of file IVP1System.cxx.
436 if (addtostart.isEmpty()) {
440 if (addtoend.isEmpty()) {
◆ messageVerbose() [3/3]
void IVP1System::messageVerbose |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ name()
const QString & IVP1System::name |
( |
| ) |
const |
|
inherited |
◆ needErase
void IVP1System::needErase |
( |
| ) |
|
|
signalinherited |
◆ refresh()
void IVP13DSystemSimple::refresh |
( |
StoreGateSvc * |
storegate | ) |
|
|
privatevirtualinherited |
◆ registerCamera()
void IVP13DSystem::registerCamera |
( |
SoCamera * |
camera | ) |
|
|
inherited |
◆ registerController()
void IVP1System::registerController |
( |
QWidget * |
w | ) |
|
|
protectedinherited |
Definition at line 224 of file IVP1System.cxx.
231 messageVerbose(
"registerController w!=0 = "+QString(
w!=0?
"true":
"false"));
234 message(
"ERROR: Please don't register controllers after create().");
236 message(
"ERROR: Please only register controllers in CONSTRUCTED state.");
238 message(
"ERROR: Attempt to register null controller.");
242 message(
"ERROR: Attempt to register controller twice.");
◆ registerSelectionNode()
Definition at line 257 of file IVP13DSystem.cxx.
260 message(
"registerSelectionNode Error: NULL selection pointer!");
264 message(
"registerSelectionNode Error: Trying to register selection node more than once!");
◆ registerViewer()
void IVP13DSystem::registerViewer |
( |
SoQtViewer * |
viewer | ) |
|
|
inherited |
◆ restoreFromState()
void IVP1System::restoreFromState |
( |
QByteArray |
ba | ) |
|
|
virtualinherited |
Reimplemented in VP1GeometrySystem, VP1TrackSystem, VP1PrepRawDataSystem, VP1AODSystem, VP1MCSystem, VP1RawDataSystem, VP1PartSpectSystem, VP1BanksSystem, VP1CaloClusterSystem, VP1TrackingGeometrySystem, VP1GuideLineSystem, VP1CaloReadoutSystem, VP1CaloHitLegoSystem, VP1CaloLegoSystem, VP1MissingEtSystem, VP1HVLegoSystem, VP1VertexSystem, VP1CaloCellSystem, and VP1ExtraInputSystem.
Definition at line 302 of file IVP1System.cxx.
308 message(
"Error in IVP1System::restoreFromState: Received non-empty saved state.");
◆ saveState()
QByteArray IVP1System::saveState |
( |
| ) |
|
|
virtualinherited |
Reimplemented in VP1GeometrySystem, VP1TrackingGeometrySystem, VP1TrackSystem, VP1PrepRawDataSystem, VP1AODSystem, VP1GuideLineSystem, VP1CaloReadoutSystem, VP1MCSystem, VP1CaloHitLegoSystem, VP1CaloLegoSystem, VP1RawDataSystem, VP1PartSpectSystem, VP1BanksSystem, VP1CaloClusterSystem, VP1MissingEtSystem, VP1HVLegoSystem, VP1VertexSystem, VP1CaloCellSystem, and VP1ExtraInputSystem.
Definition at line 294 of file IVP1System.cxx.
◆ serviceLocator()
ISvcLocator * IVP1System::serviceLocator |
( |
| ) |
const |
|
inherited |
◆ setActiveState()
◆ setCanRegisterController()
void IVP1System::setCanRegisterController |
( |
const bool & |
c | ) |
|
|
privateinherited |
◆ setChannel()
◆ setRefreshing()
void IVP1System::setRefreshing |
( |
const bool & |
b | ) |
|
|
privateinherited |
◆ setState()
◆ setUserSelectionNotificationsEnabled()
Definition at line 310 of file IVP13DSystem.cxx.
313 message(
"setUserSelectionNotificationsEnabled Error: NULL selection pointer!");
317 message(
"setUserSelectionNotificationsEnabled Error: Called for selection which was never registered!");
◆ sphereToggled
void VP1BPhysSystem::sphereToggled |
( |
bool |
checked | ) |
|
|
privateslot |
◆ state()
◆ storeGate()
◆ str() [1/30]
◆ str() [2/30]
static QString VP1String::str |
( |
const bool |
b | ) |
|
|
inlinestaticinherited |
Definition at line 53 of file VP1String.h.
53 {
return b?
"True":
"False"; }
◆ str() [3/30]
static QString VP1String::str |
( |
const char * |
c | ) |
|
|
inlinestaticinherited |
◆ str() [4/30]
static QString VP1String::str |
( |
const double & |
d | ) |
|
|
inlinestaticinherited |
◆ str() [5/30]
static QString VP1String::str |
( |
const float & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [6/30]
◆ str() [7/30]
QString VP1String::str |
( |
const QColor & |
c | ) |
|
|
staticinherited |
Definition at line 30 of file VP1String.cxx.
32 return c.isValid() ?
c.name() :
"Invalid";
◆ str() [8/30]
template<class T >
static QString VP1String::str |
( |
const QFlags< T > & |
f | ) |
|
|
inlinestaticinherited |
◆ str() [9/30]
template<class T >
static QString VP1String::str |
( |
const QList< T > & |
t | ) |
|
|
inlinestaticinherited |
◆ str() [10/30]
static QString VP1String::str |
( |
const QString & |
s | ) |
|
|
inlinestaticinherited |
◆ str() [11/30]
QString VP1String::str |
( |
const SbColor & |
c | ) |
|
|
staticinherited |
◆ str() [12/30]
QString VP1String::str |
( |
const SbVec2d & |
v | ) |
|
|
staticinherited |
◆ str() [13/30]
QString VP1String::str |
( |
const SbVec2f & |
v | ) |
|
|
staticinherited |
◆ str() [14/30]
QString VP1String::str |
( |
const SbVec2s & |
v | ) |
|
|
staticinherited |
◆ str() [15/30]
QString VP1String::str |
( |
const SbVec3d & |
v | ) |
|
|
staticinherited |
◆ str() [16/30]
QString VP1String::str |
( |
const SbVec3f & |
v | ) |
|
|
staticinherited |
◆ str() [17/30]
QString VP1String::str |
( |
const SbVec3s & |
v | ) |
|
|
staticinherited |
◆ str() [18/30]
QString VP1String::str |
( |
const SbVec4d & |
v | ) |
|
|
staticinherited |
◆ str() [19/30]
QString VP1String::str |
( |
const SbVec4f & |
v | ) |
|
|
staticinherited |
◆ str() [20/30]
template<class T >
static QString VP1String::str |
( |
const T * |
t | ) |
|
|
inlinestaticinherited |
Definition at line 87 of file VP1String.h.
87 {
return str(
static_cast<const void*
>(
t)); }
◆ str() [21/30]
QString VP1String::str |
( |
const void * |
p | ) |
|
|
staticinherited |
Definition at line 48 of file VP1String.cxx.
54 return QString (
s.str().c_str());
◆ str() [22/30]
◆ str() [23/30]
static QString VP1String::str |
( |
int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [24/30]
static QString VP1String::str |
( |
long |
n | ) |
|
|
inlinestaticinherited |
◆ str() [25/30]
static QString VP1String::str |
( |
qlonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [26/30]
static QString VP1String::str |
( |
qulonglong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [27/30]
static QString VP1String::str |
( |
short int |
n | ) |
|
|
inlinestaticinherited |
◆ str() [28/30]
static QString VP1String::str |
( |
uint |
n | ) |
|
|
inlinestaticinherited |
◆ str() [29/30]
static QString VP1String::str |
( |
ulong |
n | ) |
|
|
inlinestaticinherited |
◆ str() [30/30]
static QString VP1String::str |
( |
unsigned short int |
n | ) |
|
|
inlinestaticinherited |
◆ sysmessage
void IVP1System::sysmessage |
( |
QString |
| ) |
const |
|
signalinherited |
◆ systemcreate()
void IVP13DSystemSimple::systemcreate |
( |
StoreGateSvc * |
detstore | ) |
|
|
virtualinherited |
◆ systemerase()
void IVP13DSystemSimple::systemerase |
( |
| ) |
|
|
virtualinherited |
◆ systemuncreate()
void IVP13DSystemSimple::systemuncreate |
( |
| ) |
|
|
virtualinherited |
◆ toolSvc()
IToolSvc * IVP1System::toolSvc |
( |
| ) |
const |
|
inherited |
◆ uncreate()
void IVP13DSystemSimple::uncreate |
( |
| ) |
|
|
privatevirtualinherited |
◆ unregisterSelectionNode()
Definition at line 281 of file IVP13DSystem.cxx.
284 message(
"unregisterSelectionNode Error: NULL selection pointer!");
288 message(
"registerSelectionNode Error: Trying to unregister unknown selection node!");
◆ updateGUI()
void IVP13DSystemSimple::updateGUI |
( |
| ) |
|
|
inlineinherited |
◆ userChangedSelection()
◆ userClickedOnBgd()
void IVP13DSystem::userClickedOnBgd |
( |
| ) |
|
|
virtualinherited |
◆ userDeselectedSingleNode()
◆ userPickedNode()
void IVP13DSystemSimple::userPickedNode |
( |
SoNode * |
pickedNode, |
|
|
SoPath * |
pickedPath |
|
) |
| |
|
virtualinherited |
Reimplemented in VP1GeometrySystem, VP1AODSystem, VP1TrackSystem, TrackSystemDisplay, VP1PrepRawDataSystem, Example3DSystem5, VP1CaloReadoutSystem, Example3DSystem4, VP1CaloHitLegoSystem, VP1CaloLegoSystem, Example3DSystem3, VP1RawDataSystem, VP1CaloClusterSystem, VP1MissingEtSystem, VP1HVLegoSystem, TrackingSurfacesSystem, VP1CaloCellSystem, and VP1VertexSystem.
Definition at line 26 of file IVP13DSystemSimple.cxx.
◆ userSelectedSingleNode()
◆ verbose()
static bool IVP1System::verbose |
( |
| ) |
|
|
inlinestaticinherited |
◆ warnOnDisabledNotifications()
void IVP13DSystemSimple::warnOnDisabledNotifications |
( |
| ) |
const |
|
inherited |
Definition at line 221 of file IVP13DSystemSimple.cxx.
223 QList<SoNode*> nodesR;
224 QList<SoNode*> nodesE;
227 if (!nodesR.isEmpty()) {
228 message(
"WARNING: Found "+
str(nodesR.count())+
" node"+QString(nodesR.count()>1?
"s":0)+
" with disabled notifications in permanent scenegraph:");
229 for (SoNode *
node : nodesR)
230 message(
" => Node ("+
str(
node)+
") of type "+QString(
node->getTypeId().getName().getString())+
", named "+QString(
node->getName().getString()));
232 if (!nodesE.isEmpty()) {
233 message(
"WARNING: Found "+
str(nodesE.count())+
" node"+QString(nodesE.count()>1?
"s":0)+
" with disabled notifications in event scenegraph:");
234 for (SoNode *
node : nodesE)
235 message(
" => Node ("+
str(
node)+
") of type "+QString(
node->getTypeId().getName().getString())+
", named "+QString(
node->getName().getString()));
◆ m_br
◆ m_c
◆ m_d
Imp* IVP13DSystemSimple::m_d |
|
privateinherited |
◆ m_fileName
QString VP1BPhysSystem::m_fileName |
|
private |
◆ m_neutralSwitches
std::vector<SoSwitch*> VP1BPhysSystem::m_neutralSwitches |
|
private |
◆ m_overlapSwitches
std::vector<SoSwitch*> VP1BPhysSystem::m_overlapSwitches |
|
private |
◆ m_refittedSwitches
std::vector<SoSwitch*> VP1BPhysSystem::m_refittedSwitches |
|
private |
◆ m_root
SoSeparator* VP1BPhysSystem::m_root |
|
private |
◆ m_rootFile
TFile* VP1BPhysSystem::m_rootFile |
|
private |
◆ m_sg
◆ m_showAll
bool VP1BPhysSystem::m_showAll |
|
private |
◆ m_showNeutral
bool VP1BPhysSystem::m_showNeutral |
|
private |
◆ m_showRefitted
bool VP1BPhysSystem::m_showRefitted |
|
private |
◆ m_showSignal
bool VP1BPhysSystem::m_showSignal |
|
private |
◆ m_showVertices
bool VP1BPhysSystem::m_showVertices |
|
private |
◆ m_signalSwitches
std::vector<SoSwitch*> VP1BPhysSystem::m_signalSwitches |
|
private |
◆ m_trackSwitches
std::vector<SoSwitch*> VP1BPhysSystem::m_trackSwitches |
|
private |
◆ m_tree
TTree* VP1BPhysSystem::m_tree |
|
private |
◆ m_vertexStyle
int VP1BPhysSystem::m_vertexStyle |
|
private |
◆ m_vertexSwitches
std::vector<SoSwitch*> VP1BPhysSystem::m_vertexSwitches |
|
private |
◆ s_vp1verbose
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
virtual void systemuncreate()
std::vector< double > * neutral_refitted_pz
std::vector< SoSwitch * > m_trackSwitches
void crossToggled(bool checked)
const QString contact_info
Contains information about the 'fitter' of this track.
static std::map< SoCooperativeSelection *, IVP13DSystem * > selection2system
void drawRefittedTrack(SoSeparator *root, double x, double y, double z, double px, double py, double pz, double charge, unsigned long color)
std::vector< double > * track_refitted_py
Const iterator class for DataVector/DataList.
path
python interpreter configuration --------------------------------------—
static void made_selection(void *userdata, SoPath *path)
std::string find(const std::string &s)
return a remapped string
IVP13DSystemSimple(const QString &name, const QString &information, const QString &contact_info)
std::set< SoQtViewer * > viewers
virtual QWidget * buildController()
void drawTrackParticle(SoSwitch *trackSwitch, const Rec::TrackParticle *part, unsigned long color)
std::vector< double > * track_charge
void displayNeutralChanged(int state)
Scalar eta() const
pseudorapidity method
void drawAllTrackParticles(StoreGateSvc *sg, SoSeparator *root, std::vector< const Rec::TrackParticle * > *selectedParticles)
void displayAllTracksChanged(int state)
std::vector< double > * track_z0
std::vector< unsigned long > * track_color
std::vector< SoSwitch * > m_refittedSwitches
SoLineSet * createCross(double extent)
void inactiveSystemTurnedActive()
std::unique_ptr< T_Obj > uniqueClone(const T_Obj *obj)
std::vector< double > * track_refitted_pz
const Trk::Track * getRefittedTrack(const Amg::Vector3D &pos, const Amg::Vector3D &mom, double charge)
static void clickedoutside(void *userdata, SoCooperativeSelection *sel)
void drawCutoffTrackParticle(SoSeparator *root, const Rec::TrackParticle *part, double x, double y, double z, unsigned long color)
bool const RAWDATA *ch2 const
void loadFile()
slots *****************************************************************************
static QString str(const QString &s)
virtual void buildPermanentSceneGraph(StoreGateSvc *detstore, SoSeparator *root)
std::vector< double > * track_refitted_px
#define AmgSymMatrix(dim)
static const bool s_vp1verbose
TrackParameters_v1 TrackParameters
StatusCode retrieve(const T *&ptr) const
Retrieve the default object into a const T*.
std::vector< SoSwitch * > m_vertexSwitches
SoCooperativeSelection * root
virtual void buildEventSceneGraph(StoreGateSvc *sg, SoSeparator *root)=0
void displayOrigSignalChanged(int state)
std::vector< double > * neutral_refitted_py
static const char * prefix_msg()
void drawPoints(SoSwitch *trackSwitch, std::vector< Amg::Vector3D > *points, unsigned long color, double width, bool isNeutral)
DataVector< const Trk::TrackStateOnSurface > TrackStates
const QString information
void sphereToggled(bool checked)
static void start_changeselection(void *userdata, SoSelection *sel)
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual void systemerase()
std::vector< unsigned long > * track_refitted_color
std::vector< SoSwitch * > m_overlapSwitches
std::vector< double > * track_pt
std::vector< Amg::Vector3D > * findClosestApproach(std::vector< Amg::Vector3D > *points, double x, double y, double z)
bool isNeutral(const T &p)
void getColor(unsigned long icolor, double &r, double &g, double &b)
virtual void systemcreate(StoreGateSvc *detstore)
void ensureBuildController()
void drawVertex(SoSeparator *root, double x, double y, double z, double radius, double xx, double xy, double xz, double yy, double yz, double zz, unsigned long color, std::vector< SoSwitch * > &vertexSwitches)
void displayRefTracksChanged(int state)
StoreGateSvc * eventStore() const
std::vector< SoSwitch * > m_neutralSwitches
std::vector< double > * neutral_refitted_px
void sysmessage(QString) const
static ISvcLocator * serviceLocator()
static StoreGateSvc * eventStore()
static QColor sbcol2qcol(const SbColor &)
Ensure that the ATLAS eigen extensions are properly loaded.
std::set< SoCamera * > staticcameras
represents the track state (measurement, material, fit parameters and quality) at a surface.
void messageDebug(const QString &) const
StoreGateSvc * detectorStore() const
static IToolSvc * toolSvc()
std::vector< double > * track_phi
std::vector< double > * track_eta
const std::vector< const TrackParameters * > & trackParameters() const
Returns the track parameters.
void getNodesWithDisabledNotifications(SoGroup *, QList< SoNode * > &) const
double charge(const T &p)
std::vector< SoSwitch * > m_signalSwitches
static const char * prefix_debug()
Eigen::Matrix< double, 3, 1 > Vector3D
std::vector< unsigned long > * neutral_color
void registerController(QWidget *)
void ellipsoidToggled(bool checked)
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
std::vector< double > * track_d0
static const char * prefix_verbose()
static void made_deselection(void *userdata, SoPath *path)
bool makePointsCharged(std::vector< Amg::Vector3D > &points, const Trk::Track *, Trk::IExtrapolator *extrapolator, Trk::ParticleHypothesis hypo=Trk::nonInteracting, bool useMEOT=false, const Trk::Volume *volume=0)
IVP1ChannelWidget * channel
void warnOnDisabledNotifications() const
Ui::BPhysControllerForm ui
QSet< SoCooperativeSelection * > selectionsWithDisabledNotifications
static void finished_changeselection(void *userdata, SoSelection *sel)
void displayVerticesChanged(int state)
void drawNeutralTrack(SoSeparator *root, double x, double y, double z, double px, double py, double pz, double length, unsigned long color)
virtual void userClickedOnBgd()
void filterTrack(SoSeparator *root, const Rec::TrackParticleContainer *partCont, double pt, double eta, double phi, double d0, double z0, double x, double y, double z, unsigned long color, std::vector< const Rec::TrackParticle * > *selectedParticles)
drawing methods *******************************************************************
const boost::regex rr(r_r)
const unsigned long darkGray
bool clickedoutsideScheduled
bool canregistercontroller
const Perigee * perigee() const
Attempts to cast the definingParameters() to Perigee.
static StoreGateSvc * detectorStore()
std::vector< Amg::Vector3D > * getPoints(const Trk::Track *track)
void message(const QString &) const
void messageVerbose(const QString &) const
std::vector< double > * neutral_length
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
const Trk::Track * getTrack(const Rec::TrackParticle *trackparticle)
utils *****************************************************************************
@ Unknown
Track fitter not defined.