ATLAS Offline Software
Classes | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Slots | Private Attributes | Static Private Attributes | List of all members
VP1CaloClusterCollection Class Reference

#include <VP1CaloClusterCollection.h>

Inheritance diagram for VP1CaloClusterCollection:
Collaboration diagram for VP1CaloClusterCollection:

Classes

class  Imp
 

Public Slots

void setVisible (bool)
 
void possibleChangeMatTranspOrBrightness ()
 

Signals

void highestVisibleClusterEnergyChanged ()
 
void visibilityChanged (bool)
 

Public Member Functions

 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
 
IVP1SystemsystemBase () const
 
const QString & helperClassName () const
 

Static Public Member Functions

static QList< VP1CaloClusterCollection * > createCollections (IVP1System *, CaloClusterSysController *)
 
static double crackEta ()
 
static VP1CollStates getStates (const QList< VP1Collection * > &)
 
static void applyStates (const QList< VP1Collection * > &, const VP1CollStates &)
 
static void updateStates (VP1CollStates &state, const VP1CollStates &newInfo)
 
template<class T >
static QList< VP1Collection * > toBaseCollList (const QList< T * > &)
 
static bool verbose ()
 
static void warnUndeletedInstances ()
 
static QString str (const QString &s)
 
static QString str (const char *c)
 
static QString str (const bool b)
 
static QString str (const QColor &)
 
static QString str (const SbColor &)
 
static QString str (const VP1Interval &)
 
static QString str (const SbVec2d &)
 
static QString str (const SbVec2f &)
 
static QString str (const SbVec2s &)
 
static QString str (const SbVec3d &)
 
static QString str (const SbVec3f &)
 
static QString str (const SbVec3s &)
 
static QString str (const SbVec4d &)
 
static QString str (const SbVec4f &)
 
static QString str (short int n)
 
static QString str (unsigned short int n)
 
static QString str (long n)
 
static QString str (ulong n)
 
static QString str (int n)
 
static QString str (uint n)
 
static QString str (qlonglong n)
 
static QString str (qulonglong n)
 
static QString str (const double &d)
 
static QString str (const float &f)
 
static QString str (const void *)
 
template<class T >
static QString str (const T *t)
 
template<class T >
static QString str (const QFlags< T > &f)
 
template<class T >
static QString str (const HepGeom::BasicVector3D< T > &t)
 
static QString str (const Amg::Vector3D &t)
 
template<class T >
static QString str (const QList< T > &t)
 

Protected Member Functions

QString provideText () const
 
void assignDefaultMaterial (SoMaterial *) const
 
bool load ()
 
qint32 provideCollTypeID () const
 
QString provideSection () const
 
QList< QWidget * > provideWidgetsForGuiRow () const
 
virtual QString checkBoxToolTip () const
 
virtual QString matButtonToolTip () const
 
virtual void collMaterialTransparencyAndBrightnessChanged ()
 
virtual QList< QWidget * > provideExtraWidgetsForGuiRow () const
 
virtual QByteArray extraWidgetsState () const
 
virtual void setExtraWidgetsState (const QByteArray &)
 
virtual QByteArray providePersistifiableID () const
 
virtual QString provideSectionToolTip () const
 
void setHelperClassName (const QString &n)
 

Private Slots

void setConsiderTransverseEnergies (bool)
 
void setScale (const QPair< bool, double > &)
 
void setAllowedEnergies (const VP1Interval &)
 
void setAllowedEta (const VP1Interval &)
 
void setAllowedPhi (const QList< VP1Interval > &)
 
void recheckHighestVisibleClusterEnergy ()
 
void setShowVolumeOutLines (bool)
 

Private Attributes

Impm_d
 
QString m_helpername
 
IVP1Systemm_system
 

Static Private Attributes

static const bool s_vp1verbose = VP1QtUtils::environmentVariableIsOn("VP1_VERBOSE_OUTPUT")
 

Detailed Description

Definition at line 28 of file VP1CaloClusterCollection.h.

Constructor & Destructor Documentation

◆ VP1CaloClusterCollection()

VP1CaloClusterCollection::VP1CaloClusterCollection ( const QString &  key,
IVP1System sys,
CaloClusterSysController controller 
)

Definition at line 164 of file VP1CaloClusterCollection.cxx.

165  : VP1StdCollection(sys,"VP1CaloClusterCollection_"+key), m_d(new Imp)
166 {
168 
169  m_d->theclass = this;
170  m_d->controller = controller;
171  m_d->key = key;
172  m_d->sephelper = 0;
173  //We start out with no clusters visible:
174  m_d->last_highestEnergy = 0;
175  m_d->showOutlines = false;
177 
178  connect(this,SIGNAL(highestVisibleClusterEnergyChanged()),controller,SLOT(possibleChange_scale()));
179  connect(this,SIGNAL(visibilityChanged(bool)),this,SLOT(recheckHighestVisibleClusterEnergy()));
180 
181  connect(controller,SIGNAL(useTransverseEnergiesChanged(bool)),this,SLOT(setConsiderTransverseEnergies(bool)));
183  connect(controller,SIGNAL(scaleChanged(const QPair<bool,double>&)),this,SLOT(setScale(const QPair<bool,double>&)));
184  setScale(controller->scale());
185  connect(controller,SIGNAL(showVolumeOutLinesChanged(bool)),this,SLOT(setShowVolumeOutLines(bool)));
187  connect(controller,SIGNAL(cutAllowedEnergiesChanged(const VP1Interval&)),this,SLOT(setAllowedEnergies(const VP1Interval&)));
188  setAllowedEnergies(controller->cutAllowedEnergies());
189  connect(controller,SIGNAL(cutAllowedEtaChanged(const VP1Interval&)),this,SLOT(setAllowedEta(const VP1Interval&)));
190  setAllowedEta(controller->cutAllowedEta());
191  connect(controller,SIGNAL(cutAllowedPhiChanged(const QList<VP1Interval>&)),this,SLOT(setAllowedPhi(const QList<VP1Interval>&)));
192  setAllowedPhi(controller->cutAllowedPhi());
193 
194 
195 }

◆ ~VP1CaloClusterCollection()

VP1CaloClusterCollection::~VP1CaloClusterCollection ( )

Definition at line 198 of file VP1CaloClusterCollection.cxx.

199 {
200  if (m_d->sephelper) {
201  SoSeparator * sep = m_d->sephelper->topSeparator();
202  delete m_d->sephelper;
203  sep->unref();
204  }
205  for (Imp::ClusterHandle*cluster : m_d->clusters)
206  delete cluster;
207  delete m_d;
208 }

Member Function Documentation

◆ applyStates()

void VP1Collection::applyStates ( const QList< VP1Collection * > &  cols,
const VP1CollStates states 
)
staticinherited

Definition at line 108 of file VP1Collection.cxx.

109 {
110  VP1Msg::messageDebug("VP1Collection::applyStates() - start...");
111  for (VP1Collection* col : cols)
112  if (states.contains(col->persistifiableID()))
113  col->setState(states.value(col->persistifiableID()));
114  VP1Msg::messageDebug("VP1Collection::applyStates() - end.");
115 }

◆ assignDefaultMaterial()

void VP1CaloClusterCollection::assignDefaultMaterial ( SoMaterial *  m) const
protectedvirtual

Implements VP1StdCollection.

Definition at line 223 of file VP1CaloClusterCollection.cxx.

224 {
225  VP1MaterialButton::setMaterialParameters( m, 1.0, 0.9, 0.0, 0.15/*brightness*/, 0.5/*transp*/ );
226 }

◆ checkBoxToolTip()

virtual QString VP1StdCollection::checkBoxToolTip ( ) const
inlineprotectedvirtualinherited

Reimplemented in VP1MissingEtHandle, VP1MissingEtCaloHandle, and VP1MissingEtTruthHandle.

