GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TBGSubtraction Class Reference

Detailed Description

This class implements a GUI to perform projections of a 2D-Matrix with proper background subtraction.

There is a known issue that clicking on the close button of the window will cause a segmentation violation. If the class was created on the heap (using new), this will make it impossible to kill grsisort from within the terminal or sending it to the background. If the class was however created on the stack, this will simply crash grsisort. Because of this the recommended way to start it is using a line like TBGSubtraction bg(<matrix-name>) where bg is the variable name (can be any other valid c++ variable name), and <matrix-name> is the name of the 2D histogram (without any quotation marks).

Definition at line 53 of file TBGSubtraction.h.

Public Member Functions

 TBGSubtraction (const TBGSubtraction &)=delete
 
 TBGSubtraction (TBGSubtraction &&)=delete
 
 TBGSubtraction (TH2 *mat, const char *gate_axis="x", int maxBinning=20)
 
 ~TBGSubtraction ()
 
void AxisComboSelected ()
 
void ClickedBGButton1 ()
 
void ClickedBGButton2 ()
 
void DoAllGates ()
 
void DoEntry (Long_t)
 
void DoGateCanvasZoomed ()
 
void DoGateProjection ()
 
void DoPeakFit ()
 
void DoProjectionCanvasZoomed ()
 
void DoSlider (Int_t pos=0)
 
void DrawAllMarkers ()
 
void DrawBGMarkers1 ()
 
void DrawBGMarkers2 ()
 
void DrawGateMarkers ()
 
void DrawOnNewCanvas ()
 
void DrawPeak ()
 
void DrawPeakMarkers ()
 
void GateStatusInfo (Int_t event, Int_t px, Int_t py, TObject *selected)
 
void MakeBGHisto1 ()
 
void MakeBGHisto2 ()
 
void MakeGateHisto ()
 
TBGSubtractionoperator= (const TBGSubtraction &)=delete
 
TBGSubtractionoperator= (TBGSubtraction &&)=delete
 
void PeakComboSelected ()
 
void ProjectionStatusInfo (Int_t event, Int_t px, Int_t py, TObject *selected)
 
void SetStatusFromUpdateCheckButton ()
 
void UpdateBackground ()
 
void UpdatePeakSliders ()
 
void UpdateProjectionSliders ()
 
void WriteHistograms ()
 

Private Types

enum  EEntries {
  kBGParamEntry , kGateLowEntry , kGateHighEntry , kPeakLowEntry ,
  kPeakHighEntry , kPeakEntry , kBGLowEntry1 , kBGHighEntry1 ,
  kBGLowEntry2 , kBGHighEntry2 , kWrite2FileNameEntry , kHistogramDescriptionEntry ,
  kComboAxisEntry , kComboPeakEntry , kBGCheckButton1 , kBGCheckButton2 ,
  kAutoUpdateCheckButton
}
 
enum  EPeaks { kGauss = 0 , kRWPeak = 1 , kABPeak = 2 , kAB3Peak = 3 }
 
enum  ESliders {
  kGateSlider , kBGSlider1 , kBGSlider2 , kPeakSlider ,
  kBinningSlider
}
 

Private Member Functions

void BuildInterface ()
 
void Disconnect ()
 
void DrawBGMarkers (TGCheckButton *&check_button, GMarker *&low_marker, GMarker *&high_marker, TGNumberEntry *&low_entry, TGNumberEntry *&high_entry, Color_t color=kBlue)
 
void InitializeInterface ()
 
void MakeConnections ()
 
void RebinProjection ()
 
void ResetInterface ()
 
void StatusInfo (Int_t event, Int_t px, Int_t py, TObject *selected)
 
void UpdateBGSlider1 ()
 
void UpdateBGSlider2 ()
 
void UpdateBinningSlider ()
 
void UpdateGateSlider ()
 

Private Attributes

TGCheckButton * fAutoUpdateCheckButton {nullptr}
 
TGComboBox * fAxisCombo {nullptr}
 
TGCheckButton * fBGCheckButton1 {nullptr}
 
TGCheckButton * fBGCheckButton2 {nullptr}
 
TGHorizontalFrame * fBGEntryFrame1 {nullptr}
 
TGHorizontalFrame * fBGEntryFrame2 {nullptr}
 
TGNumberEntry * fBGEntryHigh1 {nullptr}
 
