Analysis Software
Documentation for sPHENIX simulation software
 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 
28 {
29 public:
34  void MakeSectionPage(const std::string & title);
35 private:
36  TCanvas * m_canvas;
37  TPaveText * m_pavedtext;
38 };
39 
42  const std::vector<double> &samples, //
43  double &peak,
44  double &peak_sample,
45  double &pedestal,
46  std::map<int, double> &parameters_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