CMS 3D CMS Logo

Public Member Functions | Private Attributes

TreeMatrixCalib Class Reference

#include <TreeMatrixCalib.h>

List of all members.

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

Detailed Description

Definition at line 15 of file TreeMatrixCalib.h.


Constructor & Destructor Documentation

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 ( )

Definition at line 32 of file TreeMatrixCalib.cc.

References myFile, and myTree.

{
  myFile->cd();
  myTree->Write();
  myFile->Close();
  delete myFile;
}

Member Function Documentation

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[] 
)
void TreeMatrixCalib::store ( )

Definition at line 40 of file TreeMatrixCalib.cc.

References myTree.

{
  myTree->Fill();
}

Member Data Documentation

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().

Definition at line 46 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

Definition at line 46 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

Definition at line 45 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

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().

Definition at line 35 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

Definition at line 33 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

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().

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().

Definition at line 32 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

Definition at line 32 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

Definition at line 32 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().