ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
|
#include <S800Calibration.h>
Public Member Functions | |
S800Calibration () | |
S800Calibration (S800Settings *) | |
~S800Calibration () | |
void | ReadCrdcCalibration (const char *filename, const char *pedestalfile) |
void | ReadCrdcBadPads (const char *filename) |
bool | IsBad (int ch, int CrdcId) |
void | S800Calculate (S800 *in, S800Calc *out) |
void | CrdcCal (std::vector< Short_t > channel, std::vector< Short_t > data, Int_t id) |
std::vector< Float_t > | GetCalibratedCrdcPads (std::vector< Short_t > channels, std::vector< Short_t > data, Int_t id, vector< Float_t > &PedSubtractedPads) |
void | MakeCalibratedCRDC (CRDC *theCRDC, std::vector< Short_t > channels, std::vector< Short_t > data, Float_t tac, Float_t anode, Int_t id) |
Float_t | CalcX () |
Float_t | CalcX2 (CRDC *theCRDC) |
void | SetCrdc (std::vector< Short_t > channel, std::vector< Short_t > data, Float_t tac, Float_t anode, Int_t id) |
CRDC | GetCrdc () |
Float_t | TimeOffset (Float_t time1, Float_t time2) |
Float_t | TimeOffset (Float_t time) |
void | SetTof (GTimeOfFlight *tof) |
TOF | GetTof () |
void | ReadICCalibration (const char *filename) |
std::vector< Float_t > | ICCal (std::vector< int > chan, std::vector< float > raw) |
Float_t | ICSum (std::vector< Float_t > cal) |
Float_t | ICDE (Float_t sum, Float_t x, Float_t y) |
void | SetTS800 (Short_t ts800) |
std::vector< Float_t > | GetCRDCCal () |
Class responsible for calibrating the S800. Takes a S800 raw data object as input and creates a S800Calc object. This requires a variety of input files that are specfied in a general input file along with other general settings about the calibration process. That file is specifed in S800Settings.
Definition at line 22 of file S800Calibration.h.
S800Calibration::S800Calibration | ( | ) |
Definition at line 20 of file S800Calibration.cxx.
S800Calibration::S800Calibration | ( | S800Settings * | setting | ) |
Definition at line 35 of file S800Calibration.cxx.
S800Calibration::~S800Calibration | ( | ) |
Definition at line 58 of file S800Calibration.cxx.
Float_t S800Calibration::CalcX | ( | ) |
Method will be removed. Will be replaced by CalcX2()
Definition at line 243 of file S800Calibration.cxx.
Float_t S800Calibration::CalcX2 | ( | CRDC * | theCRDC | ) |
Definition at line 394 of file S800Calibration.cxx.
void S800Calibration::CrdcCal | ( | std::vector< Short_t > | channel, |
std::vector< Short_t > | data, | ||
Int_t | id | ||
) |
This method will be removed. It is being replaced by MakeCalibratedCRDC and GetCalibratedCrdcPads.
Definition at line 124 of file S800Calibration.cxx.
std::vector< Float_t > S800Calibration::GetCalibratedCrdcPads | ( | std::vector< Short_t > | channels, |
std::vector< Short_t > | data, | ||
Int_t | id, | ||
vector< Float_t > & | PedSubtractedPads | ||
) |
Method to form and calibrated the CRDC pad distribution. Channels a vector holding each read of each PAD that fired in the event. Data is a vector containning the corresponding read values id is 0 or 1 specfying which CRDC is built.
Definition at line 161 of file S800Calibration.cxx.
|
inline |
Method will be removed.
Definition at line 75 of file S800Calibration.h.
|
inline |
Definition at line 89 of file S800Calibration.h.
|
inline |
Definition at line 80 of file S800Calibration.h.
std::vector< Float_t > S800Calibration::ICCal | ( | std::vector< int > | chan, |
std::vector< float > | raw | ||
) |
Definition at line 586 of file S800Calibration.cxx.
Float_t S800Calibration::ICDE | ( | Float_t | sum, |
Float_t | x, | ||
Float_t | y | ||
) |
Definition at line 620 of file S800Calibration.cxx.
Float_t S800Calibration::ICSum | ( | std::vector< Float_t > | cal | ) |
Definition at line 603 of file S800Calibration.cxx.
|
inline |
Definition at line 31 of file S800Calibration.h.
void S800Calibration::MakeCalibratedCRDC | ( | CRDC * | theCRDC, |
std::vector< Short_t > | channels, | ||
std::vector< Short_t > | data, | ||
Float_t | tac, | ||
Float_t | anode, | ||
Int_t | id | ||
) |
Method to build a fully calibrated CRDC object. The calibrated values will be set in theCRDC. Inputs are the same as for GetCalibratedCrdcPads
Definition at line 635 of file S800Calibration.cxx.
void S800Calibration::ReadCrdcBadPads | ( | const char * | filename | ) |
Definition at line 104 of file S800Calibration.cxx.
void S800Calibration::ReadCrdcCalibration | ( | const char * | filename, |
const char * | pedestalfile | ||
) |
Definition at line 72 of file S800Calibration.cxx.
void S800Calibration::ReadICCalibration | ( | const char * | filename | ) |
Definition at line 575 of file S800Calibration.cxx.
Main method for calibrating s800. Calls all other methods needed for calibrating each S800 detector element.
Definition at line 673 of file S800Calibration.cxx.
void S800Calibration::SetCrdc | ( | std::vector< Short_t > | channel, |
std::vector< Short_t > | data, | ||
Float_t | tac, | ||
Float_t | anode, | ||
Int_t | id | ||
) |
Method will be removed.
Definition at line 216 of file S800Calibration.cxx.
void S800Calibration::SetTof | ( | GTimeOfFlight * | tof | ) |
Definition at line 569 of file S800Calibration.cxx.
|
inline |
Definition at line 87 of file S800Calibration.h.
Float_t S800Calibration::TimeOffset | ( | Float_t | time | ) |
Definition at line 564 of file S800Calibration.cxx.
Float_t S800Calibration::TimeOffset | ( | Float_t | time1, |
Float_t | time2 | ||
) |
Definition at line 559 of file S800Calibration.cxx.