ATLAS Offline Software
Loading...
Searching...
No Matches
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
16void Double2Int_calib( double calib_constant,
17 unsigned int &scale,
18 unsigned int &offset,
19 bool verbose=false );
20
21void 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
28bool 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
36bool 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
47bool 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
55bool Format5calib(double calib,
56 std::vector<unsigned int> &OFC,
57 bool verbose = false);
58
59bool FormatInfo(int nsamples,
60 int calibrationtype,
61 int algorithm,
62 int runtype,
63 std::vector<unsigned int> &OFC,
64 bool verbose = false);
65
66bool ReadOFfile(std::vector<std::vector<std::vector<std::vector<double> > > > &w_off,
67 char * OFCfile,
68 bool verbose = false);
69
70
71/*
72bool 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
80bool 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
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
void Double2Int_calib(double calib_constant, unsigned int &scale, unsigned int &offset, bool verbose=false)
Definition TileOFC.cxx:18
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
bool Format5calib(double calib, std::vector< unsigned int > &OFC, bool verbose=false)
Definition TileOFC.cxx:421
bool ReadOFfile(std::vector< std::vector< std::vector< std::vector< double > > > > &w_off, char *OFCfile, bool verbose=false)
Definition TileOFC.cxx:468
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
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
bool FormatInfo(int nsamples, int calibrationtype, int algorithm, int runtype, std::vector< unsigned int > &OFC, bool verbose=false)
Definition TileOFC.cxx:437
Header file for AthHistogramAlgorithm.
std::string algorithm
Definition hcg.cxx:85
bool verbose
Definition hcg.cxx:73