Definition at line 76 of file VP1StdCollection.h.

76 { return "Collection "+text(); }

◆ collMaterialBrightness()

double VP1StdCollection::collMaterialBrightness ( ) const
inherited

Definition at line 342 of file VP1StdCollection.cxx.

343 {
344  return m_d->lastMatBrightness;
345 }

◆ collMaterialTransparency()

double VP1StdCollection::collMaterialTransparency ( ) const
inherited

Definition at line 336 of file VP1StdCollection.cxx.

337 {
338  return m_d->lastMatTransparency;
339 }

◆ collMaterialTransparencyAndBrightnessChanged()

virtual void VP1StdCollection::collMaterialTransparencyAndBrightnessChanged ( )
inlineprotectedvirtualinherited

Reimplemented in TrackCollHandleBase.

Definition at line 79 of file VP1StdCollection.h.

79 {}

◆ collSep()

SoSeparator * VP1StdCollection::collSep ( ) const
inherited

All 3D objects from this coll.

belongs under here.

Definition at line 212 of file VP1StdCollection.cxx.

213 {
214  if (!m_d->collsep)
215  message("ERROR: collSep() called before init()");
216  return m_d->collsep;
217 }

◆ 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.

205 {
206  if (!m_d->theswitch)
207  message("ERROR: collSwitch() called before init()");
208  return m_d->theswitch;
209 }

◆ collTypeID()

qint32 VP1StdCollection::collTypeID ( ) const
inherited

Definition at line 315 of file VP1StdCollection.cxx.

316 {
317  if (!m_d->idProvided) {
318  m_d->idProvided = true;
319  m_d->id = provideCollTypeID();
320  }
321  return m_d->id;
322 }

◆ crackEta()

double VP1CaloClusterCollection::crackEta ( )
static

Definition at line 158 of file VP1CaloClusterCollection.cxx.

159 {
161 }

◆ createCollections()

QList< VP1CaloClusterCollection * > VP1CaloClusterCollection::createCollections ( IVP1System sys,
CaloClusterSysController controller 
)
static

Definition at line 34 of file VP1CaloClusterCollection.cxx.

35 {
36  QList<VP1CaloClusterCollection*> cols;
37  for (const QString& key : VP1SGContentsHelper(sys).getKeys<CaloClusterContainer>()) {
39  col->init();
40  cols << col;
41  }
42  return cols;
43 }

◆ extraWidgetsState()

virtual QByteArray VP1StdCollection::extraWidgetsState ( ) const
inlineprotectedvirtualinherited

Reimplemented in TrackCollHandleBase, AODCollHandleBase, and PRDCollHandleBase.

Definition at line 89 of file VP1StdCollection.h.

89 { return QByteArray(); }

◆ getStates()

VP1CollStates VP1Collection::getStates ( const QList< VP1Collection * > &  cols)
staticinherited

Definition at line 92 of file VP1Collection.cxx.

93 {
94  VP1Msg::messageDebug("VP1Collection::getStates() - start...");
95 
97  for (VP1Collection* col : cols) {
98  VP1Msg::messageDebug("inserting collection: " + col->section() );
99  states.insert(col->persistifiableID(),col->persistifiableState());
100  }
101 
102  VP1Msg::messageDebug("VP1Collection::getStates() - end.");
103 
104  return states;
105 }

◆ helperClassName()

const QString& VP1HelperClassBase::helperClassName ( ) const
inlineinherited

Definition at line 51 of file VP1HelperClassBase.h.

51 { return m_helpername; }

◆ highestVisibleClusterEnergy()

double VP1CaloClusterCollection::highestVisibleClusterEnergy ( ) const

Definition at line 254 of file VP1CaloClusterCollection.cxx.

255 {
256  return m_d->last_highestEnergy;
257 }

◆ highestVisibleClusterEnergyChanged

void VP1CaloClusterCollection::highestVisibleClusterEnergyChanged ( )
signal

◆ infoOnClicked()

QStringList VP1CaloClusterCollection::infoOnClicked ( SoPath *  pickedPath)

Definition at line 288 of file VP1CaloClusterCollection.cxx.

289 {
290  SoNode * pickedNode = pickedPath->getNodeFromTail(0);
291  const CaloCluster*cluster(0);
292  Imp::ClusterHandle*clusterHandle(0);
293  if (pickedNode->getTypeId()==SoGenericBox::getClassTypeId()) {
294  for (Imp::ClusterHandle*c : m_d->clusters) {
295  if (c->genericBox()==pickedNode) {
296  cluster = c->cluster();
297  clusterHandle = c;
298  break;
299  }
300  }
301  }
302 
303  if (!cluster||!clusterHandle)
304  return QStringList() << "Error: Collection "+m_d->key+" does not have cluster information for picked node";
305 
306  QStringList l;
307  if (m_d->controller->printInfoOnClick()) {
308  l << " Eta: "+str(cluster->eta());
309  l << " Phi: "+str(cluster->phi());
310  l << " Energy [GeV]: "+str(clusterHandle->energy()/CLHEP::GeV);
311  l << " Transverse Energy [GeV]: "+str(clusterHandle->transverseEnergy()/CLHEP::GeV);
313  l << "(no verbose information available)";
314  // l << " Lambda_center [CLHEP::cm]: "+str(cluster->getMoment(CaloClusterMoment::CENTER_LAMBDA).getValue()/CLHEP::cm);
315  }
316  }
317  if (m_d->controller->zoomOnClick()) {
318  std::set<SoCamera*> cameras = static_cast<IVP13DSystem*>(systemBase())->getCameraList();
319  std::set<SoCamera*>::iterator it,itE = cameras.end();
320  for (it=cameras.begin();it!=itE;++it)
321  VP1CameraHelper::animatedZoomToPath(*it,collSep(),pickedPath,2.0,1.0);
322  }
323 
324  return l;
325 }

◆ init()

void VP1StdCollection::init ( VP1MaterialButtonBase button = 0)
virtualinherited

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.

74 {
75  //The object names should not contain all sorts of funky chars (mat button style sheets wont work for instance):
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('&','_');
86 
87  m_d->theswitch = new SoSwitch;
88  m_d->theswitch->ref();
89  m_d->theswitch->setName(("StdCollSwitch"+safetext).toStdString().c_str());
90 
91  // get a default material for the collection
92  m_d->material = new SoMaterial;
93  m_d->material->setName(("StdCollMat"+safetext).toStdString().c_str());
94  m_d->material->ref();
96 
97  // the material button hosting the default material
98  button==0?m_d->matButton = new VP1MaterialButton:m_d->matButton=button; // Use button if something has been passed in...
99  m_d->matButton->setObjectName("matButtonColl_"+safetext);
100  m_d->matButton->setToolTip(matButtonToolTip());
102  connect(m_d->matButton,SIGNAL(lastAppliedChanged()),this,SLOT(possibleChangeMatTranspOrBrightness()));
103 
104  // the collection checkbox
105  m_d->checkBox = new QCheckBox();
106  m_d->checkBox->setText(m_d->checkBox->fontMetrics().elidedText(text(), Qt::ElideRight, 140 ));
107  m_d->checkBox->setObjectName("checkBoxColl_"+safetext);
108  m_d->checkBox->setToolTip(checkBoxToolTip());
109  connect(m_d->checkBox,SIGNAL(toggled(bool)),this,SLOT(setVisible(bool)));
110 
111  m_d->collsep = new SoSeparator;
112  m_d->collsep->ref();
113  m_d->collsep->setName(("StdCollSep"+safetext).toStdString().c_str());
114 
116 }

◆ isLoaded()

bool VP1StdCollection::isLoaded ( ) const
inherited

Definition at line 148 of file VP1StdCollection.cxx.

149 {
150  return m_d->loaded;
151 }

