|
ATLAS Offline Software
|
#include <HitsSoNodeManager.h>
|
| HitsSoNodeManager (IVP1System *sys=0) |
|
| ~HitsSoNodeManager () |
|
SoNode * | getShapeNode_Point () |
|
SoNode * | getShapeNode_Cross (double extent) |
|
SoNode * | getShapeNode_DriftDisc (double radius) |
|
SoNode * | getShapeNode_DriftTube (double halfLength, double radius) |
|
SoNode * | getShapeNode_ProjectedDriftTube (double halfLength, double radius, bool inner, bool outer) |
|
SoNode * | getShapeNode_Strip (double length, double width=0, double depth=0) |
|
SoNode * | getShapeNode_Wire (double length, double minWidth=0, double maxWidth=0, double depth=0) |
|
SoNode * | getShapeNode_Pad (double length, double minWidth=0, double maxWidth=0, double depth=0) |
|
SoTransform * | getUnitTransform () |
|
void | setSystemBasePointer (IVP1System *sys) |
|
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 |
|
IVP1System * | systemBase () const |
|
QString | helperClassName () const |
|
Definition at line 17 of file HitsSoNodeManager.h.
◆ HitsSoNodeManager() [1/2]
HitsSoNodeManager::HitsSoNodeManager |
( |
IVP1System * |
sys = 0 | ) |
|
◆ ~HitsSoNodeManager()
HitsSoNodeManager::~HitsSoNodeManager |
( |
| ) |
|
◆ HitsSoNodeManager() [2/2]
◆ getShapeNode_Cross()
SoNode * HitsSoNodeManager::getShapeNode_Cross |
( |
double |
extent | ) |
|
Definition at line 427 of file HitsSoNodeManager.cxx.
433 SoVertexProperty * vertices =
new SoVertexProperty;
435 vertices->vertex.set1Value(iver++,-extent,0.0,0.0);
436 vertices->vertex.set1Value(iver++,+extent,0.0,0.0);
437 vertices->vertex.set1Value(iver++,0.0,-extent,0.0);
438 vertices->vertex.set1Value(iver++,0.0,+extent,0.0);
439 vertices->vertex.set1Value(iver++,0.0,0.0,-extent);
440 vertices->vertex.set1Value(iver++,0.0,0.0,+extent);
442 SoLineSet * cross =
new SoLineSet;
443 cross->vertexProperty = vertices;
445 cross->numVertices.set1Value(numlines++,2);
446 cross->numVertices.set1Value(numlines++,2);
447 cross->numVertices.set1Value(numlines++,2);
◆ getShapeNode_DriftDisc()
SoNode * HitsSoNodeManager::getShapeNode_DriftDisc |
( |
double |
radius | ) |
|
Definition at line 177 of file HitsSoNodeManager.cxx.
187 SoSeparator*
sep =
new SoSeparator;
188 SoRotationXYZ * rot =
new SoRotationXYZ;
190 rot->angle.setValue(
M_PI*0.5
f);
192 SoCylinder * cyl =
new SoCylinder;
193 cyl->radius.setValue(
radius);
◆ getShapeNode_DriftTube()
SoNode * HitsSoNodeManager::getShapeNode_DriftTube |
( |
double |
halfLength, |
|
|
double |
radius |
|
) |
| |
Definition at line 138 of file HitsSoNodeManager.cxx.
144 double id(halfLength-999999999.9*
radius);
150 SoSeparator*
sep =
new SoSeparator;
151 SoRotationXYZ * rot =
new SoRotationXYZ;
153 rot->angle.setValue(
M_PI*0.5
f);
155 SoCylinder * cyl =
new SoCylinder;
156 cyl->radius.setValue(
radius);
157 cyl->height.setValue(2.0
f*halfLength);
163 SoVertexProperty * scatVtxProperty =
new SoVertexProperty();
164 scatVtxProperty->vertex.set1Value(0, 0.0
f,0.0
f,-halfLength);
165 scatVtxProperty->vertex.set1Value(1, 0.0
f,0.0
f, halfLength);
166 SoLineSet *
line =
new SoLineSet();
167 line->numVertices = 2;
168 line->vertexProperty = scatVtxProperty;
◆ getShapeNode_Pad()
SoNode * HitsSoNodeManager::getShapeNode_Pad |
( |
double |
length, |
|
|
double |
minWidth = 0 , |
|
|
double |
maxWidth = 0 , |
|
|
double |
depth = 0 |
|
) |
| |
Definition at line 363 of file HitsSoNodeManager.cxx.
378 if (maxWidth==0.0 &&
depth==0) {
380 std::cout <<
"maxWidth==0.0 && depth==0 && lengthPad==0.0, returning a point..." << std::endl;
385 SoVertexProperty * scatVtxProperty =
new SoVertexProperty();
386 scatVtxProperty->vertex.set1Value(0, 0.0
f,-
length*0.5
f,0.0
f);
387 scatVtxProperty->vertex.set1Value(1, 0.0
f,
length*0.5
f,0.0
f);
388 SoLineSet *
line =
new SoLineSet();
389 line->numVertices = 2;
390 line->vertexProperty = scatVtxProperty;
◆ getShapeNode_Point()
SoNode * HitsSoNodeManager::getShapeNode_Point |
( |
| ) |
|
Definition at line 412 of file HitsSoNodeManager.cxx.
415 SoPointSet * scatPointSet =
new SoPointSet;
416 SoVertexProperty * scatVtxProperty =
new SoVertexProperty;
417 scatVtxProperty->vertex.set1Value(0,0.0
f,0.0
f,0.0
f);
418 scatPointSet->numPoints=1;
419 scatPointSet->vertexProperty.setValue(scatVtxProperty);
◆ getShapeNode_ProjectedDriftTube()
SoNode * HitsSoNodeManager::getShapeNode_ProjectedDriftTube |
( |
double |
halfLength, |
|
|
double |
radius, |
|
|
bool |
inner, |
|
|
bool |
outer |
|
) |
| |
Definition at line 203 of file HitsSoNodeManager.cxx.
210 double id(halfLength-9999.9*
radius-(inner?0.0:-9999799.99)-(outer?0.0:-9999997979.99));
215 if (!inner&&!outer) {
217 SoInfo *
info =
new SoInfo;
224 double halfLengthInner = halfLength<160.0 ? 2*349.3150-halfLength : halfLength;
228 SoSeparator*
sep =
new SoSeparator;
229 SoRotationXYZ * rot =
new SoRotationXYZ;
231 rot->angle.setValue(
M_PI*0.5
f);
233 SoCylinder * cyl =
new SoCylinder;
234 cyl->radius.setValue(
radius);
237 SoTranslation * trans =
new SoTranslation;
238 trans->translation.setValue(0.0
f,halfLengthInner,0.0
f);
239 sep->addChild(trans);
243 SoTranslation * trans =
new SoTranslation;
244 trans->translation.setValue(0.0
f,(inner?-halfLength-halfLengthInner:-halfLength),0.0
f);
245 sep->addChild(trans);
252 SoPointSet * scatPointSet =
new SoPointSet;
253 SoVertexProperty * scatVtxProperty =
new SoVertexProperty;
256 scatVtxProperty->vertex.set1Value(
i++,0.0
f,0.0
f,halfLengthInner);
258 scatVtxProperty->vertex.set1Value(
i++,0.0
f,0.0
f,-halfLength);
259 scatPointSet->numPoints=
i;
260 scatPointSet->vertexProperty.setValue(scatVtxProperty);
◆ getShapeNode_Strip()
SoNode * HitsSoNodeManager::getShapeNode_Strip |
( |
double |
length, |
|
|
double |
width = 0 , |
|
|
double |
depth = 0 |
|
) |
| |
Can never reach this line (coverity 31149) std::cout << "Returning zero!" << std::endl; return 0;
Definition at line 269 of file HitsSoNodeManager.cxx.
284 std::cout <<
"lengthStrip==0.0, returning a point..." << std::endl;
288 SoVertexProperty * scatVtxProperty =
new SoVertexProperty();
289 scatVtxProperty->vertex.set1Value(0, 0.0
f,-
length*0.5
f,0.0
f);
290 scatVtxProperty->vertex.set1Value(1, 0.0
f,
length*0.5
f,0.0
f);
291 SoLineSet *
line =
new SoLineSet();
292 line->numVertices = 2;
293 line->vertexProperty = scatVtxProperty;
◆ getShapeNode_Wire()
SoNode * HitsSoNodeManager::getShapeNode_Wire |
( |
double |
length, |
|
|
double |
minWidth = 0 , |
|
|
double |
maxWidth = 0 , |
|
|
double |
depth = 0 |
|
) |
| |
Definition at line 317 of file HitsSoNodeManager.cxx.
332 if (maxWidth==0.0&&
depth==0) {
334 std::cout <<
"lengthWire==0.0, returning a point..." << std::endl;
338 SoVertexProperty * scatVtxProperty =
new SoVertexProperty();
339 scatVtxProperty->vertex.set1Value(0, 0.0
f,-
length*0.5
f,0.0
f);
340 scatVtxProperty->vertex.set1Value(1, 0.0
f,
length*0.5
f,0.0
f);
341 SoLineSet *
line =
new SoLineSet();
342 line->numVertices = 2;
343 line->vertexProperty = scatVtxProperty;
◆ getUnitTransform()
SoTransform * HitsSoNodeManager::getUnitTransform |
( |
| ) |
|
◆ helperClassName()
QString VP1HelperClassBase::helperClassName |
( |
| ) |
const |
|
inlineinherited |
◆ message() [1/3]
void VP1HelperClassBase::message |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ message() [2/3]
void VP1HelperClassBase::message |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ message() [3/3]
void VP1HelperClassBase::message |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageDebug() [1/3]
void VP1HelperClassBase::messageDebug |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageDebug() [2/3]
void VP1HelperClassBase::messageDebug |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageDebug() [3/3]
void VP1HelperClassBase::messageDebug |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageVerbose() [1/3]
void VP1HelperClassBase::messageVerbose |
( |
const QString & |
str | ) |
const |
|
inherited |
◆ messageVerbose() [2/3]
void VP1HelperClassBase::messageVerbose |
( |
const QString & |
addtostart, |
|
|
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ messageVerbose() [3/3]
void VP1HelperClassBase::messageVerbose |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
◆ operator=()
◆ setHelperClassName()
void VP1HelperClassBase::setHelperClassName |
( |
const QString & |
n | ) |
|
|
inlineprotectedinherited |
◆ setSystemBasePointer()
void VP1HelperClassBase::setSystemBasePointer |
( |
IVP1System * |
sys | ) |
|
|
inherited |
◆ 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 |
◆ systemBase()
IVP1System* VP1HelperClassBase::systemBase |
( |
| ) |
const |
|
inlineinherited |
◆ verbose()
static bool VP1HelperClassBase::verbose |
( |
| ) |
|
|
inlinestaticinherited |
◆ warnUndeletedInstances()
void VP1HelperClassBase::warnUndeletedInstances |
( |
| ) |
|
|
staticinherited |
Definition at line 183 of file VP1HelperClassBase.cxx.
185 if (vp1helperclassbase_instanceMap.empty())
187 std::cout <<
"WARNING: Detected "<<vp1helperclassbase_instanceMap.size()<<
" undeleted helper class instances:"<<std::endl;
190 for (
it = vp1helperclassbase_instanceMap.begin();
it!=
itE;++
it) {
191 std::cout <<
" ==> "<<
it->first<<
": "<<
it->first->m_helpername.toStdString()
192 << (
it->second.isEmpty()?QString(
""):
" (in system "+
it->
second+
")").toStdString()<<std::endl;
◆ m_d
Imp* HitsSoNodeManager::m_d |
|
private |
◆ m_helpername
QString VP1HelperClassBase::m_helpername |
|
privateinherited |
◆ m_system
◆ s_vp1verbose
The documentation for this class was generated from the following files:
JetConstituentVector::iterator iterator
void sanitiseParameterValueAllowZero(double &x)
@ depth
pointing depth of the shower as calculated in egammaqgcld
void messageVerbose(const QString &) const
static const bool s_vp1verbose
void summarise(unsigned n, const QString &shapename) const
std::map< double, SoNode *, CxxUtils::fpcompare_fn::less > cachedshapes_strips
SoTransform * cached_unittransform
static QString str(const QString &s)
std::map< double, SoNode *, CxxUtils::fpcompare_fn::less > cachedshapes_projdrifttubes
void messageDebug(const QString &) const
std::map< double, SoNode *, CxxUtils::fpcompare_fn::less > cachedshapes_driftdiscs
static const char * prefix_msg()
const QString & name() const
void setParametersForBox(float dx, float dy, float dz, float xcenter=0.0, float ycenter=0.0, float zcenter=0.0)
static QColor sbcol2qcol(const SbColor &)
void sanitiseParameterValue(double &x)
std::map< double, SoNode *, CxxUtils::fpcompare_fn::less > cachedshapes_cross
static void unrefValues(T &t)
static const char * prefix_debug()
static const char * prefix_verbose()
SoNode * cachedshape_point
HitsSoNodeManager * theclass
SoNode * getShapeNode_Point()
void message(const QString &) const
VP1HelperClassBase(IVP1System *sys=0, QString helpername="")
std::map< double, SoNode *, CxxUtils::fpcompare_fn::less > cachedshapes_drifttubes
void message(const QString &) const
const double driftdischeight
void setParametersForTrd(float dx1, float dx2, float dy1, float dy2, float dz)