TGNumberEntry * fBGEntryHigh2 {nullptr}
 
TGNumberEntry * fBGEntryLow1 {nullptr}
 
TGNumberEntry * fBGEntryLow2 {nullptr}
 
TH1 * fBGHist1 {nullptr}
 
TH1 * fBGHist2 {nullptr}
 
TGNumberEntry * fBGParamEntry {nullptr}
 
TGHorizontalFrame * fBGParamFrame {nullptr}
 
TGLabel * fBGParamLabel {nullptr}
 
TGDoubleHSlider * fBGSlider1 {nullptr}
 
TGDoubleHSlider * fBGSlider2 {nullptr}
 
TGHorizontalFrame * fBinningFrame {nullptr}
 
TGLabel * fBinningLabel {nullptr}
 
TGHSlider * fBinningSlider {nullptr}
 
TGLayoutHints * fBly {nullptr}
 
TGLayoutHints * fBly1 {nullptr}
 
TGHorizontalFrame * fButtonFrame {nullptr}
 
TFile * fCurrentFile {nullptr}
 
TGHorizontalFrame * fDescriptionFrame {nullptr}
 
Bool_t fForceUpdate {true}
 
Int_t fGateAxis {0}
 
TRootEmbeddedCanvas * fGateCanvas {nullptr}
 
TGHorizontalFrame * fGateEntryFrame {nullptr}
 
TGNumberEntry * fGateEntryHigh {nullptr}
 
TGNumberEntry * fGateEntryLow {nullptr}
 
TGVerticalFrame * fGateFrame {nullptr}
 
TH1 * fGateHist {nullptr}
 
TGDoubleHSlider * fGateSlider {nullptr}
 
GMarkerfHighBGMarker1 {nullptr}
 
GMarkerfHighBGMarker2 {nullptr}
 
GMarkerfHighGateMarker {nullptr}
 
GMarkerfHighPeakMarker {nullptr}
 
TGTextEntry * fHistogramDescription {nullptr}
 
TGLayoutHints * fLayoutCanvases {nullptr}
 
TGLayoutHints * fLayoutParam {nullptr}
 
GMarkerfLowBGMarker1 {nullptr}
 
GMarkerfLowBGMarker2 {nullptr}
 
GMarkerfLowGateMarker {nullptr}
 
GMarkerfLowPeakMarker {nullptr}
 
TGMainFrame * fMain {nullptr}
 
TH2 * fMatrix {nullptr}
 
Int_t fMaxBinning {20}
 
TSinglePeakfPeak {nullptr}
 
TGComboBox * fPeakCombo {nullptr}
 
TGTextButton * fPeakFitButton {nullptr}
 
TGHorizontalFrame * fPeakFitFrame {nullptr}
 
TPeakFitterfPeakFitter {nullptr}
 
Double_t fPeakHighLimit {0.}
 
Double_t fPeakHighValue {0.}
 
Double_t fPeakLowLimit {0.}
 
Double_t fPeakLowValue {0.}
 
GMarkerfPeakMarker {nullptr}
 
TGTripleHSlider * fPeakSlider {nullptr}
 
Double_t fPeakValue {0.}
 
TH1 * fProjection {nullptr}
 
TRootEmbeddedCanvas * fProjectionCanvas {nullptr}
 
TGVerticalFrame * fProjectionFrame {nullptr}
 
TGStatusBar * fProjectionStatus {nullptr}
 
TH1 * fSubtractedBinHist {nullptr}
 
TH1 * fSubtractedHist {nullptr}
 
TGTextButton * fWrite2FileButton {nullptr}
 
TGTextEntry * fWrite2FileName {nullptr}
 
+ Inheritance diagram for TBGSubtraction:
+ Collaboration diagram for TBGSubtraction:

Member Enumeration Documentation

◆ EEntries

Enumerator
kBGParamEntry 
kGateLowEntry 
kGateHighEntry 
kPeakLowEntry 
kPeakHighEntry 
kPeakEntry 
kBGLowEntry1 
kBGHighEntry1 
kBGLowEntry2 
kBGHighEntry2 
kWrite2FileNameEntry 
kHistogramDescriptionEntry 
kComboAxisEntry 
kComboPeakEntry 
kBGCheckButton1 
kBGCheckButton2 
kAutoUpdateCheckButton 

Definition at line 64 of file TBGSubtraction.h.

