ATLAS Offline Software
|
#include <cstdio>
#include <fstream>
#include <iostream>
#include <sstream>
#include <cmath>
#include <vector>
#include <string>
#include <stdint.h>
#include "TileByteStream/TileOFC.h"
Go to the source code of this file.
Functions | |
void | Double2Int_calib (double calib, unsigned int &scale, unsigned int &offset, bool verbose) |
void | Double2Int_ofc (int w_off_size, const vector< double > &w_off, vector< int > &w_dsp, int &w_sum_dsp, int &scale, bool verbose) |
bool | ConvertOFC (const vector< vector< vector< vector< double > > > > &w_off, const vector< vector< double > > &calibration, int calibtype, int runtype, vector< unsigned int > &OFC, bool verbose) |
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 channel_index, int phase, double calibration, std::vector< unsigned int > &OFC, bool verbose) |
Format6. More... | |
bool | Format5 (const vector< double > &a, const vector< double > &b, const vector< double > &c, const vector< double > &g, const vector< double > &h, vector< unsigned int > &OFC, bool verbose) |
Format5. More... | |
bool | Format5calib (double calib, vector< unsigned int > &OFC, bool verbose) |
bool | FormatInfo (int nsamples, int calibrationtype, int algorithm, int runtype, vector< unsigned int > &OFC, bool verbose) |
bool | ReadOFfile (vector< vector< vector< vector< double > > > > &w_off, char *OFCfile, bool verbose) |
bool ConvertOFC | ( | const vector< vector< vector< vector< double > > > > & | w_off, |
const vector< vector< double > > & | calibration, | ||
int | calibtype, | ||
int | runtype, | ||
vector< unsigned int > & | OFC, | ||
bool | verbose | ||
) |
Definition at line 88 of file TileOFC.cxx.
void Double2Int_calib | ( | double | calib, |
unsigned int & | scale, | ||
unsigned int & | offset, | ||
bool | verbose | ||
) |
Definition at line 18 of file TileOFC.cxx.
void Double2Int_ofc | ( | int | w_off_size, |
const vector< double > & | w_off, | ||
vector< int > & | w_dsp, | ||
int & | w_sum_dsp, | ||
int & | scale, | ||
bool | verbose | ||
) |
Definition at line 41 of file TileOFC.cxx.
bool Format5 | ( | const vector< double > & | a, |
const vector< double > & | b, | ||
const vector< double > & | c, | ||
const vector< double > & | g, | ||
const vector< double > & | h, | ||
vector< unsigned int > & | OFC, | ||
bool | verbose | ||
) |
Format5.
Format used in the OFW with iterations
a | vector of A weights to compute energy |
b | vector of B weights to compute phase |
c | vector of C weights to compute pedestal |
g | vector of G weights to compute QF |
h | vector of derivative of G weights to compute QF |
OFC | reference to OFW vector |
verbose | boolean value |
Definition at line 359 of file TileOFC.cxx.
bool Format5calib | ( | double | calib, |
vector< unsigned int > & | OFC, | ||
bool | verbose | ||
) |
Definition at line 421 of file TileOFC.cxx.
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 | channel_index, | ||
int | phase, | ||
double | calibration, | ||
std::vector< unsigned int > & | OFC, | ||
bool | verbose | ||
) |
Format6.
Format used in the OFW without iterations
a | vector of A weights to compute energy |
b | vector of B weights to compute phase |
c | vector of C weights to compute pedestal |
g | vector of G weights to compute QF |
h | vector of derivative of G weights to compute QF |
channel_index | channel index [0:48] |
phase | rounded scaled integer value of the channel's best phase |
calibration | calibration factor to be applied to the energy |
OFC | reference to OFW vector |
verbose | boolean value |
Definition at line 270 of file TileOFC.cxx.
bool FormatInfo | ( | int | nsamples, |
int | calibrationtype, | ||
int | algorithm, | ||
int | runtype, | ||
vector< unsigned int > & | OFC, | ||
bool | verbose | ||
) |
Definition at line 437 of file TileOFC.cxx.