Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PROTOTYPE2_FEM.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PROTOTYPE2_FEM.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef PROTOTYPE2_PROTOTYPE2FEM_H
4 #define PROTOTYPE2_PROTOTYPE2FEM_H
5 
6 #include <string>
7 #include <vector>
8 
9 namespace PROTOTYPE2_FEM
10 {
12 const int PACKET_ID = 21101;
13 
15 const int NSAMPLES = 24;
16 
18 const int NCH_IHCAL_ROWS = 4;
19 const int NCH_IHCAL_COLUMNS = 4;
20 
22 const int NCH_OHCAL_ROWS = 4;
23 const int NCH_OHCAL_COLUMNS = 4;
24 
26 const int NCH_EMCAL_ROWS = 8;
27 const int NCH_EMCAL_COLUMNS = 8;
28 
30 const int SATURATED_ADC_ERROR = 100;
31 
33 const int DEAD_CHANNEL_ERROR = 300;
34 
36 int GetHBDCh(const std::string &caloname, int i_column, int i_row);
37 
39 bool SampleFit_PowerLawExp( //
40  const std::vector<double> &samples, //
41  double &peak, //
42  double &peak_sample, //
43  double &pedstal, //
44  const int verbosity = 0);
45 
46 // Abhisek's power-law + exp signal shape model
47 double SignalShape_PowerLawExp(double *x, double *par);
48 
49 } // namespace PROTOTYPE2_FEM
50 
51 #endif