◆ EPeaks

enum TBGSubtraction::EPeaks
private
Enumerator
kGauss 
kRWPeak 
kABPeak 
kAB3Peak 

Definition at line 83 of file TBGSubtraction.h.

◆ ESliders

Enumerator
kGateSlider 
kBGSlider1 
kBGSlider2 
kPeakSlider 
kBinningSlider 

Definition at line 57 of file TBGSubtraction.h.

Constructor & Destructor Documentation

◆ TBGSubtraction() [1/3]

TBGSubtraction::TBGSubtraction ( TH2 * mat,
const char * gate_axis = "x",
int maxBinning = 20 )
explicit

◆ TBGSubtraction() [2/3]

TBGSubtraction::TBGSubtraction ( const TBGSubtraction & )
delete

◆ TBGSubtraction() [3/3]

TBGSubtraction::TBGSubtraction ( TBGSubtraction && )
delete

◆ ~TBGSubtraction()

Member Function Documentation

◆ AxisComboSelected()

void TBGSubtraction::AxisComboSelected ( )

◆ BuildInterface()

◆ ClickedBGButton1()

void TBGSubtraction::ClickedBGButton1 ( )

Definition at line 459 of file TBGSubtraction.cxx.

References fBGCheckButton1, and fBGParamEntry.

◆ ClickedBGButton2()

void TBGSubtraction::ClickedBGButton2 ( )

◆ Disconnect()

void TBGSubtraction::Disconnect ( )
private

Disconnect Canvases to recognize that they have been zoomed This function includes setting the slider, and drawing the gate markers.

Definition at line 104 of file TBGSubtraction.cxx.

References fAutoUpdateCheckButton, fAxisCombo, fBGCheckButton1, fBGCheckButton2, fBGEntryHigh1, fBGEntryHigh2, fBGEntryLow1, fBGEntryLow2, fBGParamEntry, fBGSlider1, fBGSlider2, fBinningSlider, fGateCanvas, fGateEntryHigh, fGateEntryLow, fGateSlider, fPeakCombo, fPeakFitButton, fPeakSlider, fProjectionCanvas, and fWrite2FileButton.

Referenced by ~TBGSubtraction().

◆ DoAllGates()

void TBGSubtraction::DoAllGates ( )

◆ DoEntry()

◆ DoGateCanvasZoomed()

void TBGSubtraction::DoGateCanvasZoomed ( )

◆ DoGateProjection()

◆ DoPeakFit()

◆ DoProjectionCanvasZoomed()

◆ DoSlider()

◆ DrawAllMarkers()

void TBGSubtraction::DrawAllMarkers ( )

◆ DrawBGMarkers()

void TBGSubtraction::DrawBGMarkers ( TGCheckButton *& check_button,
GMarker *& low_marker,
GMarker *& high_marker,
TGNumberEntry *& low_entry,
TGNumberEntry *& high_entry,
Color_t color = kBlue )
private

◆ DrawBGMarkers1()

void TBGSubtraction::DrawBGMarkers1 ( )

◆ DrawBGMarkers2()

void TBGSubtraction::DrawBGMarkers2 ( )

◆ DrawGateMarkers()

◆ DrawOnNewCanvas()

void TBGSubtraction::DrawOnNewCanvas ( )

Definition at line 1099 of file TBGSubtraction.cxx.

References fSubtractedBinHist.

◆ DrawPeak()

void TBGSubtraction::DrawPeak ( )

Definition at line 454 of file TBGSubtraction.cxx.

References TSinglePeak::Draw(), and fPeak.

Referenced by DoPeakFit().

◆ DrawPeakMarkers()

◆ GateStatusInfo()

void TBGSubtraction::GateStatusInfo ( Int_t event,
Int_t px,
Int_t py,
TObject * selected )

Definition at line 1153 of file TBGSubtraction.cxx.

References fGateCanvas, and StatusInfo().

◆ InitializeInterface()

void TBGSubtraction::InitializeInterface ( )
private

◆ MakeBGHisto1()

void TBGSubtraction::MakeBGHisto1 ( )

Definition at line 906 of file TBGSubtraction.cxx.

References fBGEntryHigh1, fBGEntryLow1, fBGHist1, fBGSlider1, fGateAxis, fMatrix, and fProjectionCanvas.

Referenced by DoAllGates(), and DoSlider().

◆ MakeBGHisto2()

