Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TPCDaqDefs.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TPCDaqDefs.h
1
#ifndef TPC_TPCDAQDEFS_H
2
#define TPC_TPCDAQDEFS_H
3
4
#include <stdint.h>
5
#include <map>
6
#include <string>
7
#include <utility>
// std::pair, std::make_pair
8
#include <vector>
9
10
class
TCanvas;
11
class
TPaveText;
12
13
namespace
TPCDaqDefs
14
{
16
namespace
FEEv1
17
{
18
static
const
unsigned
int
kPACKET_ID
= 1024;
19
static
const
unsigned
int
kPACKET_LENGTH
= 137;
20
static
const
unsigned
int
kN_CHANNELS
= 256;
21
static
const
unsigned
int
kSAMPLE_LENGTH
= 128;
22
23
static
const
unsigned
int
kMaxPadX
= 50;
24
static
const
unsigned
int
kMaxPadY
= 12;
25
std::pair<int, int>
SAMPAChan2PadXY
(uint32_t fee_channel);
26
27
class
SampleFit_PowerLawDoubleExp_PDFMaker
28
{
29
public
:
30
SampleFit_PowerLawDoubleExp_PDFMaker
();
31
~SampleFit_PowerLawDoubleExp_PDFMaker
();
32
explicit
SampleFit_PowerLawDoubleExp_PDFMaker
(
const
SampleFit_PowerLawDoubleExp_PDFMaker
&) =
delete
;
33
SampleFit_PowerLawDoubleExp_PDFMaker
&
operator=
(
const
SampleFit_PowerLawDoubleExp_PDFMaker
&) =
delete
;
34
void
MakeSectionPage
(
const
std::string
&
title
);
35
private
:
36
TCanvas *
m_canvas
;
37
TPaveText *
m_pavedtext
;
38
};
39
41
bool
SampleFit_PowerLawDoubleExp
(
//
42
const
std::vector<double> &samples,
//
43
double
&peak,
44
double
&peak_sample,
45
double
&
pedestal
,
46
std::map<int, double> ¶meters_io,
47
const
int
verbosity
= 0);
48
49
// Abhisek's power-law + exp signal shape model
50
double
51
SignalShape_PowerLawExp
(
double
*
x
,
double
*par);
52
double
53
SignalShape_PowerLawDoubleExp
(
double
*
x
,
double
*par);
54
55
}
// namespace FEEv1
56
57
}
// namespace TPCDaqDefs
58
59
#endif //TPC_TPCDAQDEFS_H
coresoftware
blob
master
offline
packages
tpcdaq
TPCDaqDefs.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:08
using
1.8.2 with
sPHENIX GitHub integration