ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
CaloClusterCollectionSettingsButton::Imp Class Reference
Collaboration diagram for CaloClusterCollectionSettingsButton::Imp:

Public Member Functions

 Imp ()
 
void initEditWindow ()
 

Public Attributes

int dim
 
QPoint dragStartPosition
 
VP1MaterialButtonmatButton
 
CaloClusterCollectionSettingsButtontheclass
 
IParticleCollHandle_CaloClustercoll
 
QWidget * editwindow
 
Ui::IParticleCollectionSettingsForm ui_commonsettings {}
 
Ui::CaloClusterSettingsDisplayForm ui_customsettings {}
 
VP1Interval last_cutAllowedPt
 
VP1Interval last_cutAllowedP
 
VP1Interval last_cutAllowedEta
 
QList< VP1Intervallast_cutAllowedPhi
 
bool m_transverseEnergy
 
bool m_forceRebuild
 
QPair< bool, double > last_scale
 
bool last_useDefaultCuts
 
double gui_mostEnergetic
 

Detailed Description

Definition at line 49 of file CaloClusterCollectionSettingsButton.cxx.

Constructor & Destructor Documentation

◆ Imp()

CaloClusterCollectionSettingsButton::Imp::Imp ( )
inline

Definition at line 53 of file CaloClusterCollectionSettingsButton.cxx.

53  :dim(0),matButton(nullptr),theclass(nullptr),coll(nullptr),editwindow(nullptr),
55  gui_mostEnergetic{0.0} {
56  //nop
57  }

Member Function Documentation

◆ initEditWindow()

void CaloClusterCollectionSettingsButton::Imp::initEditWindow ( )

Definition at line 111 of file CaloClusterCollectionSettingsButton.cxx.

112 {
113  if (editwindow)
114  return;
115  theclass->messageVerbose("Initialising material editor dialog");
116 
117  // create a parent widget
118  editwindow = new QWidget(0,Qt::WindowStaysOnTopHint); // parent widget
119 
120  // init UI, with the same parent widget
121  ui_commonsettings.setupUi(editwindow);
122  auto customsettings = new QWidget();
123  ui_commonsettings.verticalLayout_additional_widgets->addWidget(customsettings);
124  ui_customsettings.setupUi(customsettings); //JetSysSettingsDisplayForm
125 
127  // change labels to match object's nomenclature
128  ui_commonsettings.groupBox_cuts_momentum->setTitle("Energy cuts");
129  ui_commonsettings.checkBox_cut_minpt->setText("Min Energy");
130  ui_commonsettings.checkBox_cut_maxpt->setText("Max Energy");
131 
132  ui_commonsettings.comboBox_momtype->setItemText(0, "Et");
133  ui_commonsettings.comboBox_momtype->setItemText(1, "E");
134 // ui_commonsettings.comboBox_momtype->setEnabled(false); // TODO: enable it back and make it working, now it is not connected
135 
136  // change initial values to match jets' typical values
137  ui_commonsettings.doubleSpinBox_cut_minpt_gev->setValue(2.00);
138  ui_commonsettings.doubleSpinBox_cut_maxpt_gev->setValue(100.00);
139 
140  // get a handle on the material button
141  matButton = ui_commonsettings.pushButton_matButton;
142 
143 // // set "Material" checked by default ("Skin" will be optional)
144 // ui_customsettings.radioButton_material->setChecked(true);
145 
146 // defaultParametersMatButton = ui_commonsettings.matButton_parametersDefaultColour;
147 // SoMaterial* defParamMat = new SoMaterial; // Default (for the moment)
148 // defaultParametersMatButton->setMaterial(defParamMat);
149 // ui_commonsettings.frame_parameterTypeColours->hide();
150 
151  // // Set the default colours for the "colour by parameter type" section
152  // parameterTypeMatButtons.append(ui_commonsettings.pushButton_matButton_parameters_default_colour_2);
153  // parameterTypeMatButtons.append(ui_commonsettings.pushButton_matButton_parameters_default_colour_3);
154  // parameterTypeMatButtons.append(ui_commonsettings.pushButton_matButton_parameters_default_colour_4);
155  // parameterTypeMatButtons.append(ui_commonsettings.pushButton_matButton_parameters_default_colour_5);
156  // parameterTypeMatButtons.append(ui_commonsettings.pushButton_matButton_parameters_default_colour_6);
157  // parameterTypeMatButtons.append(ui_commonsettings.pushButton_matButton_parameters_default_colour_7);
158  // QList<QColor> colours;
159  // colours.append(QColor(0.0, 170.0, 255.0));
160  // colours.append(QColor(170, 85, 255));
161  // colours.append(QColor(255, 85, 0));
162  // colours.append(QColor(170, 0, 127));
163  // colours.append(QColor(170, 255, 0));
164  // colours.append(QColor(85, 0, 255));
165  //
166  // for (unsigned int i=0; i<6;++i){
167  // SoMaterial * mat = VP1MaterialButton::createMaterial(colours.at(i));
168  // (parameterTypeMatButtons.at(i))->setMaterial(mat);
169  // }
170 
171 
172 // // when creating a new controller, check if b-tagging checkbox is enabled,
173 // // for example from a config file or from a drag&drop from another collection
174 // if (ui_customsettings.bTaggingCheckBox->isChecked())
175 // theclass->possibleChange_bTaggingEnabled(true); // init the b-tagging toolbox as active
176 // else
177 // theclass->possibleChange_bTaggingEnabled(false); // init the b-tagging toolbox as not-active
178 //
179 //
180 // // default material for b-jets
181 // materialFallback = createMaterial(116,255,228);
182 // materialFallback->ref();
183 
184 }