void TBGSubtraction::MakeBGHisto2 ( )

Definition at line 930 of file TBGSubtraction.cxx.

References fBGEntryHigh2, fBGEntryLow2, fBGHist2, fBGSlider2, fGateAxis, and fMatrix.

Referenced by DoAllGates(), and DoSlider().

◆ MakeConnections()

void TBGSubtraction::MakeConnections ( )
private

Connect Canvases to recognize that they have been zoomed This function includes setting the slider, and drawing the gate markers.

Definition at line 44 of file TBGSubtraction.cxx.

References fAutoUpdateCheckButton, fAxisCombo, fBGCheckButton1, fBGCheckButton2, fBGEntryHigh1, fBGEntryHigh2, fBGEntryLow1, fBGEntryLow2, fBGParamEntry, fBGSlider1, fBGSlider2, fBinningSlider, fGateCanvas, fGateEntryHigh, fGateEntryLow, fGateSlider, fPeakCombo, fPeakFitButton, fPeakSlider, fProjectionCanvas, and fWrite2FileButton.

Referenced by TBGSubtraction().

◆ MakeGateHisto()

void TBGSubtraction::MakeGateHisto ( )

Definition at line 887 of file TBGSubtraction.cxx.

References fAxisCombo, fGateAxis, fGateEntryHigh, fGateEntryLow, fGateHist, fGateSlider, and fMatrix.

Referenced by DoAllGates(), and DoSlider().

◆ operator=() [1/2]

TBGSubtraction & TBGSubtraction::operator= ( const TBGSubtraction & )
delete

◆ operator=() [2/2]

TBGSubtraction & TBGSubtraction::operator= ( TBGSubtraction && )
delete

◆ PeakComboSelected()

void TBGSubtraction::PeakComboSelected ( )

◆ ProjectionStatusInfo()

void TBGSubtraction::ProjectionStatusInfo ( Int_t event,
Int_t px,
Int_t py,
TObject * selected )

Definition at line 1159 of file TBGSubtraction.cxx.

References fProjectionCanvas, and StatusInfo().

◆ RebinProjection()

void TBGSubtraction::RebinProjection ( )
private

Definition at line 1189 of file TBGSubtraction.cxx.

References DrawPeakMarkers(), fBinningSlider, fGateCanvas, fSubtractedBinHist, and fSubtractedHist.

Referenced by DoSlider().

◆ ResetInterface()

◆ SetStatusFromUpdateCheckButton()

void TBGSubtraction::SetStatusFromUpdateCheckButton ( )

◆ StatusInfo()

void TBGSubtraction::StatusInfo ( Int_t event,
Int_t px,
Int_t py,
TObject * selected )
private

Definition at line 1165 of file TBGSubtraction.cxx.

References fProjectionStatus.

Referenced by GateStatusInfo(), and ProjectionStatusInfo().

◆ UpdateBackground()

void TBGSubtraction::UpdateBackground ( )

◆ UpdateBGSlider1()

void TBGSubtraction::UpdateBGSlider1 ( )
private

Definition at line 474 of file TBGSubtraction.cxx.

References fBGEntryHigh1, fBGEntryLow1, and fBGSlider1.

Referenced by DoEntry(), and UpdateProjectionSliders().

◆ UpdateBGSlider2()

void TBGSubtraction::UpdateBGSlider2 ( )
private

Definition at line 480 of file TBGSubtraction.cxx.

References fBGEntryHigh2, fBGEntryLow2, and fBGSlider2.

Referenced by DoEntry(), and UpdateProjectionSliders().

◆ UpdateBinningSlider()

void TBGSubtraction::UpdateBinningSlider ( )
private

Definition at line 505 of file TBGSubtraction.cxx.

References fBinningSlider, and fMaxBinning.

Referenced by ResetInterface().

◆ UpdateGateSlider()

void TBGSubtraction::UpdateGateSlider ( )
private

Definition at line 468 of file TBGSubtraction.cxx.

References fGateEntryHigh, fGateEntryLow, and fGateSlider.

Referenced by DoEntry(), and UpdateProjectionSliders().

◆ UpdatePeakSliders()

void TBGSubtraction::UpdatePeakSliders ( )

◆ UpdateProjectionSliders()

void TBGSubtraction::UpdateProjectionSliders ( )

◆ WriteHistograms()