◆ largeChangesBegin()

void VP1CaloClusterCollection::largeChangesBegin ( )
virtual

Reimplemented from VP1StdCollection.

Definition at line 327 of file VP1CaloClusterCollection.cxx.

◆ largeChangesEnd()

void VP1CaloClusterCollection::largeChangesEnd ( )
virtual

Reimplemented from VP1StdCollection.

Definition at line 333 of file VP1CaloClusterCollection.cxx.

◆ load()

bool VP1CaloClusterCollection::load ( )
protectedvirtual

Implements VP1StdCollection.

Definition at line 260 of file VP1CaloClusterCollection.cxx.

261 {
262  //Get collection:
263  const CaloClusterContainer *theClusterCollection(0);
264  if (!VP1SGAccessHelper(systemBase()).retrieve(theClusterCollection,m_d->key))
265  return false;
266 
267  SoSeparator * sep = new SoSeparator;
268  sep->setName("ClusterSepHelperTopSep");
269  sep->ref();
272  int i(0);
273  CaloClusterContainer::const_iterator it(theClusterCollection->begin()),itE(theClusterCollection->end());
274  for ( ; it != itE; ++it) {
275  if (i++%40==0)
276  systemBase()->updateGUI();
277  Imp::ClusterHandle * clusterHandle = new Imp::ClusterHandle(*it);
278  m_d->clusters << clusterHandle;
279  m_d->recheckCut(clusterHandle);
280  }
281  largeChangesEnd();
282  collSep()->addChild(sep);
283 
284  return true;
285 }

◆ matButtonToolTip()

virtual QString VP1StdCollection::matButtonToolTip ( ) const
inlineprotectedvirtualinherited

Reimplemented in AODCollHandleBase.

Definition at line 77 of file VP1StdCollection.h.

77 { return "Edit the material of "+text(); }

◆ material()

SoMaterial * VP1StdCollection::material ( ) const
inherited

Definition at line 220 of file VP1StdCollection.cxx.

221 {
222  if (!m_d->material)
223  message("ERROR: material() called before init()");
224  return m_d->material;
225 }

◆ message() [1/3]

void VP1HelperClassBase::message ( const QString &  str) const
inherited

Definition at line 49 of file VP1HelperClassBase.cxx.

50 {
51  if (m_helpername.isEmpty()) {
52  if (m_system)
54  else
55  std::cout<<VP1Msg::prefix_msg()<<" [nameless helper class]: "<<str.toStdString()<<std::endl;
56  } else {
57  if (m_system)
58  m_system->message("["+m_helpername+"] " + str);
59  else
60  std::cout<<VP1Msg::prefix_msg()<<" ["<<m_helpername.toStdString()<<"]: "<<str.toStdString()<<std::endl;
61  }
62 }

◆ 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.

132 {
133  if (addtostart.isEmpty()) {
134  message(l,addtoend);
135  return;
136  }
137  if (addtoend.isEmpty()) {
138  for (const QString& s : l)
139  message(addtostart+s);
140  } else {
141  for (const QString& s : l)
142  message(addtostart+s+addtoend);
143  }
144 }

◆ message() [3/3]

void VP1HelperClassBase::message ( const QStringList &  l,
const QString &  addtoend = "" 
) const
inherited

Definition at line 91 of file VP1HelperClassBase.cxx.

92 {
93  if (addtoend.isEmpty()) {
94  for (const QString& s : l)
95  message(s);
96  } else {
97  for (const QString& s : l)
98  message(s+addtoend);
99  }
100 }

◆ messageDebug() [1/3]

void VP1HelperClassBase::messageDebug ( const QString &  str) const
inherited

Definition at line 65 of file VP1HelperClassBase.cxx.

66 {
67  if (!VP1Msg::debug())
68  return;
69  std::string sysstring(m_system ? " in "+m_system->name().toStdString() : std::string(""));
70  if (m_helpername.isEmpty()) {
71  std::cout<<VP1Msg::prefix_debug()<<" [helper"<<sysstring<<"]: "<<str.toStdString()<<std::endl;
72  } else {
73  std::cout<<VP1Msg::prefix_debug()<<" ["<<m_helpername.toStdString()<<sysstring<<"]: "<<str.toStdString()<<std::endl;
74  }
75 }

◆ 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.

148 {
149  if (!VP1Msg::debug())
150  return;
151  if (addtostart.isEmpty()) {
152  messageDebug(l,addtoend);
153  return;
154  }
155  if (addtoend.isEmpty()) {
156  for (const QString& s : l)
157  messageDebug(addtostart+s);
158  } else {
159  for (const QString& s : l)
160  messageDebug(addtostart+s+addtoend);
161  }
162 }

◆ messageDebug() [3/3]

void VP1HelperClassBase::messageDebug ( const QStringList &  l,
const QString &  addtoend = "" 
) const
inherited

Definition at line 103 of file VP1HelperClassBase.cxx.

104 {
105  if (!VP1Msg::debug())
106  return;
107  if (addtoend.isEmpty()) {
108  for (const QString& s : l)
109  messageDebug(s);
110  } else {
111  for (const QString& s : l)
112  messageDebug(s+addtoend);
113  }
114 }

◆ messageVerbose() [1/3]

void VP1HelperClassBase::messageVerbose ( const QString &  str) const
inherited

Definition at line 78 of file VP1HelperClassBase.cxx.

79 {
80  if (!VP1Msg::verbose())
81  return;
82  std::string sysstring(m_system ? " in "+m_system->name().toStdString() : std::string(""));
83  if (m_helpername.isEmpty()) {
84  std::cout<<VP1Msg::prefix_verbose()<<" [helper"<<sysstring<<"]: "<<str.toStdString()<<std::endl;
85  } else {
86  std::cout<<VP1Msg::prefix_verbose()<<" ["<<m_helpername.toStdString()<<sysstring<<"]: "<<str.toStdString()<<std::endl;
87  }
88 }

◆ 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.

166 {
167  if (!VP1Msg::verbose())
168  return;
169  if (addtostart.isEmpty()) {
170  messageVerbose(l,addtoend);
171  return;
172  }
173  if (addtoend.isEmpty()) {
174  for (const QString& s : l)
175  messageVerbose(addtostart+s);
176  } else {
177  for (const QString& s : l)
178  messageVerbose(addtostart+s+addtoend);
179  }
180 }

◆ messageVerbose() [3/3]

void VP1HelperClassBase::messageVerbose ( const QStringList &  l,
const QString &  addtoend = "" 
) const
inherited

Definition at line 117 of file VP1HelperClassBase.cxx.

118 {
119  if (!VP1Msg::verbose())
120  return;
121  if (addtoend.isEmpty()) {
122  for (const QString& s : l)
123  messageVerbose(s);
124  } else {
125  for (const QString& s : l)
126  messageVerbose(s+addtoend);
127  }
128 }

◆ persistifiableID()

QByteArray VP1Collection::persistifiableID ( ) const
inherited

Definition at line 49 of file VP1Collection.cxx.

50 {
51  VP1Msg::messageDebug("VP1Collection::persistifiableID()");
52 
53  if (!m_d->persistIDProvided) {
54  m_d->persistIDProvided = true;
55  m_d->persistID = providePersistifiableID().toHex();//toHex() necessary for some unknown reason!
56  //Without it keys in maps are apparently considered similar! (Qt bug??)
57  }
58  return m_d->persistID;
59 }

◆ persistifiableState()

QByteArray VP1StdCollection::persistifiableState ( ) const
virtualinherited

Provide default implementation based on widget list + version.

Implements VP1Collection.

Reimplemented in AODCollHandleBase, TrackCollHandleBase, IParticleCollHandleBase, IParticleCollHandle_CaloCluster, VertexCollHandle, MissingEtCollHandle, and IParticleCollHandle_Jet.

