KaliVeda
Toolkit for HIC analysis

Detailed Description

GUI for finding/fixing mass identification intervals.

Created by KVClassFactory on Mon Jan 23 10:03:13 2017 Author: Diego Gruyer

Definition at line 34 of file KVItvFinderDialog.h.

#include <KVItvFinderDialog.h>

Public Types

enum  {
  M_SAVE , M_NEW , M_DEL , M_MASS ,
  M_LOG , M_UNZOOM
}
 

Public Member Functions

 KVItvFinderDialog (KVIDZAFromZGrid *gg, TH2 *hh)
 
virtual ~KVItvFinderDialog ()
 
void AddInterval (double pid)
 
void ClearInterval (interval_set *itvs)
 
void DisplayPIDint ()
 
void DoClose ()
 
void DoIdentification ()
 
void DrawInterval (interval_set *itvs, bool label=0)
 
void DrawIntervals ()
 
void ExportToGrid ()
 Write all PID intervals in grid parameters "PIDRANGE", "PIDRANGE%d", etc. More...
 
void FindPIDIntervals (Int_t zz)
 
void FitIsotopes ()
 
Double_t fpeaks (Double_t *x, Double_t *par)
 
int GetNextIntevalZ ()
 
void HandleKey ()
 
void Identify ()
 KVBase::OpenContextMenu("Identify(double,double)",this);. More...
 
void Identify (double sigma, double ratio)
 
void LinearizeHisto (int nbins)
 
void MassesDown ()
 
void MassesUp ()
 
void NewInterval ()
 
void NewIntervalSet ()
 
void PrintHelp ()
 
void ProcessIdentification (Int_t zmin=-1, Int_t zmax=-1)
 
void RemoveFit ()
 Remove fit of currently selected interval set from pad. More...
 
void RemoveInterval ()
 
void SaveGrid ()
 
void SelectionITVChanged ()
 
void SetFitParameters ()
 Open dialog to modify parameters for multigauss mass fit. More...
 
void SetLogy ()
 
void SetNextIntevalZ (int zz)
 
void TestIdent ()
 fGrid->SetOnlyZId(0); More...
 
void UnzoomHisto ()
 
void UpdateLists ()
 
void UpdatePIDList ()
 
void ZoomOnCanvas ()
 Display the interval set for a given Z when the user double clicks on it. More...
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
M_SAVE 
M_NEW 
M_DEL 
M_MASS 
M_LOG 
M_UNZOOM 

Definition at line 76 of file KVItvFinderDialog.h.

Constructor & Destructor Documentation

◆ KVItvFinderDialog()

KVItvFinderDialog::KVItvFinderDialog ( KVIDZAFromZGrid *  gg,
TH2 *  hh 
)

Definition at line 45 of file KVItvFinderDialog.cpp.

◆ ~KVItvFinderDialog()

virtual KVItvFinderDialog::~KVItvFinderDialog ( )
inlinevirtual

Definition at line 86 of file KVItvFinderDialog.h.

Member Function Documentation

◆ AddInterval()

void KVItvFinderDialog::AddInterval ( double  pid)

Definition at line 700 of file KVItvFinderDialog.cpp.

◆ ClearInterval()

void KVItvFinderDialog::ClearInterval ( interval_set *  itvs)

empty an interval set, effectively removing it from the interval sets which will be saved with the grid.

we also remove any previous fits from the grid's parameters

Definition at line 421 of file KVItvFinderDialog.cpp.

◆ DisplayPIDint()

void KVItvFinderDialog::DisplayPIDint ( )

Definition at line 276 of file KVItvFinderDialog.cpp.

◆ DoClose()

void KVItvFinderDialog::DoClose ( )
inline

Definition at line 113 of file KVItvFinderDialog.h.

◆ DoIdentification()

void KVItvFinderDialog::DoIdentification ( )
inline

Definition at line 110 of file KVItvFinderDialog.h.

◆ DrawInterval()

void KVItvFinderDialog::DrawInterval ( interval_set *  itvs,
bool  label = 0 
)

Definition at line 390 of file KVItvFinderDialog.cpp.

◆ DrawIntervals()

void KVItvFinderDialog::DrawIntervals ( )

Definition at line 376 of file KVItvFinderDialog.cpp.

◆ ExportToGrid()

void KVItvFinderDialog::ExportToGrid ( )

Write all PID intervals in grid parameters "PIDRANGE", "PIDRANGE%d", etc.

Definition at line 561 of file KVItvFinderDialog.cpp.

◆ FindPIDIntervals()

void KVItvFinderDialog::FindPIDIntervals ( Int_t  zz)

Definition at line 1268 of file KVItvFinderDialog.cpp.

