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

Public Member Functions

 Imp ()
 
SoMaterial * getMat (VP1MaterialButton *) const
 
SoMaterial * createMaterial (int r, int g, int b) const
 
SoMaterial * createMaterial (int r, int g, int b, float brightness, float transparency) const
 
void initEditWindow ()
 

Public Attributes

JetCollectionSettingsButtontheclass
 
QWidget * editwindow
 
Ui::IParticleCollectionSettingsForm editwindow_ui {}
 
Ui::JetSysSettingsDisplayForm ui_disp {}
 
VP1MaterialButtonmatButton
 
VP1Interval last_cutAllowedPt
 
VP1Interval last_cutAllowedP
 
VP1Interval last_cutAllowedEta
 
QList< VP1Intervallast_cutAllowedPhi
 
double last_scale
 
bool last_useDefaultCuts
 
bool last_randomJetColours
 
bool last_useMaxR
 
double last_maxR
 
bool last_bTaggingEnabled
 
QString last_bTaggingTagger
 
QString last_bTaggingSkin
 
double last_bTaggingCut
 
bool last_bTaggingRenderingSkin
 
bool last_bTaggingRenderingMaterial
 
SoMaterial * m_jetMaterialDefault
 
SoMaterial * materialFallback
 
int dim
 
QString name
 
QPoint dragStartPosition
 

Detailed Description

Definition at line 39 of file JetCollectionSettingsButton.cxx.

Constructor & Destructor Documentation

◆ Imp()

JetCollectionSettingsButton::Imp::Imp ( )
inline

Member Function Documentation

◆ createMaterial() [1/2]

SoMaterial * JetCollectionSettingsButton::Imp::createMaterial ( int  r,
int  g,
int  b 
) const

Definition at line 109 of file JetCollectionSettingsButton.cxx.

110 {
111  return VP1MaterialButton::createMaterial(r/255.0,g/255.0,b/255.0,0.2/*brightness*/);
112 }

◆ createMaterial() [2/2]

SoMaterial * JetCollectionSettingsButton::Imp::createMaterial ( int  r,
int  g,
int  b,
float  brightness,
float  transparency 
) const

Definition at line 114 of file JetCollectionSettingsButton.cxx.

117 {
118  return VP1MaterialButton::createMaterial(r/255.0,g/255.0,b/255.0, brightness, transparency);
119 }

◆ getMat()

SoMaterial* JetCollectionSettingsButton::Imp::getMat ( VP1MaterialButton ) const

◆ initEditWindow()

void JetCollectionSettingsButton::Imp::initEditWindow ( )

Definition at line 122 of file JetCollectionSettingsButton.cxx.

123 {
124  if (editwindow)
125  return;
126  theclass->messageVerbose("Initialising material editor dialog");
127 
128  // create a parent widget
129  editwindow = new QWidget(0,Qt::WindowStaysOnTopHint); // parent widget
130 
131 
132 
133  // init the different UIs
134  editwindow_ui.setupUi(editwindow); //IParticleCollectionSettingsForm
135  auto jetsettings = new QWidget();
136  editwindow_ui.verticalLayout_additional_widgets->addWidget(jetsettings);
137  ui_disp.setupUi(jetsettings); //JetSysSettingsDisplayForm
138 
140  // change labels to match jets' nomenclature
141  editwindow_ui.groupBox_cuts_momentum->setTitle("Energy cuts");
142  editwindow_ui.checkBox_cut_minpt->setText("Min Energy");
143  editwindow_ui.checkBox_cut_maxpt->setText("Max Energy");
144  editwindow_ui.comboBox_momtype->setItemText(0, "Et");
145  editwindow_ui.comboBox_momtype->setItemText(1, "E");
146  // change initial values to match jets' typical values
147  editwindow_ui.doubleSpinBox_cut_minpt_gev->setValue(10.00);
148  editwindow_ui.doubleSpinBox_cut_maxpt_gev->setValue(100.00);
149 
150  // get a handle on the material button
151  matButton = editwindow_ui.pushButton_matButton;
152 
153  // compose UI: adding to the default GUI the "display" custom cuts for jets
154  editwindow_ui.verticalLayout_additional_widgets->layout()->addWidget( ui_disp.groupBox_jet_display );
155 
156  // set b-tagging taggers
157  ui_disp.bTaggingComboBox->clear(); // remove all taggers defined in the .ui file
158 
159  QStringList bTagList;
160  //bTagList << "MV2c20" << "MV2c10" << "MV1" << "JetFitterCombNN_pb" << "JetFitterCombNN_pc" << "JetFitterCombNN_pu";
161  //bTagList << "MV2c20" << "MV2c10" << "MV2c00" << "MV1" << "JetFitterCombNN_pb" << "JetFitterCombNN_pc" << "JetFitterCombNN_pu"; // the JetFitter helpers have been removed in xAODBTagging-00-00-35
162 // bTagList << "MV2c20" << "MV2c10" << "MV2c00" << "MV1"; // (cfr. SVN changesets 797165 + 801102)
163  bTagList << "MV2c20" << "MV2c10" << "MV2c00"; // 28 Sep 2017
164  ui_disp.bTaggingComboBox->insertItems(0, bTagList);
165 
166  // set b-tagging "Material" checked by default ("Skin" will be optional)
167  ui_disp.radioButton_material->setChecked(true);
168 
169  // x-y projection
170  ui_disp.groupBox_IDprojection->setEnabled(false); // TODO: check what it did in previous versions and fix it!
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_disp.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 }

