KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVSpiderIdentificator Class Reference

Detailed Description

Semi-automatic identification grid generator.

Definition at line 27 of file KVSpiderIdentificator.h.

#include <KVSpiderIdentificator.h>

Inheritance diagram for KVSpiderIdentificator:

Public Types

enum  MatrixType { kSiCsI , kSiSi , kChIoSi , kOther }
 
- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 

Public Member Functions

 KVSpiderIdentificator ()
 
 KVSpiderIdentificator (TH2F *h_, Double_t Xm=-1, Double_t Ym=-1, Double_t pdx=-1, Double_t pdy=-1, Int_t type=kSiCsI)
 
virtual ~KVSpiderIdentificator ()
 
void CalculateTheta ()
 
void Clear (Option_t *option="")
 
void Close ()
 
TH2FCreateHistogram (double th_, double alpha_=-1.)
 
TListCreateHistograms (double thmin_, double thmax_, int nth_, bool cos_=true, double alpha_=-1.)
 
void Draw (Option_t *opt_="")
 
KVSpiderLineGetLine (int z_)
 
bool GetLines (int npoints_=1, double alpha_=1.)
 
TListGetListOfLines ()
 
TH1FGetProjection (TH2F *h_, KVDroite *d_, int rebin_=10)
 
double GetTheta0 ()
 
double GetX0 ()
 
double GetXm ()
 
double GetY0 ()
 
double GetYm ()
 
void Increment (Float_t x)
 
void Init (TH2F *h_=0, Double_t Xm=-1, Double_t Ym=-1, Double_t X0=-1, Double_t Y0=-1)
 
bool ProcessIdentification ()
 
void SaveAsPdf (Option_t *opt_="", const Char_t *path_=".")
 
bool SearchPeack (TH1F *h1_, double theta_, int create_, double sigma_=2., double peakmin_=1., int rebin_=10, int smooth_=5, TString opt_="goff")
 
void SetAlpha (double aa_)
 
void SetHistogram (TH2F *h_=0, Double_t Xm=-1, Double_t Ym=-1)
 
void SetMode (bool sicsi_=true)
 
void SetNangles (Int_t up, Int_t down)
 
void SetParameters (double bining_=1.)
 
void SetX0 (double x0_)
 
void SetXm (double xm_)
 
void SetY0 (double y0_)
 
void SetYm (double ym_)
 
void UseFit (bool fit)
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 
void Clear (Option_t *option="") override
 
TObjectClone (const char *newname="") const override
 
Int_t Compare (const TObject *obj) const override
 
void Copy (TObject &named) const override
 
virtual void FillBuffer (char *&buffer)
 
const char * GetName () const override
 
const char * GetTitle () const override
 
ULong_t Hash () const override
 
TClassIsA () const override
 
Bool_t IsSortable () const override
 
void ls (Option_t *option="") const override
 
TNamedoperator= (const TNamed &rhs)
 
void Print (Option_t *option="") const override
 
virtual void SetName (const char *name)
 
virtual void SetNameTitle (const char *name, const char *title)
 
virtual void SetTitle (const char *title="")
 
virtual Int_t Sizeof () const
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 
virtual ~TObject ()
 
void AbstractMethod (const char *method) const
 
virtual void AppendPad (Option_t *option="")
 
virtual void Browse (TBrowser *b)
 
ULong_t CheckedHash ()
 
virtual const char * ClassName () const
 
virtual void Delete (Option_t *option="")
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
virtual void DrawClass () const
 
virtual TObjectDrawClone (Option_t *option="") const
 
virtual void Dump () const
 
virtual void Error (const char *method, const char *msgfmt,...) const
 
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 
virtual TObjectFindObject (const char *name) const
 
virtual TObjectFindObject (const TObject *obj) const
 
virtual Option_tGetDrawOption () const
 
virtual const char * GetIconName () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 
virtual Bool_t HandleTimer (TTimer *timer)
 
Bool_t HasInconsistentHash () const
 
virtual void Info (const char *method, const char *msgfmt,...) const
 
virtual Bool_t InheritsFrom (const char *classname) const
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 
virtual void Inspect () const
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 
virtual Bool_t IsEqual (const TObject *obj) const
 
virtual Bool_t IsFolder () const
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 
virtual Bool_t Notify ()
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *vp)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, void *vp)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 
virtual void Paint (Option_t *option="")
 
virtual void Pop ()
 
virtual Int_t Read (const char *name)
 