Member Data Documentation

◆ coll

IParticleCollHandle_CaloCluster* CaloClusterCollectionSettingsButton::Imp::coll

Definition at line 71 of file CaloClusterCollectionSettingsButton.cxx.

◆ dim

int CaloClusterCollectionSettingsButton::Imp::dim

Definition at line 59 of file CaloClusterCollectionSettingsButton.cxx.

◆ dragStartPosition

QPoint CaloClusterCollectionSettingsButton::Imp::dragStartPosition

Definition at line 60 of file CaloClusterCollectionSettingsButton.cxx.

◆ editwindow

QWidget* CaloClusterCollectionSettingsButton::Imp::editwindow

Definition at line 74 of file CaloClusterCollectionSettingsButton.cxx.

◆ gui_mostEnergetic

double CaloClusterCollectionSettingsButton::Imp::gui_mostEnergetic

Definition at line 98 of file CaloClusterCollectionSettingsButton.cxx.

◆ last_cutAllowedEta

VP1Interval CaloClusterCollectionSettingsButton::Imp::last_cutAllowedEta

Definition at line 89 of file CaloClusterCollectionSettingsButton.cxx.

◆ last_cutAllowedP

VP1Interval CaloClusterCollectionSettingsButton::Imp::last_cutAllowedP

Definition at line 88 of file CaloClusterCollectionSettingsButton.cxx.

◆ last_cutAllowedPhi

QList<VP1Interval> CaloClusterCollectionSettingsButton::Imp::last_cutAllowedPhi

Definition at line 90 of file CaloClusterCollectionSettingsButton.cxx.

◆ last_cutAllowedPt

VP1Interval CaloClusterCollectionSettingsButton::Imp::last_cutAllowedPt

Definition at line 87 of file CaloClusterCollectionSettingsButton.cxx.

◆ last_scale

QPair<bool,double> CaloClusterCollectionSettingsButton::Imp::last_scale

Definition at line 95 of file CaloClusterCollectionSettingsButton.cxx.

◆ last_useDefaultCuts

bool CaloClusterCollectionSettingsButton::Imp::last_useDefaultCuts

Definition at line 96 of file CaloClusterCollectionSettingsButton.cxx.

◆ m_forceRebuild

bool CaloClusterCollectionSettingsButton::Imp::m_forceRebuild

Definition at line 92 of file CaloClusterCollectionSettingsButton.cxx.

◆ m_transverseEnergy

bool CaloClusterCollectionSettingsButton::Imp::m_transverseEnergy

Definition at line 91 of file CaloClusterCollectionSettingsButton.cxx.

◆ matButton

VP1MaterialButton* CaloClusterCollectionSettingsButton::Imp::matButton

Definition at line 65 of file CaloClusterCollectionSettingsButton.cxx.

◆ theclass

CaloClusterCollectionSettingsButton* CaloClusterCollectionSettingsButton::Imp::theclass

Definition at line 68 of file CaloClusterCollectionSettingsButton.cxx.

◆ ui_commonsettings

Ui::IParticleCollectionSettingsForm CaloClusterCollectionSettingsButton::Imp::ui_commonsettings {}

Definition at line 75 of file CaloClusterCollectionSettingsButton.cxx.

◆ ui_customsettings

Ui::CaloClusterSettingsDisplayForm CaloClusterCollectionSettingsButton::Imp::ui_customsettings {}

Definition at line 76 of file CaloClusterCollectionSettingsButton.cxx.


The documentation for this class was generated from the following file:
CaloClusterCollectionSettingsButton::Imp::matButton
VP1MaterialButton * matButton
Definition: CaloClusterCollectionSettingsButton.cxx:65
CaloClusterCollectionSettingsButton::Imp::theclass
CaloClusterCollectionSettingsButton * theclass
Definition: CaloClusterCollectionSettingsButton.cxx:68
CaloClusterCollectionSettingsButton::Imp::m_forceRebuild
bool m_forceRebuild
Definition: CaloClusterCollectionSettingsButton.cxx:92
VP1HelperClassBase::messageVerbose
void messageVerbose(const QString &) const
Definition: VP1HelperClassBase.cxx:78
CaloClusterCollectionSettingsButton::Imp::coll
IParticleCollHandle_CaloCluster * coll
Definition: CaloClusterCollectionSettingsButton.cxx:71
CaloClusterCollectionSettingsButton::Imp::last_useDefaultCuts
bool last_useDefaultCuts
Definition: CaloClusterCollectionSettingsButton.cxx:96
CaloClusterCollectionSettingsButton::Imp::gui_mostEnergetic
double gui_mostEnergetic
Definition: CaloClusterCollectionSettingsButton.cxx:98
CaloClusterCollectionSettingsButton::Imp::m_transverseEnergy
bool m_transverseEnergy
Definition: CaloClusterCollectionSettingsButton.cxx:91
CaloClusterCollectionSettingsButton::Imp::editwindow
QWidget * editwindow
Definition: CaloClusterCollectionSettingsButton.cxx:74
CaloClusterCollectionSettingsButton::Imp::ui_commonsettings
Ui::IParticleCollectionSettingsForm ui_commonsettings
Definition: CaloClusterCollectionSettingsButton.cxx:75
CaloClusterCollectionSettingsButton::Imp::ui_customsettings
Ui::CaloClusterSettingsDisplayForm ui_customsettings
Definition: CaloClusterCollectionSettingsButton.cxx:76
CaloClusterCollectionSettingsButton::Imp::dim
int dim
Definition: CaloClusterCollectionSettingsButton.cxx:59