◆ FitIsotopes()

void KVItvFinderDialog::FitIsotopes ( )

fit the PID spectrum for the currently selected interval set (Z).

for an interval with N isotopes, we use N gaussians plus an exponential (decreasing) background. each gaussian has the same width. the centroids of the gaussians are first fixed to the positions of the PID markers, the intensity and width of the peaks (plus the background) are fitted. then another fit is performed without constraining the centroids.

finally the PID markers (PID of each interval) are modified according to the fitted centroid positions.

Definition at line 1028 of file KVItvFinderDialog.cpp.

◆ fpeaks()

Double_t KVItvFinderDialog::fpeaks ( Double_t *  x,
Double_t *  par 
)

Definition at line 1318 of file KVItvFinderDialog.cpp.

◆ GetNextIntevalZ()

int KVItvFinderDialog::GetNextIntevalZ ( )
inline

Definition at line 91 of file KVItvFinderDialog.h.

◆ HandleKey()

void KVItvFinderDialog::HandleKey ( )

Definition at line 1233 of file KVItvFinderDialog.cpp.

◆ Identify() [1/2]

void KVItvFinderDialog::Identify ( )

KVBase::OpenContextMenu("Identify(double,double)",this);.

Definition at line 469 of file KVItvFinderDialog.cpp.

◆ Identify() [2/2]

void KVItvFinderDialog::Identify ( double  sigma,
double  ratio 
)

Definition at line 479 of file KVItvFinderDialog.cpp.

◆ LinearizeHisto()

void KVItvFinderDialog::LinearizeHisto ( int  nbins)

Definition at line 459 of file KVItvFinderDialog.cpp.

◆ MassesDown()

void KVItvFinderDialog::MassesDown ( )

Definition at line 911 of file KVItvFinderDialog.cpp.

◆ MassesUp()

void KVItvFinderDialog::MassesUp ( )

Definition at line 869 of file KVItvFinderDialog.cpp.

◆ NewInterval()

void KVItvFinderDialog::NewInterval ( )

Definition at line 595 of file KVItvFinderDialog.cpp.

◆ NewIntervalSet()

void KVItvFinderDialog::NewIntervalSet ( )

Definition at line 800 of file KVItvFinderDialog.cpp.

◆ PrintHelp()

void KVItvFinderDialog::PrintHelp ( )

Definition at line 1257 of file KVItvFinderDialog.cpp.

◆ ProcessIdentification()

void KVItvFinderDialog::ProcessIdentification ( Int_t  zmin = -1,
Int_t  zmax = -1 
)

Definition at line 1334 of file KVItvFinderDialog.cpp.

◆ RemoveFit()

void KVItvFinderDialog::RemoveFit ( )

Remove fit of currently selected interval set from pad.

Definition at line 1207 of file KVItvFinderDialog.cpp.

◆ RemoveInterval()

void KVItvFinderDialog::RemoveInterval ( )

Definition at line 834 of file KVItvFinderDialog.cpp.

◆ SaveGrid()

void KVItvFinderDialog::SaveGrid ( )

Definition at line 507 of file KVItvFinderDialog.cpp.

◆ SelectionITVChanged()

void KVItvFinderDialog::SelectionITVChanged ( )

Definition at line 295 of file KVItvFinderDialog.cpp.

◆ SetFitParameters()

void KVItvFinderDialog::SetFitParameters ( )

Open dialog to modify parameters for multigauss mass fit.

Definition at line 1189 of file KVItvFinderDialog.cpp.

◆ SetLogy()

void KVItvFinderDialog::SetLogy ( )

Definition at line 995 of file KVItvFinderDialog.cpp.

◆ SetNextIntevalZ()

void KVItvFinderDialog::SetNextIntevalZ ( int  zz)
inline

Definition at line 95 of file KVItvFinderDialog.h.

◆ TestIdent()

void KVItvFinderDialog::TestIdent ( )

fGrid->SetOnlyZId(0);

Definition at line 973 of file KVItvFinderDialog.cpp.

◆ UnzoomHisto()

void KVItvFinderDialog::UnzoomHisto ( )

Definition at line 1006 of file KVItvFinderDialog.cpp.

◆ UpdateLists()

void KVItvFinderDialog::UpdateLists ( )

Definition at line 952 of file KVItvFinderDialog.cpp.

◆ UpdatePIDList()

void KVItvFinderDialog::UpdatePIDList ( )

Definition at line 315 of file KVItvFinderDialog.cpp.

◆ ZoomOnCanvas()

void KVItvFinderDialog::ZoomOnCanvas ( )

Display the interval set for a given Z when the user double clicks on it.

Definition at line 334 of file KVItvFinderDialog.cpp.