void TBGSubtraction::WriteHistograms ( )

Member Data Documentation

◆ fAutoUpdateCheckButton

TGCheckButton* TBGSubtraction::fAutoUpdateCheckButton {nullptr}
private

◆ fAxisCombo

TGComboBox* TBGSubtraction::fAxisCombo {nullptr}
private

◆ fBGCheckButton1

TGCheckButton* TBGSubtraction::fBGCheckButton1 {nullptr}
private

◆ fBGCheckButton2

TGCheckButton* TBGSubtraction::fBGCheckButton2 {nullptr}
private

◆ fBGEntryFrame1

TGHorizontalFrame* TBGSubtraction::fBGEntryFrame1 {nullptr}
private

Definition at line 140 of file TBGSubtraction.h.

Referenced by BuildInterface().

◆ fBGEntryFrame2

TGHorizontalFrame* TBGSubtraction::fBGEntryFrame2 {nullptr}
private

Definition at line 141 of file TBGSubtraction.h.

Referenced by BuildInterface().

◆ fBGEntryHigh1

TGNumberEntry* TBGSubtraction::fBGEntryHigh1 {nullptr}
private

◆ fBGEntryHigh2

TGNumberEntry* TBGSubtraction::fBGEntryHigh2 {nullptr}
private

◆ fBGEntryLow1

TGNumberEntry* TBGSubtraction::fBGEntryLow1 {nullptr}
private

◆ fBGEntryLow2

TGNumberEntry* TBGSubtraction::fBGEntryLow2 {nullptr}
private

◆ fBGHist1

TH1* TBGSubtraction::fBGHist1 {nullptr}
private

Definition at line 98 of file TBGSubtraction.h.

Referenced by DoGateProjection(), MakeBGHisto1(), and WriteHistograms().

◆ fBGHist2

TH1* TBGSubtraction::fBGHist2 {nullptr}
private

Definition at line 99 of file TBGSubtraction.h.

Referenced by DoGateProjection(), MakeBGHisto2(), and WriteHistograms().

◆ fBGParamEntry

TGNumberEntry* TBGSubtraction::fBGParamEntry {nullptr}
private

◆ fBGParamFrame

TGHorizontalFrame* TBGSubtraction::fBGParamFrame {nullptr}
private

Definition at line 138 of file TBGSubtraction.h.

Referenced by BuildInterface().

◆ fBGParamLabel

TGLabel* TBGSubtraction::fBGParamLabel {nullptr}
private

Definition at line 114 of file TBGSubtraction.h.

Referenced by BuildInterface().

◆ fBGSlider1

TGDoubleHSlider* TBGSubtraction::fBGSlider1 {nullptr}
private

◆ fBGSlider2

TGDoubleHSlider* TBGSubtraction::fBGSlider2 {nullptr}
private

◆ fBinningFrame

TGHorizontalFrame* TBGSubtraction::fBinningFrame {nullptr}
private

Definition at line 137 of file TBGSubtraction.h.

Referenced by BuildInterface().

◆ fBinningLabel

TGLabel* TBGSubtraction::fBinningLabel {nullptr}
private

Definition at line 115 of file TBGSubtraction.h.

Referenced by BuildInterface().

◆ fBinningSlider

TGHSlider* TBGSubtraction::fBinningSlider {nullptr}
private

◆ fBly

TGLayoutHints* TBGSubtraction::fBly {nullptr}
private

Definition at line 120 of file TBGSubtraction.h.

Referenced by BuildInterface().

◆ fBly1

TGLayoutHints* TBGSubtraction::fBly1 {nullptr}
private

Definition at line 121 of file TBGSubtraction.h.

Referenced by BuildInterface().

◆ fButtonFrame

TGHorizontalFrame* TBGSubtraction::fButtonFrame {nullptr}
private

Definition at line 143 of file TBGSubtraction.h.

Referenced by BuildInterface().

◆ fCurrentFile

TFile* TBGSubtraction::fCurrentFile {nullptr}
private

Definition at line 160 of file TBGSubtraction.h.

Referenced by TBGSubtraction().

◆ fDescriptionFrame

TGHorizontalFrame* TBGSubtraction::fDescriptionFrame {nullptr}
private

Definition at line 142 of file TBGSubtraction.h.

Referenced by BuildInterface().

◆ fForceUpdate

Bool_t TBGSubtraction::fForceUpdate {true}
private

