ATLAS Offline Software
Loading...
Searching...
No Matches
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
23class SoMaterial;
24class SoSeparator;
25
26class VP1EtaCone : public QObject, public VP1HelperClassBase {
27
28 Q_OBJECT
29
30public:
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
41public 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
47private:
48 class Imp;
50
51};
52
53#endif
const int nmax(200)
void setEtaValue(const double &)
static bool calcParsFromExtentAndSpacing(VP1HelperClassBase *, const double &extent, const double &spacing, const int &nmaxlimit, int &nmax, double &distmax)
Imp * m_d
Definition VP1EtaCone.h:49
VP1EtaCone(SoMaterial *mat, SoSeparator *attachsep, IVP1System *sys, QObject *parent=0)
void setShown(bool)
virtual ~VP1EtaCone()
void setExtent(const double &)
VP1HelperClassBase(IVP1System *sys=0, QString helpername="")