ATLAS Offline Software
TileOFC.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TILE_OFC_H
6 #define TILE_OFC_H
7 
8 #include <vector>
9 
10 //namespace TileDspGain { int Low = 0; int High = 1; }
11 
12 //namespace TileDspRunType { int Phys = 0; int Laser = 1; int CIS = 2; }
13 
14 //namespace TileDspAlgorithm { int OF1=0; int OF2=1; }
15 
16 void Double2Int_calib( double calib_constant,
17  unsigned int &scale,
18  unsigned int &offset,
19  bool verbose=false );
20 
21 void Double2Int_ofc( int w_off_size,
22  const std::vector<double>& w_off,
23  std::vector<int> &w_dsp,
24  int &w_sum_dsp,
25  int &scale,
26  bool verbose =false );
27 
28 bool ConvertOFC(
29  const std::vector<std::vector<std::vector<std::vector<double> > > >& w_off,
30  const std::vector<std::vector<double> >& calibration,
31  int calibtype,
32  int runtype,
33  std::vector<unsigned int> &OFC,
34  bool verbose = false);
35 
36 bool Format6( const std::vector<double>& a,
37  const std::vector<double>& b,
38  const std::vector<double>& c,
39  const std::vector<double>& g,
40  const std::vector<double>& h,
41  unsigned int index_channel,
42  int phase,
43  double calibration,
44  std::vector<unsigned int> &OFC,
45  bool verbose = false);
46 
47 bool Format5( const std::vector<double>& a,
48  const std::vector<double>& b ,
49  const std::vector<double>& c,
50  const std::vector<double>& g,
51  const std::vector<double>& h,
52  std::vector<unsigned int> &OFC,
53  bool verbose = false);
54 
55 bool Format5calib(double calib,
56  std::vector<unsigned int> &OFC,
57  bool verbose = false);
58 
59 bool FormatInfo(int nsamples,
60  int calibrationtype,
61  int algorithm,
62  int runtype,
63  std::vector<unsigned int> &OFC,
64  bool verbose = false);
65 
66 bool ReadOFfile(std::vector<std::vector<std::vector<std::vector<double> > > > &w_off,
67  char * OFCfile,
68  bool verbose = false);
69 
70 
71 /*
72 bool ConvertOFC_iter( TileCalibDrawerOfc ofcDrawer,
73  std::vector<unsigned int> &OFC,
74  std::vector<std::vector<float> > calib,
75  int calibtype,
76  int runtype,
77  int algorithm,
78  bool verbose);
79 
80 bool ConvertOFC_HR( TileCalibDrawerOfc ofcDrawer,
81  TileCalibDrawerFlt phaseDrawer,
82  std::vector<unsigned int> &OFC,
83  std::vector<std::vector<float> > calib,
84  int calibtype,
85  int runtype,
86  int algorithm,
87  bool verbose);
88 */
89 
90 #endif
ReadOfcFromCool.phase
phase
Definition: ReadOfcFromCool.py:127
algorithm
std::string algorithm
Definition: hcg.cxx:82
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
CalibDbCompareRT.calibtype
string calibtype
Definition: CalibDbCompareRT.py:9
Double2Int_ofc
void Double2Int_ofc(int w_off_size, const std::vector< double > &w_off, std::vector< int > &w_dsp, int &w_sum_dsp, int &scale, bool verbose=false)
Definition: TileOFC.cxx:41
ConvertOFC
bool ConvertOFC(const std::vector< std::vector< std::vector< std::vector< double > > > > &w_off, const std::vector< std::vector< double > > &calibration, int calibtype, int runtype, std::vector< unsigned int > &OFC, bool verbose=false)
Definition: TileOFC.cxx:88
FormatInfo
bool FormatInfo(int nsamples, int calibrationtype, int algorithm, int runtype, std::vector< unsigned int > &OFC, bool verbose=false)
Definition: TileOFC.cxx:437
python.CaloCondTools.g
g
Definition: CaloCondTools.py:15
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
Double2Int_calib
void Double2Int_calib(double calib_constant, unsigned int &scale, unsigned int &offset, bool verbose=false)
Definition: TileOFC.cxx:18
Format6
bool Format6(const std::vector< double > &a, const std::vector< double > &b, const std::vector< double > &c, const std::vector< double > &g, const std::vector< double > &h, unsigned int index_channel, int phase, double calibration, std::vector< unsigned int > &OFC, bool verbose=false)
Format6.
Definition: TileOFC.cxx:270
PlotSFuncertainty.calib
calib
Definition: PlotSFuncertainty.py:110
ReadOfcFromCool.nsamples
nsamples
Definition: ReadOfcFromCool.py:115
Format5calib
bool Format5calib(double calib, std::vector< unsigned int > &OFC, bool verbose=false)
Definition: TileOFC.cxx:421
a
TList * a
Definition: liststreamerinfos.cxx:10
h
python.TriggerHandler.verbose
verbose
Definition: TriggerHandler.py:297
convertTimingResiduals.offset
offset
Definition: convertTimingResiduals.py:71
Format5
bool Format5(const std::vector< double > &a, const std::vector< double > &b, const std::vector< double > &c, const std::vector< double > &g, const std::vector< double > &h, std::vector< unsigned int > &OFC, bool verbose=false)
Format5.
Definition: TileOFC.cxx:359
python.compressB64.c
def c
Definition: compressB64.py:93
ReadOFfile
bool ReadOFfile(std::vector< std::vector< std::vector< std::vector< double > > > > &w_off, char *OFCfile, bool verbose=false)
Definition: TileOFC.cxx:468