|
ATLAS Offline Software
|
#include <VP1CaloClusterCollection.h>
|
| VP1CaloClusterCollection (const QString &key, IVP1System *sys, CaloClusterSysController *) |
|
| ~VP1CaloClusterCollection () |
|
QStringList | infoOnClicked (SoPath *pickedPath) |
|
double | highestVisibleClusterEnergy () const |
|
void | largeChangesBegin () |
|
void | largeChangesEnd () |
|
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 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 28 of file VP1CaloClusterCollection.h.
◆ VP1CaloClusterCollection()
◆ ~VP1CaloClusterCollection()
VP1CaloClusterCollection::~VP1CaloClusterCollection |
( |
| ) |
|
◆ applyStates()
◆ assignDefaultMaterial()
void VP1CaloClusterCollection::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 |
◆ crackEta()
double VP1CaloClusterCollection::crackEta |
( |
| ) |
|
|
static |
◆ createCollections()
◆ extraWidgetsState()
virtual QByteArray VP1StdCollection::extraWidgetsState |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ getStates()
◆ helperClassName()
const QString& VP1HelperClassBase::helperClassName |
( |
| ) |
const |
|
inlineinherited |
◆ highestVisibleClusterEnergy()
double VP1CaloClusterCollection::highestVisibleClusterEnergy |
( |
| ) |
const |
◆ highestVisibleClusterEnergyChanged
void VP1CaloClusterCollection::highestVisibleClusterEnergyChanged |
( |
| ) |
|
|
signal |
◆ infoOnClicked()
QStringList VP1CaloClusterCollection::infoOnClicked |
( |
SoPath * |
pickedPath | ) |
|
Definition at line 288 of file VP1CaloClusterCollection.cxx.
290 SoNode * pickedNode = pickedPath->getNodeFromTail(0);
292 Imp::ClusterHandle*clusterHandle(0);
293 if (pickedNode->getTypeId()==SoGenericBox::getClassTypeId()) {
295 if (
c->genericBox()==pickedNode) {
296 cluster =
c->cluster();
303 if (!cluster||!clusterHandle)
304 return QStringList() <<
"Error: Collection "+
m_d->
key+
" does not have cluster information for picked node";
308 l <<
" Eta: "+
str(cluster->eta());
309 l <<
" Phi: "+
str(cluster->phi());
311 l <<
" Transverse Energy [GeV]: "+
str(clusterHandle->transverseEnergy()/
CLHEP::GeV);
313 l <<
"(no verbose information available)";
◆ 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 VP1CaloClusterCollection::largeChangesBegin |
( |
| ) |
|
|
virtual |
◆ largeChangesEnd()
void VP1CaloClusterCollection::largeChangesEnd |
( |
| ) |
|
|
virtual |
◆ load()
bool VP1CaloClusterCollection::load |
( |
| ) |
|
|
protectedvirtual |
◆ 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 VP1CaloClusterCollection::provideCollTypeID |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ provideExtraWidgetsForGuiRow()
virtual QList<QWidget*> VP1StdCollection::provideExtraWidgetsForGuiRow |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ providePersistifiableID()
QByteArray VP1StdCollection::providePersistifiableID |
( |
| ) |
const |
|
protectedvirtualinherited |
◆ provideSection()
QString VP1CaloClusterCollection::provideSection |
( |
| ) |
const |
|
protectedvirtual |
◆ provideSectionToolTip()
virtual QString VP1Collection::provideSectionToolTip |
( |
| ) |
const |
|
inlineprotectedvirtualinherited |
◆ provideText()
QString VP1CaloClusterCollection::provideText |
( |
| ) |
const |
|
protectedvirtual |
◆ provideWidgetsForGuiRow()
QList< QWidget * > VP1StdCollection::provideWidgetsForGuiRow |
( |
| ) |
const |
|
protectedvirtualinherited |
◆ recheckHighestVisibleClusterEnergy
void VP1CaloClusterCollection::recheckHighestVisibleClusterEnergy |
( |
| ) |
|
|
privateslot |
◆ section()
QString VP1Collection::section |
( |
| ) |
const |
|
inherited |
◆ sectionToolTip()
QString VP1Collection::sectionToolTip |
( |
| ) |
const |
|
inherited |
◆ setAllowedEnergies
◆ setAllowedEta
◆ setAllowedPhi
◆ setConsiderTransverseEnergies
void VP1CaloClusterCollection::setConsiderTransverseEnergies |
( |
bool |
b | ) |
|
|
privateslot |
Definition at line 430 of file VP1CaloClusterCollection.cxx.
439 bool attachPrev(cluster->attached());
441 if (attachPrev&&cluster->attached())
442 cluster->updateShapePars(
m_d);
◆ setExtraWidgetsState()
virtual void VP1StdCollection::setExtraWidgetsState |
( |
const QByteArray & |
| ) |
|
|
inlineprotectedvirtualinherited |
◆ setHelperClassName()
void VP1HelperClassBase::setHelperClassName |
( |
const QString & |
n | ) |
|
|
inlineprotectedinherited |
◆ setScale
void VP1CaloClusterCollection::setScale |
( |
const QPair< bool, double > & |
s | ) |
|
|
privateslot |
◆ setShowVolumeOutLines
void VP1CaloClusterCollection::setShowVolumeOutLines |
( |
bool |
b | ) |
|
|
privateslot |
◆ 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);
◆ 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* VP1CaloClusterCollection::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
bool useTransverseEnergies() const
bool considerTransverseEnergies
Const iterator class for DataVector/DataList.
void setScale(const QPair< bool, double > &)
virtual QString checkBoxToolTip() const
VP1StdCollection(IVP1System *, const QString &helperClassName)
QList< QWidget * > widgetsForGuiRow
SoMaterial * material() const
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()
Storable container for CaloCluster.
void messageVerbose(const QString &) const
static const bool s_vp1verbose
void setShowVolumeOutLines(bool)
VP1Interval cutAllowedEta() const
double last_highestEnergy
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)
QPair< bool, double > scale() const
virtual QByteArray extraWidgetsState() const
static QString str(const QString &s)
void setConsiderTransverseEnergies(bool)
double calculateHighestVisibleClusterEnergy() const
void messageDebug(const QString &) const
static bool deserialiseSoMaterial(QByteArray &, SoMaterial *&)
void recheckCut(ClusterHandle *c)
bool printInfoOnClick() const
def save(self, fileName="./columbo.out")
void setAllowedEnergies(const VP1Interval &)
VP1Interval allowedEnergies
static const char * prefix_msg()
CaloClusterSysController * controller
VP1MaterialButtonBase * matButton
void visibilityChanged(bool)
QList< VP1Interval > cutAllowedPhi() const
QPair< bool, double > scale
const QString & name() const
virtual QList< QWidget * > provideExtraWidgetsForGuiRow() const
Principal data class for CaloCell clusters.
QList< QWidget * > extraWidgets
bool problemsLoading() const
virtual void collMaterialTransparencyAndBrightnessChanged()
double lastMatTransparency
static QColor sbcol2qcol(const SbColor &)
void highestVisibleClusterEnergyChanged()
IVP1System * systemBase() const
virtual QByteArray providePersistifiableID() const =0
virtual QList< QWidget * > widgetsForGuiRow() const
VP1CaloClusterCollection * theclass
static const char * prefix_debug()
void recheckHighestVisibleClusterEnergy()
bool widgetsForGuiRowProvided
virtual void largeChangesEnd()
virtual QString provideSection() const =0
virtual void assignDefaultMaterial(SoMaterial *) const =0
bool sectionToolTipProvided
static const char * prefix_verbose()
bool printVerboseInfoOnClick() const
static void messageDebug(const QString &)
virtual QString provideSectionToolTip() const
VP1Interval cutAllowedEnergies() const
SoSeparator * collSep() const
All 3D objects from this coll.
virtual QString matButtonToolTip() const
void message(const QString &) const
void setAllowedEta(const VP1Interval &)
bool showVolumeOutLines() const
QList< ClusterHandle * > clusters
VP1ExtraSepLayerHelper * sephelper
virtual QString provideText() const =0
void message(const QString &) const
virtual qint32 provideCollTypeID() const
VP1CaloClusterCollection(const QString &key, IVP1System *sys, CaloClusterSysController *)
virtual void setExtraWidgetsState(const QByteArray &)
static const double calo_crack_eta
QList< VP1Interval > allowedPhi
void setAllowedPhi(const QList< VP1Interval > &)