Definition at line 164 of file TBGSubtraction.h.

◆ fGateAxis

Int_t TBGSubtraction::fGateAxis {0}
private

◆ fGateCanvas

TRootEmbeddedCanvas* TBGSubtraction::fGateCanvas {nullptr}
private

◆ fGateEntryFrame

TGHorizontalFrame* TBGSubtraction::fGateEntryFrame {nullptr}
private

Definition at line 139 of file TBGSubtraction.h.

Referenced by BuildInterface().

◆ fGateEntryHigh

TGNumberEntry* TBGSubtraction::fGateEntryHigh {nullptr}
private

◆ fGateEntryLow

TGNumberEntry* TBGSubtraction::fGateEntryLow {nullptr}
private

◆ fGateFrame

TGVerticalFrame* TBGSubtraction::fGateFrame {nullptr}
private

Definition at line 134 of file TBGSubtraction.h.

Referenced by BuildInterface().

◆ fGateHist

TH1* TBGSubtraction::fGateHist {nullptr}
private

Definition at line 97 of file TBGSubtraction.h.

Referenced by DoGateProjection(), MakeGateHisto(), and WriteHistograms().

◆ fGateSlider

TGDoubleHSlider* TBGSubtraction::fGateSlider {nullptr}
private

◆ fHighBGMarker1

GMarker* TBGSubtraction::fHighBGMarker1 {nullptr}
private

Definition at line 153 of file TBGSubtraction.h.

Referenced by ~TBGSubtraction(), and DrawBGMarkers1().

◆ fHighBGMarker2

GMarker* TBGSubtraction::fHighBGMarker2 {nullptr}
private

Definition at line 155 of file TBGSubtraction.h.

Referenced by ~TBGSubtraction(), and DrawBGMarkers2().

◆ fHighGateMarker

GMarker* TBGSubtraction::fHighGateMarker {nullptr}
private

Definition at line 151 of file TBGSubtraction.h.

Referenced by ~TBGSubtraction(), and DrawGateMarkers().

◆ fHighPeakMarker

GMarker* TBGSubtraction::fHighPeakMarker {nullptr}
private

Definition at line 157 of file TBGSubtraction.h.

Referenced by ~TBGSubtraction(), and DrawPeakMarkers().

◆ fHistogramDescription

TGTextEntry* TBGSubtraction::fHistogramDescription {nullptr}
private

Definition at line 126 of file TBGSubtraction.h.

Referenced by BuildInterface(), and WriteHistograms().

◆ fLayoutCanvases

TGLayoutHints* TBGSubtraction::fLayoutCanvases {nullptr}
private

Definition at line 122 of file TBGSubtraction.h.

Referenced by BuildInterface().

◆ fLayoutParam

TGLayoutHints* TBGSubtraction::fLayoutParam {nullptr}
private

Definition at line 123 of file TBGSubtraction.h.

Referenced by BuildInterface().

◆ fLowBGMarker1

GMarker* TBGSubtraction::fLowBGMarker1 {nullptr}
private

Definition at line 152 of file TBGSubtraction.h.

Referenced by ~TBGSubtraction(), and DrawBGMarkers1().

◆ fLowBGMarker2

GMarker* TBGSubtraction::fLowBGMarker2 {nullptr}
private

Definition at line 154 of file TBGSubtraction.h.

Referenced by ~TBGSubtraction(), and DrawBGMarkers2().

◆ fLowGateMarker

GMarker* TBGSubtraction::fLowGateMarker {nullptr}
private

Definition at line 150 of file TBGSubtraction.h.

Referenced by ~TBGSubtraction(), and DrawGateMarkers().

◆ fLowPeakMarker

GMarker* TBGSubtraction::fLowPeakMarker {nullptr}
private

Definition at line 156 of file TBGSubtraction.h.

Referenced by ~TBGSubtraction(), and DrawPeakMarkers().

◆ fMain

TGMainFrame* TBGSubtraction::fMain {nullptr}
private

Definition at line 92 of file TBGSubtraction.h.

◆ fMatrix

TH2* TBGSubtraction::fMatrix {nullptr}
private

◆ fMaxBinning

Int_t TBGSubtraction::fMaxBinning {20}
private

maximum binning possible with binning slider (hard-coded, for now?)

Definition at line 174 of file TBGSubtraction.h.

