ATLAS Offline Software
CaloClusterSysController.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 CaloClusterSysController //
9 // //
10 // Description: Calo cluster system controller. //
11 // //
12 // Author: Thomas H. Kittelmann (Thomas.Kittelmann@cern.ch) //
13 // Initial version: July 2008 //
14 // //
16 
17 #ifndef CALOCLUSTERSYSCONTROLLER_H
18 #define CALOCLUSTERSYSCONTROLLER_H
19 
20 #include "VP1Base/VP1Controller.h"
21 class SoGroup;
22 
24 
25  Q_OBJECT
26 
27 public:
28 
30  virtual ~CaloClusterSysController();
31 
33  int currentSettingsVersion() const;
34  void actualSaveSettings(VP1Serialise&) const;
35 
37 
39  // Access Methods for settings //
41 
42  //To put at start of the system scenegraph:
43  SoGroup * drawOptions() const;
44 
45  //Interactions (no change signals needed):
46  bool printInfoOnClick() const;
47  bool printVerboseInfoOnClick() const;
48  bool zoomOnClick() const;
49 
50  //Scale:
51  //The bool indicates if it is logscale(true) or linear scale(false).
52  //The double is a parameter, p, used to get the length as a function
53  //of energy: Either p*|energy| or p*log(1+|energy|)
54  QPair<bool,double> scale() const;
55 
56  //General cuts:
58  VP1Interval cutAllowedEta() const;
59  QList<VP1Interval> cutAllowedPhi() const;//All off: empty list. All on: list with one entry: ]-inf,inf[
60 
61  //Display options:
62  bool showVolumeOutLines() const;
63 
64  //consider Et rather than E? (both for display and cuts):
65  bool useTransverseEnergies() const;
66 
68  // Signals for changes in settings //
70 signals:
71  void scaleChanged(const QPair<bool,double>&);
74  void cutAllowedPhiChanged(const QList<VP1Interval>&);
77 
78 private:
79 
80  class Imp;
81  Imp * m_d;
82 
83  //For verbose output:
84  template <class T> static QString toString( const T& t ) { return VP1Controller::toString(t); }//unhide base methods
85  static QString toString( const QPair<bool,double>& par );
86 public Q_SLOTS:
88 private Q_SLOTS:
95 };
96 
97 #endif
CaloClusterSysController::useTransverseEnergies
bool useTransverseEnergies() const
Definition: CaloClusterSysController.cxx:282
CaloClusterSysController::possibleChange_cutAllowedEta
void possibleChange_cutAllowedEta()
VP1Controller::toString
static QString toString(const T &par)
Definition: VP1Controller.h:138
CaloClusterSysController::CaloClusterSysController
CaloClusterSysController(IVP1System *sys)
Definition: CaloClusterSysController.cxx:55
VP1Serialise
Definition: VP1Serialise.h:45
CaloClusterSysController::actualRestoreSettings
void actualRestoreSettings(VP1Deserialise &)
Definition: CaloClusterSysController.cxx:153
CaloClusterSysController::possibleChange_cutAllowedEnergies
void possibleChange_cutAllowedEnergies()
CaloClusterSysController::cutAllowedEta
VP1Interval cutAllowedEta() const
Definition: CaloClusterSysController.cxx:265
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
CaloClusterSysController::scale
QPair< bool, double > scale() const
Definition: CaloClusterSysController.cxx:221
CaloClusterSysController::cutAllowedEtaChanged
void cutAllowedEtaChanged(const VP1Interval &)
CaloClusterSysController::~CaloClusterSysController
virtual ~CaloClusterSysController()
Definition: CaloClusterSysController.cxx:119
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
CaloClusterSysController::cutAllowedEnergiesChanged
void cutAllowedEnergiesChanged(const VP1Interval &)
CaloClusterSysController::printInfoOnClick
bool printInfoOnClick() const
Definition: CaloClusterSysController.cxx:216
CaloClusterSysController
Definition: CaloClusterSysController.h:23
CaloClusterSysController::drawOptions
SoGroup * drawOptions() const
Definition: CaloClusterSysController.cxx:210
IVP1System
Definition: IVP1System.h:36
CaloClusterSysController::toString
static QString toString(const T &t)
Definition: CaloClusterSysController.h:84
CaloClusterSysController::possibleChange_scale
void possibleChange_scale()
CaloClusterSysController::collWidget
VP1CollectionWidget * collWidget() const
Definition: CaloClusterSysController.cxx:184
CaloClusterSysController::cutAllowedPhi
QList< VP1Interval > cutAllowedPhi() const
Definition: CaloClusterSysController.cxx:271
VP1Deserialise
Definition: VP1Deserialise.h:44
CaloClusterSysController::etaCutPresetButtonTriggered
void etaCutPresetButtonTriggered()
Definition: CaloClusterSysController.cxx:191
CaloClusterSysController::showVolumeOutLinesChanged
void showVolumeOutLinesChanged(bool)
CaloClusterSysController::m_d
Imp * m_d
Definition: CaloClusterSysController.h:80
python.L1.Config.LegacyTopoMergerMap.signals
signals
Definition: LegacyTopoMergerMap.py:13
CaloClusterSysController::useTransverseEnergiesChanged
void useTransverseEnergiesChanged(bool)
VP1Controller
Definition: VP1Controller.h:45
CaloClusterSysController::actualSaveSettings
void actualSaveSettings(VP1Serialise &) const
Definition: CaloClusterSysController.cxx:132
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29
CaloClusterSysController::Imp
Definition: CaloClusterSysController.cxx:30
CaloClusterSysController::possibleChange_useTransverseEnergies
void possibleChange_useTransverseEnergies()
VP1Interval
Definition: VP1Interval.h:23
CaloClusterSysController::printVerboseInfoOnClick
bool printVerboseInfoOnClick() const
Definition: CaloClusterSysController.cxx:217
VP1CollectionWidget
Definition: VP1CollectionWidget.h:32
CaloClusterSysController::currentSettingsVersion
int currentSettingsVersion() const
Definition: CaloClusterSysController.cxx:126
CaloClusterSysController::cutAllowedEnergies
VP1Interval cutAllowedEnergies() const
Definition: CaloClusterSysController.cxx:255
CaloClusterSysController::possibleChange_showVolumeOutLines
void possibleChange_showVolumeOutLines()
CaloClusterSysController::zoomOnClick
bool zoomOnClick() const
Definition: CaloClusterSysController.cxx:218
VP1Controller.h
CaloClusterSysController::showVolumeOutLines
bool showVolumeOutLines() const
Definition: CaloClusterSysController.cxx:277
CaloClusterSysController::cutAllowedPhiChanged
void cutAllowedPhiChanged(const QList< VP1Interval > &)
CaloClusterSysController::possibleChange_cutAllowedPhi
void possibleChange_cutAllowedPhi()
CaloClusterSysController::scaleChanged
void scaleChanged(const QPair< bool, double > &)
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35