Definition at line 270 of file VP1StdCollection.cxx.

271 {
272  messageDebug("VP1StdCollection::persistifiableState()");
273 
274  if (!m_d->material) {
275  message("ERROR: persistifiableState() called before init()");
276  return QByteArray();
277  }
278  VP1Serialise serialise(1/*version*/);
279  serialise.disableUnsavedChecks();
280  serialise.save(m_d->visible);
281  Q_ASSERT(m_d->material&&"Did you forget to call init() on this VP1StdCollection?");
282  serialise.save(m_d->material);
283  serialise.save(extraWidgetsState());//version 1+
284  return serialise.result();
285 }

◆ possibleChangeMatTranspOrBrightness

void VP1StdCollection::possibleChangeMatTranspOrBrightness ( )
slotinherited

Definition at line 348 of file VP1StdCollection.cxx.

349 {
350  double t = m_d->matButton->lastAppliedTransparency();
351  double b = m_d->matButton->lastAppliedBrightness();
352  if ( m_d->lastMatTransparency == t && m_d->lastMatBrightness == b )
353  return;
357 }

◆ problemsLoading()

bool VP1StdCollection::problemsLoading ( ) const
inherited

Definition at line 154 of file VP1StdCollection.cxx.

155 {
156  return m_d->problemsloading;
157 }

◆ provideCollTypeID()

qint32 VP1CaloClusterCollection::provideCollTypeID ( ) const
inlineprotectedvirtual

Reimplemented from VP1StdCollection.

Definition at line 50 of file VP1CaloClusterCollection.h.

50 { return 0; }

◆ provideExtraWidgetsForGuiRow()

virtual QList<QWidget*> VP1StdCollection::provideExtraWidgetsForGuiRow ( ) const
inlineprotectedvirtualinherited

Reimplemented in TrackCollHandleBase, AODCollHandleBase, PRDCollHandleBase, and VP1VertexCollection.

Definition at line 88 of file VP1StdCollection.h.

88 { return QList<QWidget*>(); }

◆ providePersistifiableID()

QByteArray VP1StdCollection::providePersistifiableID ( ) const
protectedvirtualinherited

Implements VP1Collection.

Reimplemented in VP1MissingEtHandle.

Definition at line 325 of file VP1StdCollection.cxx.

326 {
327  VP1Serialise serialise(-10/*version*/);//we use negative versions here (0 and -10 already used),
328  //to allow derived classes to use positive numbers.
329  serialise.disableUnsavedChecks();
330  serialise.save(collTypeID());
331  serialise.save(text());
332  return serialise.result();
333 }

◆ provideSection()

QString VP1CaloClusterCollection::provideSection ( ) const
protectedvirtual

Implements VP1Collection.

Definition at line 211 of file VP1CaloClusterCollection.cxx.

212 {
213  return "";
214 }

◆ provideSectionToolTip()

virtual QString VP1Collection::provideSectionToolTip ( ) const
inlineprotectedvirtualinherited

◆ provideText()

QString VP1CaloClusterCollection::provideText ( ) const
protectedvirtual

Implements VP1StdCollection.

Definition at line 217 of file VP1CaloClusterCollection.cxx.

218 {
219  return m_d->key;
220 }

◆ provideWidgetsForGuiRow()

QList< QWidget * > VP1StdCollection::provideWidgetsForGuiRow ( ) const
protectedvirtualinherited

Implements VP1Collection.

Definition at line 258 of file VP1StdCollection.cxx.

259 {
261 
262  QList<QWidget*> l;
263  l << m_d->checkBox;
264  l << m_d->matButton;
265  l << m_d->extraWidgets;
266  return l;
267 }

◆ recheckHighestVisibleClusterEnergy

void VP1CaloClusterCollection::recheckHighestVisibleClusterEnergy ( )
privateslot

Definition at line 243 of file VP1CaloClusterCollection.cxx.

244 {
245  //When visibility or cut changes:
246  double newhighest = m_d->calculateHighestVisibleClusterEnergy();
247  if (m_d->last_highestEnergy == newhighest)
248  return;
249  m_d->last_highestEnergy = newhighest;
251 }

◆ section()

QString VP1Collection::section ( ) const
inherited

Definition at line 72 of file VP1Collection.cxx.

73 {
74  if (!m_d->sectionProvided) {
75  m_d->sectionProvided = true;
77  }
78  return m_d->section;
79 }

◆ sectionToolTip()

QString VP1Collection::sectionToolTip ( ) const
inherited

Definition at line 82 of file VP1Collection.cxx.

83 {
87  }
88  return m_d->sectionToolTip;
89 }

◆ setAllowedEnergies

void VP1CaloClusterCollection::setAllowedEnergies ( const VP1Interval i)
privateslot

Definition at line 340 of file VP1CaloClusterCollection.cxx.

341 {
342  if (m_d->allowedEnergies==i)
343  return;
345  if (!isLoaded())
346  return;
347  static_cast<IVP13DSystemSimple *>(systemBase())->deselectAll();
349  for (Imp::ClusterHandle*cluster : m_d->clusters)
350  m_d->recheckCut(cluster);
351  largeChangesEnd();
352  //Fixme relaxed/tightened stuff
353 
355 }

◆ setAllowedEta

void VP1CaloClusterCollection::setAllowedEta ( const VP1Interval i)
privateslot

Definition at line 358 of file VP1CaloClusterCollection.cxx.

359 {
360  if (m_d->allowedEta==i)
361  return;
362  m_d->allowedEta=i;
363  if (!isLoaded())
364  return;
365  static_cast<IVP13DSystemSimple *>(systemBase())->deselectAll();
367  for (Imp::ClusterHandle*cluster : m_d->clusters)
368  m_d->recheckCut(cluster);
369  largeChangesEnd();
370  //Fixme relaxed/tightened stuff
371 
373 }

◆ setAllowedPhi

void VP1CaloClusterCollection::setAllowedPhi ( const QList< VP1Interval > &  i)
privateslot

Definition at line 376 of file VP1CaloClusterCollection.cxx.

377 {
378  if (m_d->allowedPhi==i)
379  return;
380  m_d->allowedPhi=i;
381  if (!isLoaded())
382  return;
383  static_cast<IVP13DSystemSimple *>(systemBase())->deselectAll();
385  for (Imp::ClusterHandle*cluster : m_d->clusters)
386  m_d->recheckCut(cluster);
387  largeChangesEnd();
388  //Fixme relaxed/tightened stuff
389 
391 }

◆ setConsiderTransverseEnergies

void VP1CaloClusterCollection::setConsiderTransverseEnergies ( bool  b)
privateslot

Definition at line 430 of file VP1CaloClusterCollection.cxx.

431 {
433  return;
435  if (!isLoaded())
436  return;
438  for (Imp::ClusterHandle*cluster : m_d->clusters) {
439  bool attachPrev(cluster->attached());
440  m_d->recheckCut(cluster);
441  if (attachPrev&&cluster->attached())
442  cluster->updateShapePars(m_d);
443  }
444  largeChangesEnd();
446 }

◆ setExtraWidgetsState()

virtual void VP1StdCollection::setExtraWidgetsState ( const QByteArray &  )
inlineprotectedvirtualinherited

Reimplemented in TrackCollHandleBase, AODCollHandleBase, and PRDCollHandleBase.

Definition at line 90 of file VP1StdCollection.h.

90 {}

◆ setHelperClassName()

void VP1HelperClassBase::setHelperClassName ( const QString &  n)
inlineprotectedinherited

Definition at line 59 of file VP1HelperClassBase.h.

59 { m_helpername = n; }

◆ setScale

void VP1CaloClusterCollection::setScale ( const QPair< bool, double > &  s)
privateslot

Definition at line 395 of file VP1CaloClusterCollection.cxx.