Referenced by BuildInterface(), and UpdateBinningSlider().

◆ fPeak

TSinglePeak* TBGSubtraction::fPeak {nullptr}
private

the peak to be fit (will be a class that inherits from TSinglePeak)

Definition at line 171 of file TBGSubtraction.h.

Referenced by DoPeakFit(), DrawPeak(), and PeakComboSelected().

◆ fPeakCombo

TGComboBox* TBGSubtraction::fPeakCombo {nullptr}
private

◆ fPeakFitButton

TGTextButton* TBGSubtraction::fPeakFitButton {nullptr}
private

◆ fPeakFitFrame

TGHorizontalFrame* TBGSubtraction::fPeakFitFrame {nullptr}
private

Definition at line 136 of file TBGSubtraction.h.

Referenced by BuildInterface().

◆ fPeakFitter

TPeakFitter* TBGSubtraction::fPeakFitter {nullptr}
private

the peak fitter that fPeak is added to

Definition at line 172 of file TBGSubtraction.h.

Referenced by DoPeakFit(), and PeakComboSelected().

◆ fPeakHighLimit

Double_t TBGSubtraction::fPeakHighLimit {0.}
private

upper limit for peak slider range

Definition at line 166 of file TBGSubtraction.h.

Referenced by DoGateCanvasZoomed(), ResetInterface(), and UpdatePeakSliders().

◆ fPeakHighValue

Double_t TBGSubtraction::fPeakHighValue {0.}
private

high range for fit

Definition at line 168 of file TBGSubtraction.h.

Referenced by DoGateCanvasZoomed(), DoPeakFit(), DoSlider(), DrawPeakMarkers(), ResetInterface(), and UpdatePeakSliders().

◆ fPeakLowLimit

Double_t TBGSubtraction::fPeakLowLimit {0.}
private

lower limit for peak slider range

Definition at line 165 of file TBGSubtraction.h.

Referenced by DoGateCanvasZoomed(), ResetInterface(), and UpdatePeakSliders().

◆ fPeakLowValue

Double_t TBGSubtraction::fPeakLowValue {0.}
private

low range for fit

Definition at line 167 of file TBGSubtraction.h.

Referenced by DoGateCanvasZoomed(), DoPeakFit(), DoSlider(), DrawPeakMarkers(), ResetInterface(), and UpdatePeakSliders().

◆ fPeakMarker

GMarker* TBGSubtraction::fPeakMarker {nullptr}
private

Definition at line 158 of file TBGSubtraction.h.

Referenced by ~TBGSubtraction(), and DrawPeakMarkers().

◆ fPeakSlider

TGTripleHSlider* TBGSubtraction::fPeakSlider {nullptr}
private

◆ fPeakValue

Double_t TBGSubtraction::fPeakValue {0.}
private

centroid for fit

Definition at line 169 of file TBGSubtraction.h.

Referenced by DoGateCanvasZoomed(), DoPeakFit(), DoSlider(), DrawPeakMarkers(), ResetInterface(), and UpdatePeakSliders().

◆ fProjection

TH1* TBGSubtraction::fProjection {nullptr}
private

◆ fProjectionCanvas

TRootEmbeddedCanvas* TBGSubtraction::fProjectionCanvas {nullptr}
private

◆ fProjectionFrame

TGVerticalFrame* TBGSubtraction::fProjectionFrame {nullptr}
private

Definition at line 135 of file TBGSubtraction.h.

Referenced by BuildInterface().

◆ fProjectionStatus

TGStatusBar* TBGSubtraction::fProjectionStatus {nullptr}
private

Definition at line 131 of file TBGSubtraction.h.

Referenced by BuildInterface(), and StatusInfo().

◆ fSubtractedBinHist

TH1* TBGSubtraction::fSubtractedBinHist {nullptr}
private

◆ fSubtractedHist

TH1* TBGSubtraction::fSubtractedHist {nullptr}
private

Definition at line 100 of file TBGSubtraction.h.

Referenced by DoGateProjection(), RebinProjection(), and WriteHistograms().

◆ fWrite2FileButton

TGTextButton* TBGSubtraction::fWrite2FileButton {nullptr}
private

◆ fWrite2FileName

TGTextEntry* TBGSubtraction::fWrite2FileName {nullptr}
private

Definition at line 125 of file TBGSubtraction.h.

Referenced by BuildInterface(), and WriteHistograms().