Member Data Documentation

◆ dim

int JetCollectionSettingsButton::Imp::dim

Definition at line 100 of file JetCollectionSettingsButton.cxx.

◆ dragStartPosition

QPoint JetCollectionSettingsButton::Imp::dragStartPosition

Definition at line 102 of file JetCollectionSettingsButton.cxx.

◆ editwindow

QWidget* JetCollectionSettingsButton::Imp::editwindow

Definition at line 53 of file JetCollectionSettingsButton.cxx.

◆ editwindow_ui

Ui::IParticleCollectionSettingsForm JetCollectionSettingsButton::Imp::editwindow_ui {}

Definition at line 54 of file JetCollectionSettingsButton.cxx.

◆ last_bTaggingCut

double JetCollectionSettingsButton::Imp::last_bTaggingCut

Definition at line 83 of file JetCollectionSettingsButton.cxx.

◆ last_bTaggingEnabled

bool JetCollectionSettingsButton::Imp::last_bTaggingEnabled

Definition at line 80 of file JetCollectionSettingsButton.cxx.

◆ last_bTaggingRenderingMaterial

bool JetCollectionSettingsButton::Imp::last_bTaggingRenderingMaterial

Definition at line 86 of file JetCollectionSettingsButton.cxx.

◆ last_bTaggingRenderingSkin

bool JetCollectionSettingsButton::Imp::last_bTaggingRenderingSkin

Definition at line 85 of file JetCollectionSettingsButton.cxx.

◆ last_bTaggingSkin

QString JetCollectionSettingsButton::Imp::last_bTaggingSkin

Definition at line 82 of file JetCollectionSettingsButton.cxx.

◆ last_bTaggingTagger

QString JetCollectionSettingsButton::Imp::last_bTaggingTagger

Definition at line 81 of file JetCollectionSettingsButton.cxx.

◆ last_cutAllowedEta

VP1Interval JetCollectionSettingsButton::Imp::last_cutAllowedEta

Definition at line 68 of file JetCollectionSettingsButton.cxx.

◆ last_cutAllowedP

VP1Interval JetCollectionSettingsButton::Imp::last_cutAllowedP

Definition at line 67 of file JetCollectionSettingsButton.cxx.

◆ last_cutAllowedPhi

QList<VP1Interval> JetCollectionSettingsButton::Imp::last_cutAllowedPhi

Definition at line 69 of file JetCollectionSettingsButton.cxx.

◆ last_cutAllowedPt

VP1Interval JetCollectionSettingsButton::Imp::last_cutAllowedPt

Definition at line 66 of file JetCollectionSettingsButton.cxx.

◆ last_maxR

double JetCollectionSettingsButton::Imp::last_maxR

Definition at line 74 of file JetCollectionSettingsButton.cxx.

◆ last_randomJetColours

bool JetCollectionSettingsButton::Imp::last_randomJetColours

Definition at line 72 of file JetCollectionSettingsButton.cxx.

◆ last_scale

double JetCollectionSettingsButton::Imp::last_scale

Definition at line 70 of file JetCollectionSettingsButton.cxx.

◆ last_useDefaultCuts

bool JetCollectionSettingsButton::Imp::last_useDefaultCuts

Definition at line 71 of file JetCollectionSettingsButton.cxx.

◆ last_useMaxR

bool JetCollectionSettingsButton::Imp::last_useMaxR