396 {
397  if (m_d->scale==s)
398  return;
399  m_d->scale=s;
400  if (!isLoaded())
401  return;
403  for (Imp::ClusterHandle*cluster : m_d->clusters)
404  if (cluster->attached())
405  cluster->updateShapePars(m_d);
406  largeChangesEnd();
407 
408  // if (verbose())
409  // static_cast<IVP13DSystemSimple *>(systemBase())->warnOnDisabledNotifications();
410 
411  material()->touch();//FIXME: This is needed (and nothing else seems to matter). BUT WHY?????? Where is the bug?!?!?
412 }

◆ setShowVolumeOutLines

void VP1CaloClusterCollection::setShowVolumeOutLines ( bool  b)
privateslot

Definition at line 415 of file VP1CaloClusterCollection.cxx.

416 {
417  if (m_d->showOutlines==b)
418  return;
419  m_d->showOutlines=b;
420  if (!isLoaded())
421  return;
423  for (Imp::ClusterHandle*cluster : m_d->clusters)
424  if (cluster->genericBox())
425  cluster->genericBox()->drawEdgeLines = b;
426  largeChangesEnd();
427 }

◆ setState()

void VP1StdCollection::setState ( const QByteArray &  state)
virtualinherited

Provide default implementation based on widget list + version.

Implements VP1Collection.

Reimplemented in AODCollHandleBase, TrackCollHandleBase, IParticleCollHandleBase, IParticleCollHandle_CaloCluster, VertexCollHandle, MissingEtCollHandle, and IParticleCollHandle_Jet.

Definition at line 288 of file VP1StdCollection.cxx.

289 {
290  if (!m_d->material) {
291  message("ERROR: setState(..) called before init()");
292  return;
293  }
294  VP1Deserialise des(state);
295  des.disableUnrestoredChecks();
296  if (des.version()!=0&&des.version()!=1) {
297  messageDebug("Warning: Ignoring state with wrong version");
298  return;
299  }
300  bool vis = des.restoreBool();
301 
302  QByteArray matState = des.restoreByteArray();
303  QByteArray extraWidgetState = des.version()>=1 ? des.restoreByteArray() : QByteArray();
304 
307  // m_d->material->restoreFromState(matState);
308  setVisible(vis);
309 
310  if (extraWidgetState!=QByteArray())
311  setExtraWidgetsState(extraWidgetState);
312 }

◆ setSystemBasePointer()

void VP1HelperClassBase::setSystemBasePointer ( IVP1System sys)
inherited

Definition at line 197 of file VP1HelperClassBase.cxx.

198 {
199  m_system = sys;
200  if (VP1Msg::verbose()){
201  vp1helperclassbase_instanceMap[this] = (m_system?m_system->name():QString(""));
202  }
203 }

◆ setVisible

void VP1StdCollection::setVisible ( bool  b)
slotinherited

Definition at line 160 of file VP1StdCollection.cxx.

161 {
162  if (m_d->visible==b||problemsLoading())
163  return;
164  m_d->visible=b;
165  messageVerbose("Visible state ("+text()+") => "+str(m_d->visible));
166 
167  //Possibly load:
168  if (m_d->visible&&!m_d->loaded) {
169  m_d->loaded = true;
170  m_d->theswitch->whichChild = SO_SWITCH_NONE;
171  bool ok = load();
172  if (!ok) {
173  m_d->problemsloading = true;
174  m_d->visible = false;
175  m_d->checkBox->blockSignals(true);
176  m_d->checkBox->setChecked(false);
177  m_d->checkBox->setToolTip("Problems encountered during attempt to load this collection");
178  for (QWidget*w : widgetsForGuiRow())
179  w->setEnabled(false);
180  message("Problems loading "+text());
181  return;
182  }
183  m_d->theswitch->addChild(m_d->material);
184  m_d->theswitch->addChild(m_d->collsep);
185  }
186 
187  Q_ASSERT(!problemsLoading());
188 
189  //Update checkbox and switch:
190  if (m_d->checkBox->isChecked()!=m_d->visible) {
191  bool save = m_d->checkBox->blockSignals(true);
192  m_d->checkBox->setChecked(m_d->visible);
193  if (!save)
194  m_d->checkBox->blockSignals(false);
195  }
196  if ((m_d->theswitch->whichChild.getValue()==SO_SWITCH_ALL) != m_d->visible)
197  m_d->theswitch->whichChild = ( m_d->visible ? SO_SWITCH_ALL : SO_SWITCH_NONE );
198 
200 }

◆ str() [1/30]

static QString VP1String::str ( const Amg::Vector3D t)
inlinestaticinherited

Definition at line 98 of file VP1String.h.

98 { return "("+str(t.x())+", "+str(t.y())+", "+str(t.z())+")"; }

◆ 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

Definition at line 50 of file VP1String.h.

50 { return c; }

◆ str() [4/30]

static QString VP1String::str ( const double &  d)
inlinestaticinherited

Definition at line 81 of file VP1String.h.

81 { return QString::number(d); }

◆ str() [5/30]

static QString VP1String::str ( const float &  f)
inlinestaticinherited

Definition at line 82 of file VP1String.h.

82 { return QString::number(f); }

◆ str() [6/30]

template<class T >
static QString VP1String::str ( const HepGeom::BasicVector3D< T > &  t)
inlinestaticinherited

Definition at line 95 of file VP1String.h.

95 { return "("+str(t.x())+", "+str(t.y())+", "+str(t.z())+")"; }

◆ str() [7/30]

QString VP1String::str ( const QColor &  c)
staticinherited

Definition at line 30 of file VP1String.cxx.

31 {
32  return c.isValid() ? c.name() : "Invalid";
33 }

◆ str() [8/30]

template<class T >
static QString VP1String::str ( const QFlags< T > &  f)
inlinestaticinherited

Definition at line 91 of file VP1String.h.

91 { return "0x"+QString::number(f, 16).toUpper().rightJustified(8,'0'); }

◆ str() [9/30]

template<class T >
static QString VP1String::str ( const QList< T > &  t)
inlinestaticinherited

Definition at line 102 of file VP1String.h.

102 { return "QList of size"+QString::number(t.size()); }

◆ str() [10/30]

static QString VP1String::str ( const QString &  s)
inlinestaticinherited

Definition at line 49 of file VP1String.h.

49 { return s; }

◆ str() [11/30]

QString VP1String::str ( const SbColor &  c)
staticinherited

Definition at line 36 of file VP1String.cxx.

37 {
39 }

◆ str() [12/30]

QString VP1String::str ( const SbVec2d &  v)
staticinherited

Definition at line 61 of file VP1String.cxx.

