KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVZALineFinder.h
1
3
4#ifndef __KVZALINEFINDER_H
5#define __KVZALINEFINDER_H
6
7#include "KVBase.h"
8
9#include <TH2F.h>
10#include <TGraph.h>
11#include <TGraph2D.h>
12#include <TFile.h>
13#include <TMath.h>
14#include <TNamed.h>
15#include <TRandom3.h>
16#include <TSpectrum.h>
17#include <TROOT.h>
18
19#include <Riostream.h>
20#include <RQ_OBJECT.h>
21
22#include "KVIDZAGrid.h"
23
24#include <vector>
25
33class KVZALineFinder : public KVBase {
34 RQ_OBJECT("KVZALineFinder")
35
36protected:
39
43
47
50
51 std::vector<int> fAList;
52
53public:
56 virtual ~KVZALineFinder();
57 void Copy(TObject&) const;
58
59protected:
60 TH2* LinearizeHisto(Int_t nZbin = 40);
61 void FindALine(Int_t zz, Int_t width = 10);
62 void FindZLine(Int_t zz);
63 void SortLines(TList* Lines);
64 void MakeGrid();
65 void DrawGrid();
66
67public:
69 {
70 return fGeneratedGrid;
71 }
73 {
74 return fHisto;
75 }
76 void SetNbinsByZ(Int_t binByZ)
77 {
78 fBinsByZ = binByZ;
79 }
80
81 void SetAList(const char* Alist);
82 void Draw(Option_t* /*opt_*/ = "")
83 {
84 if (fLines)fLines->Execute("Draw", "\"PN\"");
85 }
86 void ProcessIdentification(Int_t zmin = -1, Int_t zmax = -1);
87
88 void Increment(Float_t x) // *SIGNAL*
89 {
90 Emit("Increment(Float_t)", x);
91 }
92 void IncrementLinear(Float_t x) // *SIGNAL*
93 {
94 Emit("IncrementLinear(Float_t)", x);
95 }
96
97
98 ClassDef(KVZALineFinder, 1) //(try to) find masse lines from charge lines
99};
100
101#endif
int Int_t
#define RQ_OBJECT(sender_class)
float Float_t
const char Option_t
#define ClassDef(name, id)
Base class for KaliVeda framework.
Definition KVBase.h:142
Identification grid with lines corresponding to different nuclear isotopes (KVIDZALine)
Definition KVIDZAGrid.h:66
(try to) find mass lines from charge lines
void Draw(Option_t *="")
KVIDZAGrid * GetGrid()
void FindALine(Int_t zz, Int_t width=10)
void SetNbinsByZ(Int_t binByZ)
TH2 * LinearizeHisto(Int_t nZbin=40)
void FindZLine(Int_t zz)
void IncrementLinear(Float_t x)
void Copy(TObject &) const
std::vector< int > fAList
virtual ~KVZALineFinder()
Destructor.
TSpectrum fSpectrum
void SetAList(const char *Alist)
void SortLines(TList *Lines)
void Increment(Float_t x)
void ProcessIdentification(Int_t zmin=-1, Int_t zmax=-1)
KVIDZAGrid * fGeneratedGrid
KVIDZAGrid * fGrid
virtual void Execute(const char *method, const char *params, Int_t *error=nullptr)
Double_t x[n]