virtual void RecursiveRemove (TObject *obj)
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 
virtual void SetDrawOption (Option_t *option="")
 
virtual void SetUniqueID (UInt_t uid)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 

Private Member Functions

bool CheckPath (const Char_t *path_)
 
void SetDefault ()
 
bool TestHistogram (TH1 *h_=0)
 

Private Attributes

TRandom _alea
 
double _alpha
 
bool _auto
 
double _bfactor
 
bool _debug
 
TList _dlist
 
KVDroite_dtemp
 
double _ftheta
 
TH1F_hfound
 
TList _hlist
 
TH2F_htemp
 
TH2F_htot
 
TH1F_hvalid
 
TGraph_invalid
 
bool _is_initialized
 
TList _llist
 
int _nAngleDown
 
int _nAngleUp
 
double _otheta
 
TList _plist
 
bool _sicsi
 
KVSpiderLine_spline
 
TSpectrum _ss
 
bool _useFit
 
double _x0
 
double _xm
 
double _xmax
 
double _y0
 
double _ym
 
double _ymax
 
Int_t fType
 

Additional Inherited Members

- Static Public Member Functions inherited from TNamed
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 
static Bool_t GetObjectStat ()
 
static void SetDtorOnly (void *obj)
 
static void SetObjectStat (Bool_t stat)
 
- Public Attributes inherited from TObject
 kBitMask
 
 kCanDelete
 
 kCannotPick
 
 kHasUUID
 
 kInconsistent
 
 kInvalidObject
 
 kIsOnHeap
 
 kIsReferenced
 
 kMustCleanup
 
 kNoContextMenu
 
 kNotDeleted
 
 kObjInCanvas
 
 kOverwrite
 
 kSingleKey
 
 kWriteDelete
 
 kZombie
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 
void MakeZombie ()
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 

Member Enumeration Documentation

◆ MatrixType

Enumerator
kSiCsI 
kSiSi 
kChIoSi 
kOther 

Definition at line 73 of file KVSpiderIdentificator.h.

Constructor & Destructor Documentation

◆ KVSpiderIdentificator() [1/2]

KVSpiderIdentificator::KVSpiderIdentificator ( )

Definition at line 17 of file KVSpiderIdentificator.cpp.

◆ KVSpiderIdentificator() [2/2]

KVSpiderIdentificator::KVSpiderIdentificator ( TH2F h_,
Double_t  Xm = -1,
Double_t  Ym = -1,
Double_t  pdx = -1,
Double_t  pdy = -1,
Int_t  type = kSiCsI 
)

Definition at line 27 of file KVSpiderIdentificator.cpp.

◆ ~KVSpiderIdentificator()

KVSpiderIdentificator::~KVSpiderIdentificator ( )
virtual

Definition at line 40 of file KVSpiderIdentificator.cpp.

Member Function Documentation

◆ CalculateTheta()

void KVSpiderIdentificator::CalculateTheta ( )

Definition at line 173 of file KVSpiderIdentificator.cpp.

◆ CheckPath()

bool KVSpiderIdentificator::CheckPath ( const Char_t path_)
private

Definition at line 184 of file KVSpiderIdentificator.cpp.

◆ Clear()

void KVSpiderIdentificator::Clear ( Option_t option = "")
virtual

Reimplemented from TObject.

Definition at line 80 of file KVSpiderIdentificator.cpp.

◆ Close()

void KVSpiderIdentificator::Close ( )

Definition at line 68 of file KVSpiderIdentificator.cpp.

◆ CreateHistogram()

TH2F * KVSpiderIdentificator::CreateHistogram ( double  th_,
double  alpha_ = -1. 
)

Definition at line 277 of file KVSpiderIdentificator.cpp.

◆ CreateHistograms()

TList * KVSpiderIdentificator::CreateHistograms ( double  thmin_,
double  thmax_,
int  nth_,
bool  cos_ = true,
double  alpha_ = -1. 
)

Definition at line 289 of file KVSpiderIdentificator.cpp.

◆ Draw()

void KVSpiderIdentificator::Draw ( Option_t opt_ = "")
virtual

Reimplemented from TObject.

Definition at line 741 of file KVSpiderIdentificator.cpp.

◆ GetLine()

KVSpiderLine * KVSpiderIdentificator::GetLine ( int  z_)

Definition at line 829 of file KVSpiderIdentificator.cpp.

◆ GetLines()

bool KVSpiderIdentificator::GetLines ( int  npoints_ = 1,
double  alpha_ = 1. 
)

