|
ATLAS Offline Software
|
#include <VP1TruthVertexCollection.h>
|
| VP1TruthVertexCollection (VertexSysController *, const QString &key) |
|
virtual | ~VP1TruthVertexCollection () |
|
QStringList | infoOnClicked (SoPath *pickedPath) |
|
virtual void | init (VP1MaterialButtonBase *button=0) |
|
bool | visible () const |
|
bool | isLoaded () const |
|
bool | problemsLoading () const |
|
QString | text () const |
|
SoSwitch * | collSwitch () const |
| Add this somewhere in your scenegraph (do not add any children here!) More...
|
|
SoSeparator * | collSep () const |
| All 3D objects from this coll. More...
|
|
SoMaterial * | material () const |
|
double | collMaterialTransparency () const |
|
double | collMaterialBrightness () const |
|
virtual void | largeChangesBegin () |
|
virtual void | largeChangesEnd () |
|
virtual QByteArray | persistifiableState () const |
| Provide default implementation based on widget list + version. More...
|
|
virtual void | setState (const QByteArray &) |
| Provide default implementation based on widget list + version. More...
|
|
qint32 | collTypeID () const |
|
QByteArray | persistifiableID () const |
|
QString | section () const |
|
QString | sectionToolTip () const |
|
virtual QList< QWidget * > | widgetsForGuiRow () const |
|
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 |
|
const QString & | helperClassName () const |
|
Definition at line 31 of file VP1TruthVertexCollection.h.
◆ VP1TruthVertexCollection()
Definition at line 190 of file VP1TruthVertexCollection.cxx.
197 connect(controller,SIGNAL(truthCutAllowedPhiChanged(
const QList<VP1Interval>&)),
this,SLOT(
recheckAllCuts()));
199 connect(controller,SIGNAL(truthCutQuantityChanged(
const QPair<VertexCommonFlags::QUANTITY,VP1Interval>&)),
this,SLOT(
recheckAllCuts()));
200 connect(controller,SIGNAL(truthCrossLengthChanged(QPair<VertexCommonFlags::QUANTITY,double>)),
this,SLOT(
updateAllShapes()));
◆ ~VP1TruthVertexCollection()
VP1TruthVertexCollection::~VP1TruthVertexCollection |
( |
| ) |
|
|
virtual |
◆ applyStates()
◆ assignDefaultMaterial()
void VP1TruthVertexCollection::assignDefaultMaterial |
( |
SoMaterial * |
m | ) |
const |
|
protectedvirtual |
◆ checkBoxToolTip()
virtual QString VP1StdCollection::checkBoxToolTip |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ collMaterialBrightness()
double VP1StdCollection::collMaterialBrightness |
( |
| ) |
const |
|
inherited |
◆ collMaterialTransparency()
double VP1StdCollection::collMaterialTransparency |
( |
| ) |
const |
|
inherited |
◆ collMaterialTransparencyAndBrightnessChanged()
virtual void VP1StdCollection::collMaterialTransparencyAndBrightnessChanged |
( |
| ) |
|
|
inlineprotectedvirtualinherited |
◆ collSep()
SoSeparator * VP1StdCollection::collSep |
( |
| ) |
const |
|
inherited |
All 3D objects from this coll.
belongs under here.
Definition at line 212 of file VP1StdCollection.cxx.
215 message(
"ERROR: collSep() called before init()");
◆ collSwitch()
SoSwitch * VP1StdCollection::collSwitch |
( |
| ) |
const |
|
inherited |
Add this somewhere in your scenegraph (do not add any children here!)
Definition at line 204 of file VP1StdCollection.cxx.
207 message(
"ERROR: collSwitch() called before init()");
◆ collTypeID()
qint32 VP1StdCollection::collTypeID |
( |
| ) |
const |
|
inherited |
◆ createCollections()
◆ extraWidgetsState()
virtual QByteArray VP1StdCollection::extraWidgetsState |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ getStates()
◆ helperClassName()
const QString& VP1HelperClassBase::helperClassName |
( |
| ) |
const |
|
inlineinherited |
◆ infoOnClicked()
QStringList VP1TruthVertexCollection::infoOnClicked |
( |
SoPath * |
pickedPath | ) |
|
Definition at line 277 of file VP1TruthVertexCollection.cxx.
280 SoNode * pickedNode = (pickedPath ? (pickedPath->getLength()>0?pickedPath->getNodeFromTail(0):0): 0);
282 Imp::VertexHandle* vertexHandle(0);
284 if (vh->line()==pickedNode) {
290 return QStringList() <<
"ERROR: Could not get truth vertex information for picked Node";
297 l <<
"Truth vertex from collection "+
text()+
":" ;
299 for (
const auto& PartIn: vtx->particles_in()) {
301 HepMC::GenVertex::particles_in_const_iterator itPartIn,itPartInE(vtx->particles_in_const_end());
302 for ( itPartIn = vtx->particles_in_const_begin();itPartIn!=itPartInE;++itPartIn) {
303 auto PartIn=*itPartIn;
305 const int pdg = PartIn->pdg_id();
313 for (
const auto& PartOut: vtx->particles_out()) {
315 HepMC::GenVertex::particles_out_const_iterator itPartOut,itPartOutE(vtx->particles_out_const_end());
316 for ( itPartOut = vtx->particles_out_const_begin();itPartOut!=itPartOutE;++itPartOut) {
317 auto PartOut=*itPartOut;
319 const int pdg = PartOut->pdg_id();
328 l <<
"======== Dump ========";
329 std::ostringstream
s;
331 l << QString(
s.str().c_str()).split(
'\n');
332 l <<
"======================";
◆ init()
Reimplemented in AODCollHandleBase, TrackCollHandleBase, VertexCollHandle, IParticleCollHandle_CaloCluster, MissingEtCollHandle, IParticleCollHandle_Muon, IParticleCollHandle_Electron, IParticleCollHandle_Jet, IParticleCollHandle_TrackParticle, VP1VertexCollection, VP1RawDataCollBase, and PRDCollHandleBase.
Definition at line 73 of file VP1StdCollection.cxx.
76 QString safetext(
text());
77 safetext.replace(
' ',
'_');
78 safetext.replace(
'[',
'_');
79 safetext.replace(
']',
'_');
80 safetext.replace(
'/',
'_');
81 safetext.replace(
'.',
'_');
82 safetext.replace(
',',
'_');
83 safetext.replace(
'<',
'_');
84 safetext.replace(
'>',
'_');
85 safetext.replace(
'&',
'_');
89 m_d->
theswitch->setName((
"StdCollSwitch"+safetext).toStdString().c_str());
93 m_d->
material->setName((
"StdCollMat"+safetext).toStdString().c_str());
99 m_d->
matButton->setObjectName(
"matButtonColl_"+safetext);
107 m_d->
checkBox->setObjectName(
"checkBoxColl_"+safetext);
113 m_d->
collsep->setName((
"StdCollSep"+safetext).toStdString().c_str());
◆ isLoaded()
bool VP1StdCollection::isLoaded |
( |
| ) |
const |
|
inherited |
◆ largeChangesBegin()
void VP1StdCollection::largeChangesBegin |
( |
| ) |
|
|
virtualinherited |
◆ largeChangesEnd()
void VP1StdCollection::largeChangesEnd |
( |
| ) |
|
|
virtualinherited |
◆ load()
bool VP1TruthVertexCollection::load |
( |
| ) |
|
|
protectedvirtual |
Implements VP1StdCollection.
Definition at line 242 of file VP1TruthVertexCollection.cxx.
249 if (mcEventColl->
size()<1)
253 for (itEvent = mcEventColl->
begin(); itEvent != itEventEnd; ++itEvent) {
254 const HepMC::GenEvent* genEvent(*itEvent);
259 for (
const auto& vtx: genEvent->vertices()) {
261 HepMC::GenEvent::vertex_const_iterator itVertex, itVertexEnd(genEvent->vertices_end());
262 for (itVertex = genEvent->vertices_begin(); itVertex != itVertexEnd; ++itVertex ) {
◆ matButtonToolTip()
virtual QString VP1StdCollection::matButtonToolTip |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ material()
SoMaterial * VP1StdCollection::material |
( |
| ) |
const |
|
inherited |
◆ 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 |
Definition at line 131 of file VP1HelperClassBase.cxx.
133 if (addtostart.isEmpty()) {
137 if (addtoend.isEmpty()) {
138 for (
const QString&
s :
l)
141 for (
const QString&
s :
l)
◆ message() [3/3]
void VP1HelperClassBase::message |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 91 of file VP1HelperClassBase.cxx.
93 if (addtoend.isEmpty()) {
94 for (
const QString&
s :
l)
97 for (
const QString&
s :
l)
◆ 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 |
Definition at line 147 of file VP1HelperClassBase.cxx.
151 if (addtostart.isEmpty()) {
155 if (addtoend.isEmpty()) {
156 for (
const QString&
s :
l)
159 for (
const QString&
s :
l)
◆ messageDebug() [3/3]
void VP1HelperClassBase::messageDebug |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 103 of file VP1HelperClassBase.cxx.
107 if (addtoend.isEmpty()) {
108 for (
const QString&
s :
l)
111 for (
const QString&
s :
l)
◆ 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 |
Definition at line 165 of file VP1HelperClassBase.cxx.
169 if (addtostart.isEmpty()) {
173 if (addtoend.isEmpty()) {
174 for (
const QString&
s :
l)
177 for (
const QString&
s :
l)
◆ messageVerbose() [3/3]
void VP1HelperClassBase::messageVerbose |
( |
const QStringList & |
l, |
|
|
const QString & |
addtoend = "" |
|
) |
| const |
|
inherited |
Definition at line 117 of file VP1HelperClassBase.cxx.
121 if (addtoend.isEmpty()) {
122 for (
const QString&
s :
l)
125 for (
const QString&
s :
l)
◆ persistifiableID()
QByteArray VP1Collection::persistifiableID |
( |
| ) |
const |
|
inherited |
◆ persistifiableState()
QByteArray VP1StdCollection::persistifiableState |
( |
| ) |
const |
|
virtualinherited |
◆ possibleChangeMatTranspOrBrightness
void VP1StdCollection::possibleChangeMatTranspOrBrightness |
( |
| ) |
|
|
slotinherited |
◆ problemsLoading()
bool VP1StdCollection::problemsLoading |
( |
| ) |
const |
|
inherited |
◆ provideCollTypeID()
qint32 VP1TruthVertexCollection::provideCollTypeID |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ provideExtraWidgetsForGuiRow()
virtual QList<QWidget*> VP1StdCollection::provideExtraWidgetsForGuiRow |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ providePersistifiableID()
QByteArray VP1StdCollection::providePersistifiableID |
( |
| ) |
const |
|
protectedvirtualinherited |
◆ provideSection()
QString VP1TruthVertexCollection::provideSection |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ provideSectionToolTip()
QString VP1TruthVertexCollection::provideSectionToolTip |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ provideText()
QString VP1TruthVertexCollection::provideText |
( |
| ) |
const |
|
protectedvirtual |
◆ provideWidgetsForGuiRow()
QList< QWidget * > VP1StdCollection::provideWidgetsForGuiRow |
( |
| ) |
const |
|
protectedvirtualinherited |
◆ recheckAllCuts
void VP1TruthVertexCollection::recheckAllCuts |
( |
| ) |
|
|
privateslot |
◆ section()
QString VP1Collection::section |
( |
| ) |
const |
|
inherited |
◆ sectionToolTip()
QString VP1Collection::sectionToolTip |
( |
| ) |
const |
|
inherited |
◆ setExtraWidgetsState()
virtual void VP1StdCollection::setExtraWidgetsState |
( |
const QByteArray & |
| ) |
|
|
inlineprotectedvirtualinherited |
◆ setHelperClassName()
void VP1HelperClassBase::setHelperClassName |
( |
const QString & |
n | ) |
|
|
inlineprotectedinherited |
◆ setState()
void VP1StdCollection::setState |
( |
const QByteArray & |
state | ) |
|
|
virtualinherited |
◆ setSystemBasePointer()
void VP1HelperClassBase::setSystemBasePointer |
( |
IVP1System * |
sys | ) |
|
|
inherited |
◆ setVisible
void VP1StdCollection::setVisible |
( |
bool |
b | ) |
|
|
slotinherited |
◆ 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 |
◆ text()
QString VP1StdCollection::text |
( |
| ) |
const |
|
inherited |
◆ toBaseCollList()
Definition at line 80 of file VP1Collection.h.
82 QList<VP1Collection*>
l;
84 l << static_cast<T*>(
t);
◆ tracksFromVertexChanged
void VP1TruthVertexCollection::tracksFromVertexChanged |
( |
QList< std::pair< const SoMaterial *, QList< const Trk::Track * > > > & |
| ) |
|
|
signal |
◆ updateAllShapes
void VP1TruthVertexCollection::updateAllShapes |
( |
| ) |
|
|
privateslot |
◆ updateStates()
Definition at line 118 of file VP1Collection.cxx.
121 QMapIterator<QByteArray,QByteArray>
it(newInfo);
122 while (
it.hasNext()) {
124 state.insert(
it.key(),
it.value());
◆ verbose()
static bool VP1HelperClassBase::verbose |
( |
| ) |
|
|
inlinestaticinherited |
◆ visibilityChanged
void VP1StdCollection::visibilityChanged |
( |
bool |
| ) |
|
|
signalinherited |
◆ visible()
bool VP1StdCollection::visible |
( |
| ) |
const |
|
inherited |
◆ 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;
◆ widgetsForGuiRow()
QList< QWidget * > VP1Collection::widgetsForGuiRow |
( |
| ) |
const |
|
virtualinherited |
◆ m_d
Imp* VP1TruthVertexCollection::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:
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
QMap< QByteArray, QByteArray > VP1CollStates
double mag(const HepMC::FourVector &v) const
Const iterator class for DataVector/DataList.
virtual QString checkBoxToolTip() const
VP1TruthVertexCollection(VertexSysController *, const QString &key)
VP1StdCollection(IVP1System *, const QString &helperClassName)
QList< QWidget * > widgetsForGuiRow
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
virtual QList< QWidget * > provideWidgetsForGuiRow() const =0
qint32 collTypeID() const
void possibleChangeMatTranspOrBrightness()
void messageVerbose(const QString &) const
static const bool s_vp1verbose
VertexSysController * controller
virtual void largeChangesBegin()
static VP1CameraHelper * animatedZoomToPath(SoCamera *camera, SoGroup *sceneroot, SoPath *path, double duration_in_secs=1.0, double clipVolPercent=100.0, double slack=1.0, const SbVec3f &lookat=SbVec3f(999, 999, 999), const SbVec3f &upvec=SbVec3f(999, 999, 999), bool varySpeed=true, bool forceCircular=false)
void line(std::ostream &os, const GenEvent &e)
virtual QByteArray extraWidgetsState() const
static QString str(const QString &s)
void messageDebug(const QString &) const
static bool deserialiseSoMaterial(QByteArray &, SoMaterial *&)
bool printVerboseInfoOnClick() const
VP1TruthVertexCollection * theclass
QStringList getKeys() const
def save(self, fileName="./columbo.out")
static const char * prefix_msg()
VP1MaterialButtonBase * matButton
void visibilityChanged(bool)
const QString & name() const
virtual QList< QWidget * > provideExtraWidgetsForGuiRow() const
QList< QWidget * > extraWidgets
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
bool problemsLoading() const
virtual void collMaterialTransparencyAndBrightnessChanged()
double lastMatTransparency
static QColor sbcol2qcol(const SbColor &)
IVP1System * systemBase() const
virtual QByteArray providePersistifiableID() const =0
virtual QList< QWidget * > widgetsForGuiRow() const
static const char * prefix_debug()
bool widgetsForGuiRowProvided
virtual void largeChangesEnd()
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
virtual QString provideSection() const =0
virtual void assignDefaultMaterial(SoMaterial *) const =0
bool sectionToolTipProvided
static const char * prefix_verbose()
int largechangescount_sep
static void messageDebug(const QString &)
virtual QString provideSectionToolTip() const
int largechangescount_switch
QList< VertexHandle * > vertices
SoSeparator * collSep() const
All 3D objects from this coll.
virtual QString matButtonToolTip() const
bool printInfoOnClick() const
void message(const QString &) const
const HepMC::GenVertex * ConstGenVertexPtr
virtual QString provideText() const =0
size_type size() const noexcept
Returns the number of elements in the collection.
void message(const QString &) const
virtual qint32 provideCollTypeID() const
virtual void setExtraWidgetsState(const QByteArray &)
static QString particleName(const int &pdgcode, bool &ok)
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.