61 { double x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [13/30]

QString VP1String::str ( const SbVec2f &  v)
staticinherited

Definition at line 62 of file VP1String.cxx.

62 { float x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [14/30]

QString VP1String::str ( const SbVec2s &  v)
staticinherited

Definition at line 63 of file VP1String.cxx.

63 { short x,y; v.getValue(x,y); return "("+str(x)+", "+str(y)+")"; }

◆ str() [15/30]

QString VP1String::str ( const SbVec3d &  v)
staticinherited

Definition at line 64 of file VP1String.cxx.

64 { double x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [16/30]

QString VP1String::str ( const SbVec3f &  v)
staticinherited

Definition at line 65 of file VP1String.cxx.

65 { float x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [17/30]

QString VP1String::str ( const SbVec3s &  v)
staticinherited

Definition at line 66 of file VP1String.cxx.

66 { short x,y,z; v.getValue(x,y,z); return "("+str(x)+", "+str(y)+", "+str(z)+")"; }

◆ str() [18/30]

QString VP1String::str ( const SbVec4d &  v)
staticinherited

Definition at line 67 of file VP1String.cxx.

67 { double x,y,z,t; v.getValue(x,y,z,t); return "("+str(x)+", "+str(y)+", "+str(z)+", "+str(t)+")"; }

◆ str() [19/30]

QString VP1String::str ( const SbVec4f &  v)
staticinherited

Definition at line 68 of file VP1String.cxx.

68 { float x,y,z,t; v.getValue(x,y,z,t); return "("+str(x)+", "+str(y)+", "+str(z)+", "+str(t)+")"; }

◆ 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.

49 {
50  if (p) {
51  std::ostringstream s;
52  s << p;
53  // Explicitly naming QString here avoids a cppcheck warning.
54  return QString (s.str().c_str());
55  } else {
56  return "NULL";
57  }
58 }

◆ str() [22/30]

QString VP1String::str ( const VP1Interval i)
staticinherited

Definition at line 42 of file VP1String.cxx.

43 {
44  return i.toString();
45 }

◆ str() [23/30]

static QString VP1String::str ( int  n)
inlinestaticinherited

Definition at line 77 of file VP1String.h.

77 { return QString::number(n); }

◆ str() [24/30]

static QString VP1String::str ( long  n)
inlinestaticinherited

Definition at line 75 of file VP1String.h.

75 { return QString::number(n); }

◆ str() [25/30]

static QString VP1String::str ( qlonglong  n)
inlinestaticinherited

Definition at line 79 of file VP1String.h.

79 { return QString::number(n); }

◆ str() [26/30]

static QString VP1String::str ( qulonglong  n)
inlinestaticinherited

Definition at line 80 of file VP1String.h.

80 { return QString::number(n); }

◆ str() [27/30]

static QString VP1String::str ( short int  n)
inlinestaticinherited

Definition at line 73 of file VP1String.h.

73 { return QString::number(n); }

◆ str() [28/30]

static QString VP1String::str ( uint  n)
inlinestaticinherited

Definition at line 78 of file VP1String.h.

78 { return QString::number(n); }

◆ str() [29/30]

static QString VP1String::str ( ulong  n)
inlinestaticinherited

Definition at line 76 of file VP1String.h.

76 { return QString::number(n); }

◆ str() [30/30]

static QString VP1String::str ( unsigned short int  n)
inlinestaticinherited

Definition at line 74 of file VP1String.h.

74 { return QString::number(n); }

◆ systemBase()

IVP1System* VP1HelperClassBase::systemBase ( ) const
inlineinherited

Definition at line 50 of file VP1HelperClassBase.h.

50 { return m_system; }

◆ text()

QString VP1StdCollection::text ( ) const
inherited

Definition at line 132 of file VP1StdCollection.cxx.

133 {
134  if (!m_d->textProvided) {
135  m_d->textProvided = true;
136  m_d->text = provideText();
137  }
138  return m_d->text;
139 }

◆ toBaseCollList()

template<class T >
QList< VP1Collection * > VP1Collection::toBaseCollList ( const QList< T * > &  in)
staticinherited

Definition at line 80 of file VP1Collection.h.

81 {
82  QList<VP1Collection*> l;
83  for (T * t : in)
84  l << static_cast<T*>(t);
85  return l;
86 }

◆ updateStates()

void VP1Collection::updateStates ( VP1CollStates state,
const VP1CollStates newInfo 
)
staticinherited

Definition at line 118 of file VP1Collection.cxx.

119 {
120  VP1Msg::messageDebug("VP1Collection::updateStates() - start...");
121  QMapIterator<QByteArray,QByteArray> it(newInfo);
122  while (it.hasNext()) {
123  it.next();
124  state.insert(it.key(),it.value());
125  }
126  VP1Msg::messageDebug("VP1Collection::updateStates() - end.");
127 }

◆ verbose()

static bool VP1HelperClassBase::verbose ( )
inlinestaticinherited

Definition at line 32 of file VP1HelperClassBase.h.

32 { return s_vp1verbose; } // Returns true if env var VP1_VERBOSE_OUTPUT=1

◆ visibilityChanged

void VP1StdCollection::visibilityChanged ( bool  )
signalinherited

◆ visible()

bool VP1StdCollection::visible ( ) const
inherited

Definition at line 142 of file VP1StdCollection.cxx.

143 {
144  return m_d->visible;
145 }

◆ warnUndeletedInstances()

void VP1HelperClassBase::warnUndeletedInstances ( )
staticinherited

Definition at line 183 of file VP1HelperClassBase.cxx.

184 {
185  if (vp1helperclassbase_instanceMap.empty())
186  return;
187  std::cout << "WARNING: Detected "<<vp1helperclassbase_instanceMap.size()<<" undeleted helper class instances:"<<std::endl;
188 
189  std::map<VP1HelperClassBase*,QString>::iterator it,itE(vp1helperclassbase_instanceMap.end());
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;
193  }
194 }

◆ widgetsForGuiRow()

QList< QWidget * > VP1Collection::widgetsForGuiRow ( ) const
virtualinherited

Definition at line 62 of file VP1Collection.cxx.

63 {
67  }
68  return m_d->widgetsForGuiRow;
69 }

Member Data Documentation

◆ m_d

Imp* VP1CaloClusterCollection::m_d
private

Definition at line 64 of file VP1CaloClusterCollection.h.

◆ m_helpername

QString VP1HelperClassBase::m_helpername
privateinherited

Definition at line 67 of file VP1HelperClassBase.h.

◆ m_system

IVP1System* VP1HelperClassBase::m_system
privateinherited

Definition at line 68 of file VP1HelperClassBase.h.

◆ s_vp1verbose

const bool VP1HelperClassBase::s_vp1verbose = VP1QtUtils::environmentVariableIsOn("VP1_VERBOSE_OUTPUT")
staticprivateinherited

Definition at line 69 of file VP1HelperClassBase.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
VP1CollStates
QMap< QByteArray, QByteArray > VP1CollStates
Definition: VP1Collection.h:27
CaloClusterSysController::useTransverseEnergies
bool useTransverseEnergies() const
Definition: CaloClusterSysController.cxx:282
VP1CaloClusterCollection::Imp::considerTransverseEnergies
bool considerTransverseEnergies
Definition: VP1CaloClusterCollection.cxx:53
python.SystemOfUnits.second
int second
Definition: SystemOfUnits.py:120
VP1CaloClusterCollection::largeChangesBegin
void largeChangesBegin()
Definition: VP1CaloClusterCollection.cxx:327
GeV
#define GeV
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
VP1Serialise
Definition: VP1Serialise.h:45
IVP13DSystemSimple
Definition: IVP13DSystemSimple.h:24
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
VP1CaloClusterCollection::setScale
void setScale(const QPair< bool, double > &)
Definition: VP1CaloClusterCollection.cxx:395
VP1StdCollection::checkBoxToolTip
virtual QString checkBoxToolTip() const
Definition: VP1StdCollection.h:76
VP1StdCollection::Imp::theswitch
SoSwitch * theswitch
Definition: VP1StdCollection.cxx:47
VP1StdCollection::VP1StdCollection
VP1StdCollection(IVP1System *, const QString &helperClassName)
Definition: VP1StdCollection.cxx:67
VP1Collection::Imp::widgetsForGuiRow
QList< QWidget * > widgetsForGuiRow
Definition: VP1Collection.cxx:31
VP1StdCollection::material
SoMaterial * material() const
Definition: VP1StdCollection.cxx:220
RoiUtil::serialise
void serialise(const std::vector< const IRoiDescriptor * > &rois, roiserial_type &s)
serialise an entire vector of IRoiDescriptors
Definition: RoiSerialise.cxx:45
VP1StdCollection::Imp::loaded
bool loaded
Definition: VP1StdCollection.cxx:55
VP1Collection::provideWidgetsForGuiRow
virtual QList< QWidget * > provideWidgetsForGuiRow() const =0
VP1StdCollection::collTypeID
qint32 collTypeID() const
Definition: VP1StdCollection.cxx:315
hist_file_dump.d
d
Definition: hist_file_dump.py:137
VP1StdCollection::possibleChangeMatTranspOrBrightness
void possibleChangeMatTranspOrBrightness()
Definition: VP1StdCollection.cxx:348
CaloClusterContainer
Storable container for CaloCluster.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:37
VP1HelperClassBase::m_helpername
QString m_helpername
Definition: VP1HelperClassBase.h:67
VP1MaterialButton
Definition: VP1MaterialButton.h:46
VP1Collection::Imp::sectionToolTip
QString sectionToolTip
Definition: VP1Collection.cxx:28
VP1HelperClassBase::messageVerbose
void messageVerbose(const QString &) const
Definition: VP1HelperClassBase.cxx:78
VP1Collection::Imp::persistID
QByteArray persistID
Definition: VP1Collection.cxx:25
VP1HelperClassBase::s_vp1verbose
static const bool s_vp1verbose
Definition: VP1HelperClassBase.h:69
fillPileUpNoiseLumi.connect
string connect
Definition: fillPileUpNoiseLumi.py:70
skel.it
it
Definition: skel.GENtoEVGEN.py:396
VP1CaloClusterCollection::setShowVolumeOutLines
void setShowVolumeOutLines(bool)
Definition: VP1CaloClusterCollection.cxx:415
VP1MaterialButtonBase::lastAppliedBrightness
virtual double lastAppliedBrightness() const =0
VP1StdCollection::Imp::collsep
SoSeparator * collsep
Definition: VP1StdCollection.cxx:48
VP1Msg::debug
static bool debug()
Definition: VP1Msg.h:32
CaloClusterSysController::cutAllowedEta
VP1Interval cutAllowedEta() const
Definition: CaloClusterSysController.cxx:265
VP1CaloClusterCollection::Imp::last_highestEnergy
double last_highestEnergy
Definition: VP1CaloClusterCollection.cxx:59
UploadAMITag.l
list l
Definition: UploadAMITag.larcaf.py:158
VP1StdCollection::largeChangesBegin
virtual void largeChangesBegin()
Definition: VP1StdCollection.cxx:228
VP1CameraHelper::animatedZoomToPath
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)
Definition: VP1CameraHelper.cxx:371
VP1HelperClassBase::m_system
IVP1System * m_system
Definition: VP1HelperClassBase.h:68
VP1CaloClusterCollection::largeChangesEnd
void largeChangesEnd()
Definition: VP1CaloClusterCollection.cxx:333
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
CaloClusterSysController::scale
QPair< bool, double > scale() const
Definition: CaloClusterSysController.cxx:221
VP1Collection::Imp::section
QString section
Definition: VP1Collection.cxx:27
VP1CaloClusterCollection::m_d
Imp * m_d
Definition: VP1CaloClusterCollection.h:63
VP1StdCollection::extraWidgetsState
virtual QByteArray extraWidgetsState() const
Definition: VP1StdCollection.h:89
x
#define x
VP1String::str
static QString str(const QString &s)
Definition: VP1String.h:49
VP1CaloClusterCollection::setConsiderTransverseEnergies
void setConsiderTransverseEnergies(bool)
Definition: VP1CaloClusterCollection.cxx:430
VP1CaloClusterCollection::Imp::calculateHighestVisibleClusterEnergy
double calculateHighestVisibleClusterEnergy() const
Definition: VP1CaloClusterCollection.cxx:230
VP1HelperClassBase::messageDebug
void messageDebug(const QString &) const
Definition: VP1HelperClassBase.cxx:65
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
VP1QtInventorUtils::deserialiseSoMaterial
static bool deserialiseSoMaterial(QByteArray &, SoMaterial *&)
Definition: VP1QtInventorUtils.cxx:1188
VP1Collection::Imp::sectionProvided
bool sectionProvided
Definition: VP1Collection.cxx:29
TruthTest.itE
itE
Definition: TruthTest.py:25
VP1CaloClusterCollection::Imp::recheckCut
void recheckCut(ClusterHandle *c)
Definition: VP1CaloClusterCollection.cxx:138
CaloClusterSysController::printInfoOnClick
bool printInfoOnClick() const
Definition: CaloClusterSysController.cxx:216
SoGenericBox::initClass
static void initClass()
Definition: SoGenericBox.cxx:62
VP1StdCollection::Imp::id
qint32 id
Definition: VP1StdCollection.cxx:58
beamspotnt.cols
list cols
Definition: bin/beamspotnt.py:1114
VP1StdCollection::Imp::material
SoMaterial * material
Definition: VP1StdCollection.cxx:50
checkTP.save
def save(self, fileName="./columbo.out")
Definition: checkTP.py:178
VP1CaloClusterCollection::setAllowedEnergies
void setAllowedEnergies(const VP1Interval &)
Definition: VP1CaloClusterCollection.cxx:340
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
VP1CaloClusterCollection::Imp::allowedEnergies
VP1Interval allowedEnergies
Definition: VP1CaloClusterCollection.cxx:56
VP1StdCollection::Imp::visible
bool visible
Definition: VP1StdCollection.cxx:54
VP1Msg::prefix_msg
static const char * prefix_msg()
Definition: VP1Msg.h:56
VP1ExtraSepLayerHelper
Definition: VP1ExtraSepLayerHelper.h:22
VP1CaloClusterCollection::Imp::showOutlines
bool showOutlines
Definition: VP1CaloClusterCollection.cxx:55
VP1StdCollection::setVisible
void setVisible(bool)
Definition: VP1StdCollection.cxx:160
lumiFormat.i
int i
Definition: lumiFormat.py:85
z
#define z
VP1CaloClusterCollection::Imp::controller
CaloClusterSysController * controller
Definition: VP1CaloClusterCollection.cxx:49
VP1StdCollection::load
virtual bool load()=0
VP1MaterialButton::setMaterialParameters
static void setMaterialParameters(SoMaterial *m, const QColor &, const double &brightness=0.0, const double &transp=0.0)
Definition: VP1MaterialButton.cxx:802
beamspotman.n
n
Definition: beamspotman.py:731
VP1CaloClusterCollection
Definition: VP1CaloClusterCollection.h:28
urldecode::states
states
Definition: urldecode.h:39
VP1StdCollection::Imp::matButton
VP1MaterialButtonBase * matButton
Definition: VP1StdCollection.cxx:53
VP1ExtraSepLayerHelper::largeChangesEnd
void largeChangesEnd()
Definition: VP1ExtraSepLayerHelper.cxx:156
VP1StdCollection::visibilityChanged
void visibilityChanged(bool)
CaloClusterSysController::cutAllowedPhi
QList< VP1Interval > cutAllowedPhi() const
Definition: CaloClusterSysController.cxx:271
VP1ExtraSepLayerHelper::largeChangesBegin
void largeChangesBegin()
Definition: VP1ExtraSepLayerHelper.cxx:135
VP1CaloClusterCollection::Imp::scale
QPair< bool, double > scale
Definition: VP1CaloClusterCollection.cxx:54
IVP1System::name
const QString & name() const
Definition: IVP1System.cxx:50
VP1StdCollection::provideExtraWidgetsForGuiRow
virtual QList< QWidget * > provideExtraWidgetsForGuiRow() const
Definition: VP1StdCollection.h:88
CaloCluster
Principal data class for CaloCell clusters.
Definition: Calorimeter/CaloEvent/CaloEvent/CaloCluster.h:79
VP1StdCollection::Imp::extraWidgets
QList< QWidget * > extraWidgets
Definition: VP1StdCollection.cxx:61
hist_file_dump.f
f
Definition: hist_file_dump.py:135
VP1Collection::m_d
Imp * m_d
Definition: VP1Collection.h:59
VP1StdCollection::text
QString text() const
Definition: VP1StdCollection.cxx:132
VP1Deserialise
Definition: VP1Deserialise.h:44
VP1MaterialButtonBase::copyValuesFromMaterial
virtual void copyValuesFromMaterial(SoMaterial *)=0
VP1StdCollection::Imp::idProvided
bool idProvided
Definition: VP1StdCollection.cxx:59
VP1Collection
Definition: VP1Collection.h:31
VP1StdCollection::problemsLoading
bool problemsLoading() const
Definition: VP1StdCollection.cxx:154
VP1CaloClusterCollection::Imp::key
QString key
Definition: VP1CaloClusterCollection.cxx:51
VP1StdCollection::collMaterialTransparencyAndBrightnessChanged
virtual void collMaterialTransparencyAndBrightnessChanged()
Definition: VP1StdCollection.h:79
VP1StdCollection::Imp::lastMatBrightness
double lastMatBrightness
Definition: VP1StdCollection.cxx:63
VP1StdCollection::Imp::lastMatTransparency
double lastMatTransparency
Definition: VP1StdCollection.cxx:62
VP1QtInventorUtils::sbcol2qcol
static QColor sbcol2qcol(const SbColor &)
Definition: VP1QtInventorUtils.cxx:1142
grepfile.sep
sep
Definition: grepfile.py:38
VP1CaloClusterCollection::highestVisibleClusterEnergyChanged
void highestVisibleClusterEnergyChanged()
VP1StdCollection::Imp::problemsloading
bool problemsloading
Definition: VP1StdCollection.cxx:56
VP1HelperClassBase::systemBase
IVP1System * systemBase() const
Definition: VP1HelperClassBase.h:50
VP1Collection::providePersistifiableID
virtual QByteArray providePersistifiableID() const =0
python.selection.number
number
Definition: selection.py:20
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
VP1Collection::widgetsForGuiRow
virtual QList< QWidget * > widgetsForGuiRow() const
Definition: VP1Collection.cxx:62
VP1MaterialButtonBase::setMaterial
virtual bool setMaterial(SoMaterial *)=0
VP1StdCollection::isLoaded
bool isLoaded() const
Definition: VP1StdCollection.cxx:148
VP1CaloClusterCollection::Imp::theclass
VP1CaloClusterCollection * theclass
Definition: VP1CaloClusterCollection.cxx:48
VP1Msg::prefix_debug
static const char * prefix_debug()
Definition: VP1Msg.h:57
VP1SGContentsHelper
Definition: VP1SGContentsHelper.h:26
VP1CaloClusterCollection::recheckHighestVisibleClusterEnergy
void recheckHighestVisibleClusterEnergy()
Definition: VP1CaloClusterCollection.cxx:243
query_example.col
col
Definition: query_example.py:7
VP1Collection::Imp::widgetsForGuiRowProvided
bool widgetsForGuiRowProvided
Definition: VP1Collection.cxx:32
VP1StdCollection::largeChangesEnd
virtual void largeChangesEnd()
Definition: VP1StdCollection.cxx:239
VP1Collection::provideSection
virtual QString provideSection() const =0
python.PyAthena.v
v
Definition: PyAthena.py:154
VP1StdCollection::assignDefaultMaterial
virtual void assignDefaultMaterial(SoMaterial *) const =0
VP1Collection::Imp::sectionToolTipProvided
bool sectionToolTipProvided
Definition: VP1Collection.cxx:30
VP1Msg::prefix_verbose
static const char * prefix_verbose()
Definition: VP1Msg.h:59
VP1Interval
Definition: VP1Interval.h:23
VP1Collection::Imp::persistIDProvided
bool persistIDProvided
Definition: VP1Collection.cxx:26
CaloClusterSysController::printVerboseInfoOnClick
bool printVerboseInfoOnClick() const
Definition: CaloClusterSysController.cxx:217
VP1Msg::messageDebug
static void messageDebug(const QString &)
Definition: VP1Msg.cxx:39
y
#define y
VP1Collection::provideSectionToolTip
virtual QString provideSectionToolTip() const
Definition: VP1Collection.h:53
IVP1System::updateGUI
void updateGUI()
Definition: IVP1System.cxx:262
IVP13DSystem
Definition: IVP13DSystem.h:31
CaloClusterSysController::cutAllowedEnergies
VP1Interval cutAllowedEnergies() const
Definition: CaloClusterSysController.cxx:255
VP1ExtraSepLayerHelper::topSeparator
SoSeparator * topSeparator() const
Definition: VP1ExtraSepLayerHelper.cxx:178
VP1StdCollection::collSep
SoSeparator * collSep() const
All 3D objects from this coll.
Definition: VP1StdCollection.cxx:212
VP1StdCollection::matButtonToolTip
virtual QString matButtonToolTip() const
Definition: VP1StdCollection.h:77
VP1HelperClassBase::message
void message(const QString &) const
Definition: VP1HelperClassBase.cxx:49
CaloClusterSysController::zoomOnClick
bool zoomOnClick() const
Definition: CaloClusterSysController.cxx:218
VP1CaloClusterCollection::Imp::allowedEta
VP1Interval allowedEta
Definition: VP1CaloClusterCollection.cxx:57
str
Definition: BTagTrackIpAccessor.cxx:11
VP1Msg::verbose
static bool verbose()
Definition: VP1Msg.h:31
VP1StdCollection::Imp::text
QString text
Definition: VP1StdCollection.cxx:60
VP1SGAccessHelper
Definition: VP1SGAccessHelper.h:25
VP1CaloClusterCollection::setAllowedEta
void setAllowedEta(const VP1Interval &)
Definition: VP1CaloClusterCollection.cxx:358
VP1StdCollection::Imp::checkBox
QCheckBox * checkBox
Definition: VP1StdCollection.cxx:49
CaloClusterSysController::showVolumeOutLines
bool showVolumeOutLines() const
Definition: CaloClusterSysController.cxx:277
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
VP1CaloClusterCollection::Imp::clusters
QList< ClusterHandle * > clusters
Definition: VP1CaloClusterCollection.cxx:148
VP1StdCollection::m_d
Imp * m_d
Definition: VP1StdCollection.h:102
VP1CaloClusterCollection::Imp::sephelper
VP1ExtraSepLayerHelper * sephelper
Definition: VP1CaloClusterCollection.cxx:50
python.compressB64.c
def c
Definition: compressB64.py:93
VP1StdCollection::provideText
virtual QString provideText() const =0
VP1StdCollection::Imp::textProvided
bool textProvided
Definition: VP1StdCollection.cxx:57
IVP1System::message
void message(const QString &) const
Definition: IVP1System.cxx:336
VP1StdCollection::provideCollTypeID
virtual qint32 provideCollTypeID() const
Definition: VP1StdCollection.h:92
VP1CaloClusterCollection::VP1CaloClusterCollection
VP1CaloClusterCollection(const QString &key, IVP1System *sys, CaloClusterSysController *)
Definition: VP1CaloClusterCollection.cxx:164
VP1StdCollection::setExtraWidgetsState
virtual void setExtraWidgetsState(const QByteArray &)
Definition: VP1StdCollection.h:90
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
query_example.des
des
Definition: query_example.py:9
VP1CaloClusterCollection::Imp::calo_crack_eta
static const double calo_crack_eta
Definition: VP1CaloClusterCollection.cxx:68
VP1MaterialButtonBase::lastAppliedTransparency
virtual double lastAppliedTransparency() const =0
VP1CaloClusterCollection::Imp::allowedPhi
QList< VP1Interval > allowedPhi
Definition: VP1CaloClusterCollection.cxx:58
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
VP1CaloClusterCollection::setAllowedPhi
void setAllowedPhi(const QList< VP1Interval > &)
Definition: VP1CaloClusterCollection.cxx:376