ATLAS Offline Software
VP1EtaCone.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 // //
8 // Header file for class VP1EtaCone //
9 // //
10 // Description: Helper class providing an eta cone. //
11 // //
12 // Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
13 // Initial version: July 2008 //
14 // //
16 
17 #ifndef VP1ETACONE_H
18 #define VP1ETACONE_H
19 
21 #include <QObject>
22 
23 class SoMaterial;
24 class SoSeparator;
25 
26 class VP1EtaCone : public QObject, public VP1HelperClassBase {
27 
28  Q_OBJECT
29 
30 public:
31 
32  //Used in various places. Put it here to avoid copying code:
33  static bool calcParsFromExtentAndSpacing( VP1HelperClassBase*,const double& extent, const double& spacing,
34  const int& nmaxlimit, int& nmax, double& distmax );
35 
36  VP1EtaCone( SoMaterial * mat,
37  SoSeparator * attachsep,//where the cone separator will attach itself when visible
38  IVP1System * sys,QObject * parent = 0);
39  virtual ~VP1EtaCone();
40 
41 public Q_SLOTS:
42 
43  void setShown(bool);//will attach/detach itself from attachsep depending on this
44  void setExtent(const double&);//>0: extent means to a given radius, <0: extent means to a given z.
45  void setEtaValue(const double&);
46 
47 private:
48  class Imp;
49  Imp * m_d;
50 
51 };
52 
53 #endif
VP1EtaCone
Definition: VP1EtaCone.h:26
VP1EtaCone::calcParsFromExtentAndSpacing
static bool calcParsFromExtentAndSpacing(VP1HelperClassBase *, const double &extent, const double &spacing, const int &nmaxlimit, int &nmax, double &distmax)
mat
GeoMaterial * mat
Definition: LArDetectorConstructionTBEC.cxx:53
VP1EtaCone::setShown
void setShown(bool)
Definition: VP1EtaCone.cxx:181
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
IVP1System
Definition: IVP1System.h:36
VP1EtaCone::m_d
Imp * m_d
Definition: VP1EtaCone.h:48
test_pyathena.parent
parent
Definition: test_pyathena.py:15
VP1HelperClassBase
Definition: VP1HelperClassBase.h:28
VP1HelperClassBase.h
VP1EtaCone::setEtaValue
void setEtaValue(const double &)
Definition: VP1EtaCone.cxx:209
VP1EtaCone::~VP1EtaCone
virtual ~VP1EtaCone()
Definition: VP1EtaCone.cxx:68
VP1EtaCone::setExtent
void setExtent(const double &)
Definition: VP1EtaCone.cxx:198
VP1EtaCone::VP1EtaCone
VP1EtaCone(SoMaterial *mat, SoSeparator *attachsep, IVP1System *sys, QObject *parent=0)
Definition: VP1EtaCone.cxx:61
VP1EtaCone::Imp
Definition: VP1EtaCone.cxx:33
nmax
const int nmax(200)