Definition at line 705 of file KVSpiderIdentificator.cpp.

◆ GetListOfLines()

TList * KVSpiderIdentificator::GetListOfLines ( )

Definition at line 819 of file KVSpiderIdentificator.cpp.

◆ GetProjection()

TH1F * KVSpiderIdentificator::GetProjection ( TH2F h_,
KVDroite d_,
int  rebin_ = 10 
)

Definition at line 196 of file KVSpiderIdentificator.cpp.

◆ GetTheta0()

double KVSpiderIdentificator::GetTheta0 ( )
inline

Definition at line 151 of file KVSpiderIdentificator.h.

◆ GetX0()

double KVSpiderIdentificator::GetX0 ( )
inline

Definition at line 135 of file KVSpiderIdentificator.h.

◆ GetXm()

double KVSpiderIdentificator::GetXm ( )
inline

Definition at line 143 of file KVSpiderIdentificator.h.

◆ GetY0()

double KVSpiderIdentificator::GetY0 ( )
inline

Definition at line 139 of file KVSpiderIdentificator.h.

◆ GetYm()

double KVSpiderIdentificator::GetYm ( )
inline

Definition at line 147 of file KVSpiderIdentificator.h.

◆ Increment()

void KVSpiderIdentificator::Increment ( Float_t  x)
inline

Used by SpiderIdentification and KVSpIdGUI to send signals to TGHProgressBar about the progress of the identification

Definition at line 162 of file KVSpiderIdentificator.h.

◆ Init()

void KVSpiderIdentificator::Init ( TH2F h_ = 0,
Double_t  Xm = -1,
Double_t  Ym = -1,
Double_t  X0 = -1,
Double_t  Y0 = -1 
)

Definition at line 106 of file KVSpiderIdentificator.cpp.

◆ ProcessIdentification()

bool KVSpiderIdentificator::ProcessIdentification ( )

Definition at line 595 of file KVSpiderIdentificator.cpp.

◆ SaveAsPdf()

void KVSpiderIdentificator::SaveAsPdf ( Option_t opt_ = "",
const Char_t path_ = "." 
)

Definition at line 800 of file KVSpiderIdentificator.cpp.

◆ SearchPeack()

bool KVSpiderIdentificator::SearchPeack ( TH1F h1_,
double  theta_,
int  create_,
double  sigma_ = 2.,
double  peakmin_ = 1.,
int  rebin_ = 10,
int  smooth_ = 5,
TString  opt_ = "goff" 
)

Definition at line 386 of file KVSpiderIdentificator.cpp.

◆ SetAlpha()

void KVSpiderIdentificator::SetAlpha ( double  aa_)
inline

Definition at line 126 of file KVSpiderIdentificator.h.

◆ SetDefault()

void KVSpiderIdentificator::SetDefault ( )
private

Definition at line 50 of file KVSpiderIdentificator.cpp.

◆ SetHistogram()

void KVSpiderIdentificator::SetHistogram ( TH2F h_ = 0,
Double_t  Xm = -1,
Double_t  Ym = -1 
)

Definition at line 248 of file KVSpiderIdentificator.cpp.

◆ SetMode()

void KVSpiderIdentificator::SetMode ( bool  sicsi_ = true)
inline

Definition at line 88 of file KVSpiderIdentificator.h.

◆ SetNangles()

void KVSpiderIdentificator::SetNangles ( Int_t  up,
Int_t  down 
)
inline

Definition at line 156 of file KVSpiderIdentificator.h.

◆ SetParameters()

void KVSpiderIdentificator::SetParameters ( double  bining_ = 1.)

Definition at line 96 of file KVSpiderIdentificator.cpp.

◆ SetX0()

void KVSpiderIdentificator::SetX0 ( double  x0_)
inline

Definition at line 110 of file KVSpiderIdentificator.h.

◆ SetXm()

void KVSpiderIdentificator::SetXm ( double  xm_)
inline

Definition at line 118 of file KVSpiderIdentificator.h.

◆ SetY0()

void KVSpiderIdentificator::SetY0 ( double  y0_)
inline

Definition at line 114 of file KVSpiderIdentificator.h.

◆ SetYm()

void KVSpiderIdentificator::SetYm ( double  ym_)
inline

Definition at line 122 of file KVSpiderIdentificator.h.

◆ TestHistogram()

bool KVSpiderIdentificator::TestHistogram ( TH1 h_ = 0)
private

Definition at line 259 of file KVSpiderIdentificator.cpp.