Definition at line 73 of file JetCollectionSettingsButton.cxx.

◆ m_jetMaterialDefault

SoMaterial* JetCollectionSettingsButton::Imp::m_jetMaterialDefault

Definition at line 89 of file JetCollectionSettingsButton.cxx.

◆ matButton

VP1MaterialButton* JetCollectionSettingsButton::Imp::matButton

Definition at line 57 of file JetCollectionSettingsButton.cxx.

◆ materialFallback

SoMaterial* JetCollectionSettingsButton::Imp::materialFallback

Definition at line 92 of file JetCollectionSettingsButton.cxx.

◆ name

QString JetCollectionSettingsButton::Imp::name

Definition at line 101 of file JetCollectionSettingsButton.cxx.

◆ theclass

JetCollectionSettingsButton* JetCollectionSettingsButton::Imp::theclass

Definition at line 50 of file JetCollectionSettingsButton.cxx.

◆ ui_disp

Ui::JetSysSettingsDisplayForm JetCollectionSettingsButton::Imp::ui_disp {}

Definition at line 55 of file JetCollectionSettingsButton.cxx.


The documentation for this class was generated from the following file:
beamspotman.r
def r
Definition: beamspotman.py:676
JetCollectionSettingsButton::Imp::ui_disp
Ui::JetSysSettingsDisplayForm ui_disp
Definition: JetCollectionSettingsButton.cxx:55
VP1HelperClassBase::messageVerbose
void messageVerbose(const QString &) const
Definition: VP1HelperClassBase.cxx:78
JetCollectionSettingsButton::Imp::last_scale
double last_scale
Definition: JetCollectionSettingsButton.cxx:70
JetCollectionSettingsButton::Imp::m_jetMaterialDefault
SoMaterial * m_jetMaterialDefault
Definition: JetCollectionSettingsButton.cxx:89
JetCollectionSettingsButton::Imp::editwindow_ui
Ui::IParticleCollectionSettingsForm editwindow_ui
Definition: JetCollectionSettingsButton.cxx:54
JetCollectionSettingsButton::possibleChange_bTaggingEnabled
void possibleChange_bTaggingEnabled(bool)
Definition: JetCollectionSettingsButton.cxx:914
JetCollectionSettingsButton::Imp::last_useMaxR
bool last_useMaxR
Definition: JetCollectionSettingsButton.cxx:73
JetCollectionSettingsButton::Imp::last_bTaggingCut
double last_bTaggingCut
Definition: JetCollectionSettingsButton.cxx:83
JetCollectionSettingsButton::Imp::last_bTaggingEnabled
bool last_bTaggingEnabled
Definition: JetCollectionSettingsButton.cxx:80
JetCollectionSettingsButton::Imp::editwindow
QWidget * editwindow
Definition: JetCollectionSettingsButton.cxx:53
JetCollectionSettingsButton::Imp::last_maxR
double last_maxR
Definition: JetCollectionSettingsButton.cxx:74
python.CaloCondTools.g
g
Definition: CaloCondTools.py:15
JetCollectionSettingsButton::Imp::materialFallback
SoMaterial * materialFallback
Definition: JetCollectionSettingsButton.cxx:92
JetCollectionSettingsButton::Imp::theclass
JetCollectionSettingsButton * theclass
Definition: JetCollectionSettingsButton.cxx:50
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
VP1MaterialButton::createMaterial
static SoMaterial * createMaterial(const QColor &, const double &brightness=0.0, const double &transp=0.0)
Definition: VP1MaterialButton.cxx:786
JetCollectionSettingsButton::Imp::last_bTaggingRenderingMaterial
bool last_bTaggingRenderingMaterial
Definition: JetCollectionSettingsButton.cxx:86
JetCollectionSettingsButton::Imp::last_useDefaultCuts
bool last_useDefaultCuts
Definition: JetCollectionSettingsButton.cxx:71
JetCollectionSettingsButton::Imp::last_randomJetColours
bool last_randomJetColours
Definition: JetCollectionSettingsButton.cxx:72
JetCollectionSettingsButton::Imp::dim
int dim
Definition: JetCollectionSettingsButton.cxx:100
JetCollectionSettingsButton::Imp::matButton
VP1MaterialButton * matButton
Definition: JetCollectionSettingsButton.cxx:57
JetCollectionSettingsButton::Imp::last_bTaggingRenderingSkin
bool last_bTaggingRenderingSkin
Definition: JetCollectionSettingsButton.cxx:85