ATLAS Offline Software
Loading...
Searching...
No Matches
IParticleCollHandle_CaloCluster.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
6// //
7// //
8// Header file for class IParticleCollHandle_CaloCluster //
9// //
10// Description: Collection handle for calorimeter clusters //
11// //
12// June 2015 - Riccardo.Maria.Bianchi@cern.ch //
13// //
15
16#ifndef VP1AODSYSTEMS_IParticleCollHandle_CaloCluster_H
17#define VP1AODSYSTEMS_IParticleCollHandle_CaloCluster_H
18
19// local
21
22// Qt
23#include <QPair>
24
25// xAOD
26#include "xAODBase/ObjectType.h"
27
28// FWD declarations
29//class SoMaterial;
31
32
33
34
36
37 Q_OBJECT
38
39public:
40
41 static QStringList availableCollections(IVP1System*);//For the collection widget.
42
44 const QString& name, xAOD::Type::ObjectType type );
45
47
48 virtual void init(VP1MaterialButtonBase* matBut=0);//reimplementations must start with a call to this.
50 virtual void dumpToJSON( std::ofstream& ) const ;
51
53// bool isRandomColors() const;
54 bool isConsiderTransverseEnergy() const;
55// void setTransverseEnergyForCuts();
56 double energyToLength(const double& energy) const;
57 bool showOutlines() const;
58
59 void setScale();
60
61 // highest cluster energy
62 double highestVisibleClusterEnergy() const;
65
66 // bool isMaxR() const;
67
68 // This is created in this class, but passed to the JetCollectionButton for control etc. It is used in the Handle.
69 // SoMaterial* defaultParameterMaterial() const;
70
71 /*
72 * Save and restore settings
73 * (implementation of the virtual functions in the base class)
74 */
75 QByteArray persistifiableState() const; // save state
76 void setState(const QByteArray&); // restore state
77
78 static const double calo_start_r;
79 static const double calo_start_z;
80 static const double calo_crack_eta;
81
82protected:
83 virtual bool load();
84 virtual bool cut(AODHandleBase*);
85 virtual QColor defaultColor() const { return QColor::fromRgbF(1.0f, 1.0f, 0.5f); }
86
87signals:
89
90private Q_SLOTS:
91 void showParametersChanged(bool);
92 void setScale(const QPair<bool,double>&);
93 QPair<bool,double> scale() const;
94 void rebuildAllObjects();
95// void setScale(const QPair<bool,double>& s);
96// void setRandomJetColours(const bool&);
97// void rerandomise();
98// void setMaxR(const double& max);
99// double maxR() const;
100// void setBTaggingEnabled(const bool&);
101// void setBTaggingSkin(const QString &filename);
102// void setBTaggingMaterial(SoMaterial* mat = NULL);
103// void setBTaggingTagger(const QString & );
104// void setBTaggingCut(const double &);
105// void setBTaggingMaterialChanged(const bool&);
106// void setBTaggingSkinChanged(const bool& ok);
107 void setShowVolumeOutLines(bool);
109
110
111private:
112
113 class Imp;
115
116// void updateBTaggingAllJets();
117// void updateBTaggingSwitchAllJets();
118
119};
120
121#endif
const QString & name() const
IParticleCollHandleBase(AODSysCommonData *, const QString &name, xAOD::Type::ObjectType)
double energyToLength(const double &energy) const
void setState(const QByteArray &)
Provide specific implementation.
virtual void dumpToJSON(std::ofstream &) const
IParticleCollHandle_CaloCluster(AODSysCommonData *, const QString &name, xAOD::Type::ObjectType type)
QByteArray persistifiableState() const
Provide specific implementation.
const CaloClusterCollectionSettingsButton & collSettingsButton() const
static QStringList availableCollections(IVP1System *)
virtual void setupSettingsFromControllerSpecific(const AODSystemController *)
For extensions specific to this collection.
virtual void init(VP1MaterialButtonBase *matBut=0)
ObjectType
Type of objects that have a representation in the xAOD EDM.
Definition ObjectType.h:32