◆ UseFit()

void KVSpiderIdentificator::UseFit ( bool  fit)
inline

Definition at line 130 of file KVSpiderIdentificator.h.

Member Data Documentation

◆ _alea

TRandom KVSpiderIdentificator::_alea
private

Definition at line 56 of file KVSpiderIdentificator.h.

◆ _alpha

double KVSpiderIdentificator::_alpha
private

Definition at line 46 of file KVSpiderIdentificator.h.

◆ _auto

bool KVSpiderIdentificator::_auto
private

Definition at line 33 of file KVSpiderIdentificator.h.

◆ _bfactor

double KVSpiderIdentificator::_bfactor
private

Definition at line 37 of file KVSpiderIdentificator.h.

◆ _debug

bool KVSpiderIdentificator::_debug
private

Definition at line 32 of file KVSpiderIdentificator.h.

◆ _dlist

TList KVSpiderIdentificator::_dlist
private

Definition at line 52 of file KVSpiderIdentificator.h.

◆ _dtemp

KVDroite* KVSpiderIdentificator::_dtemp
private

Definition at line 61 of file KVSpiderIdentificator.h.

◆ _ftheta

double KVSpiderIdentificator::_ftheta
private

Definition at line 38 of file KVSpiderIdentificator.h.

◆ _hfound

TH1F* KVSpiderIdentificator::_hfound
private

Definition at line 66 of file KVSpiderIdentificator.h.

◆ _hlist

TList KVSpiderIdentificator::_hlist
private

Definition at line 53 of file KVSpiderIdentificator.h.

◆ _htemp

TH2F* KVSpiderIdentificator::_htemp
private

Definition at line 68 of file KVSpiderIdentificator.h.

◆ _htot

TH2F* KVSpiderIdentificator::_htot
private

Definition at line 65 of file KVSpiderIdentificator.h.

◆ _hvalid

TH1F* KVSpiderIdentificator::_hvalid
private

Definition at line 67 of file KVSpiderIdentificator.h.

◆ _invalid

TGraph* KVSpiderIdentificator::_invalid
private

Definition at line 60 of file KVSpiderIdentificator.h.

◆ _is_initialized

bool KVSpiderIdentificator::_is_initialized
private

Definition at line 31 of file KVSpiderIdentificator.h.

◆ _llist

TList KVSpiderIdentificator::_llist
private

Definition at line 51 of file KVSpiderIdentificator.h.

◆ _nAngleDown

int KVSpiderIdentificator::_nAngleDown
private

Definition at line 49 of file KVSpiderIdentificator.h.

◆ _nAngleUp

int KVSpiderIdentificator::_nAngleUp
private

Definition at line 48 of file KVSpiderIdentificator.h.

◆ _otheta

double KVSpiderIdentificator::_otheta
private

Definition at line 39 of file KVSpiderIdentificator.h.

◆ _plist

TList KVSpiderIdentificator::_plist
private

Definition at line 54 of file KVSpiderIdentificator.h.

◆ _sicsi

bool KVSpiderIdentificator::_sicsi
private

Definition at line 34 of file KVSpiderIdentificator.h.

◆ _spline

KVSpiderLine* KVSpiderIdentificator::_spline
private

Definition at line 59 of file KVSpiderIdentificator.h.

◆ _ss

TSpectrum KVSpiderIdentificator::_ss
private

Definition at line 57 of file KVSpiderIdentificator.h.

◆ _useFit

bool KVSpiderIdentificator::_useFit
private

Definition at line 35 of file KVSpiderIdentificator.h.

◆ _x0

double KVSpiderIdentificator::_x0
private

Definition at line 40 of file KVSpiderIdentificator.h.

◆ _xm

double KVSpiderIdentificator::_xm
private

Definition at line 42 of file KVSpiderIdentificator.h.

◆ _xmax

double KVSpiderIdentificator::_xmax
private

Definition at line 44 of file KVSpiderIdentificator.h.

◆ _y0

double KVSpiderIdentificator::_y0
private

Definition at line 41 of file KVSpiderIdentificator.h.

◆ _ym

double KVSpiderIdentificator::_ym
private

Definition at line 43 of file KVSpiderIdentificator.h.

◆ _ymax

double KVSpiderIdentificator::_ymax
private

Definition at line 45 of file KVSpiderIdentificator.h.

◆ fType

Int_t KVSpiderIdentificator::fType
private

Definition at line 63 of file KVSpiderIdentificator.h.