#include <TreeMatrixCalib.h>
Public Member Functions | |
void | fillInfo (int run, int eve, int xnum, int maxX, int nomX, int nextX, int xeta, int xphi, int tbm, double xx, double yy, double ecalx, double ecaly, double sx, double sy, double qx, double qy, double tdcoff, int allm, double amp[], int cry[]) |
void | store () |
TreeMatrixCalib (const char *filename="tb.root") | |
~TreeMatrixCalib () | |
Private Attributes | |
int | myAllMatrix |
double | myAmplit [49] |
double | myCaloX |
double | myCaloY |
int | myCrystal [49] |
int | myEvent |
TFile * | myFile |
double | myHodoQualityX |
double | myHodoQualityY |
double | myHodoSlopeX |
double | myHodoSlopeY |
double | myHodoX |
double | myHodoY |
int | myMaxEneXtal |
int | myNextXtalSM |
int | myNominalXtalSM |
int | myRun |
int | myTbMoving |
double | myTdcOffset |
TTree * | myTree |
int | myXtalEta |
int | myXtalPhi |
int | myXtalSM |
Definition at line 15 of file TreeMatrixCalib.h.
TreeMatrixCalib::TreeMatrixCalib | ( | const char * | filename = "tb.root" | ) |
Definition at line 3 of file TreeMatrixCalib.cc.
References myAllMatrix, myAmplit, myCaloX, myCaloY, myCrystal, myEvent, myFile, myHodoQualityX, myHodoQualityY, myHodoSlopeX, myHodoSlopeY, myHodoX, myHodoY, myMaxEneXtal, myNextXtalSM, myNominalXtalSM, myRun, myTbMoving, myTdcOffset, myTree, myXtalEta, myXtalPhi, and myXtalSM.
{ myFile = new TFile(filename,"RECREATE"); myTree = new TTree("T1","my tree"); // Amplitude / hodoscopes / tdc infos myTree->Branch("run", &myRun, "run/I"); myTree->Branch("event", &myEvent, "event/I"); myTree->Branch("xtalSM", &myXtalSM, "xtalSM/I"); myTree->Branch("maxEneXtal", &myMaxEneXtal, "maxEneXtal/I"); myTree->Branch("nominalXtalSM", &myNominalXtalSM, "nominalXtalSM/I"); myTree->Branch("nextXtalSM", &myNextXtalSM, "nextXtalSM/I"); myTree->Branch("xtalEta", &myXtalEta, "xtalEta/I"); myTree->Branch("xtalPhi", &myXtalPhi, "xtalPhi/I"); myTree->Branch("tbMoving", &myTbMoving, "tbMoving/I"); myTree->Branch("hodoX", &myHodoX, "hodoX/D"); myTree->Branch("hodoY", &myHodoY, "hodoY/D"); myTree->Branch("caloX", &myCaloX, "caloX/D"); myTree->Branch("caloY", &myCaloY, "caloY/D"); myTree->Branch("hodoSlopeX", &myHodoSlopeX, "hodoSlopeX/D"); myTree->Branch("hodoSlopeY", &myHodoSlopeY, "hodoSlopeY/D"); myTree->Branch("hodoQualityX", &myHodoQualityX, "hodoQualityX/D"); myTree->Branch("hodoQualityY", &myHodoQualityY, "hodoQualityY/D"); myTree->Branch("tdcOffset", &myTdcOffset, "tdcOffset/D"); myTree->Branch("allMatrix", &myAllMatrix, "allMatrix/I"); myTree->Branch("amplit", &myAmplit, "amplit[49]/D"); myTree->Branch("crystal", &myCrystal, "crystal[49]/I"); }
TreeMatrixCalib::~TreeMatrixCalib | ( | ) |
void TreeMatrixCalib::fillInfo | ( | int | run, |
int | eve, | ||
int | xnum, | ||
int | maxX, | ||
int | nomX, | ||
int | nextX, | ||
int | xeta, | ||
int | xphi, | ||
int | tbm, | ||
double | xx, | ||
double | yy, | ||
double | ecalx, | ||
double | ecaly, | ||
double | sx, | ||
double | sy, | ||
double | qx, | ||
double | qy, | ||
double | tdcoff, | ||
int | allm, | ||
double | amp[], | ||
int | cry[] | ||
) |
Definition at line 45 of file TreeMatrixCalib.cc.
References displayMF_cfg::maxX, myAllMatrix, myAmplit, myCaloX, myCaloY, myCrystal, myEvent, myHodoQualityX, myHodoQualityY, myHodoSlopeX, myHodoSlopeY, myHodoX, myHodoY, myMaxEneXtal, myNextXtalSM, myNominalXtalSM, myRun, myTbMoving, myTdcOffset, myXtalEta, myXtalPhi, myXtalSM, and DTTTrigCorrFirst::run.
{ myRun = run; myEvent = eve; myXtalSM = xnum; myMaxEneXtal = maxX; myNominalXtalSM = nomX; myNextXtalSM = nextX; myXtalEta = xeta; myXtalPhi = xphi; myTbMoving = tbm; myHodoX = xx; myHodoY = yy; myCaloX = ecalx; myCaloY = ecaly; myHodoSlopeX = sx; myHodoSlopeY = sy; myHodoQualityX = qx; myHodoQualityY = qy; myTdcOffset = tdcoff; myAllMatrix = allm; for (int ii=0; ii<49; ii++){ myAmplit[ii] = amp[ii]; myCrystal[ii] = cry[ii]; } }
void TreeMatrixCalib::store | ( | ) |
int TreeMatrixCalib::myAllMatrix [private] |
Definition at line 55 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
double TreeMatrixCalib::myAmplit[49] [private] |
Definition at line 38 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
double TreeMatrixCalib::myCaloX [private] |
Definition at line 49 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
double TreeMatrixCalib::myCaloY [private] |
Definition at line 49 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
int TreeMatrixCalib::myCrystal[49] [private] |
Definition at line 41 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
int TreeMatrixCalib::myEvent [private] |
Definition at line 31 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
TFile* TreeMatrixCalib::myFile [private] |
Definition at line 27 of file TreeMatrixCalib.h.
Referenced by TreeMatrixCalib(), and ~TreeMatrixCalib().
double TreeMatrixCalib::myHodoQualityX [private] |
Definition at line 46 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
double TreeMatrixCalib::myHodoQualityY [private] |
Definition at line 46 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
double TreeMatrixCalib::myHodoSlopeX [private] |
Definition at line 45 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
double TreeMatrixCalib::myHodoSlopeY [private] |
Definition at line 45 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
double TreeMatrixCalib::myHodoX [private] |
Definition at line 44 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
double TreeMatrixCalib::myHodoY [private] |
Definition at line 44 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
int TreeMatrixCalib::myMaxEneXtal [private] |
Definition at line 35 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
int TreeMatrixCalib::myNextXtalSM [private] |
Definition at line 33 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
int TreeMatrixCalib::myNominalXtalSM [private] |
Definition at line 33 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
int TreeMatrixCalib::myRun [private] |
Definition at line 31 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
int TreeMatrixCalib::myTbMoving [private] |
Definition at line 34 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
double TreeMatrixCalib::myTdcOffset [private] |
Definition at line 52 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
TTree* TreeMatrixCalib::myTree [private] |
Definition at line 28 of file TreeMatrixCalib.h.
Referenced by store(), TreeMatrixCalib(), and ~TreeMatrixCalib().
int TreeMatrixCalib::myXtalEta [private] |
Definition at line 32 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
int TreeMatrixCalib::myXtalPhi [private] |
Definition at line 32 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().
int TreeMatrixCalib::myXtalSM [private] |
Definition at line 32 of file TreeMatrixCalib.h.
Referenced by fillInfo(), and TreeMatrixCalib().