CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TreeMatrixCalib Class Reference

#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 ()=default
 

Private Attributes

int myAllMatrix
 
double myAmplit [49]
 
double myCaloX
 
double myCaloY
 
int myCrystal [49]
 
int myEvent
 
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 17 of file TreeMatrixCalib.h.

Constructor & Destructor Documentation

◆ TreeMatrixCalib()

TreeMatrixCalib::TreeMatrixCalib ( const char *  filename = "tb.root")

Definition at line 3 of file TreeMatrixCalib.cc.

References compareTotals::fs, myAllMatrix, myAmplit, myCaloX, myCaloY, myCrystal, myEvent, myHodoQualityX, myHodoQualityY, myHodoSlopeX, myHodoSlopeY, myHodoX, myHodoY, myMaxEneXtal, myNextXtalSM, myNominalXtalSM, myRun, myTbMoving, myTdcOffset, myTree_, myXtalEta, myXtalPhi, and myXtalSM.

3  {
5  myTree_ = fs->make<TTree>("T1", "my tree");
6 
7  // Amplitude / hodoscopes / tdc infos
8  myTree_->Branch("run", &myRun, "run/I");
9  myTree_->Branch("event", &myEvent, "event/I");
10  myTree_->Branch("xtalSM", &myXtalSM, "xtalSM/I");
11  myTree_->Branch("maxEneXtal", &myMaxEneXtal, "maxEneXtal/I");
12  myTree_->Branch("nominalXtalSM", &myNominalXtalSM, "nominalXtalSM/I");
13  myTree_->Branch("nextXtalSM", &myNextXtalSM, "nextXtalSM/I");
14  myTree_->Branch("xtalEta", &myXtalEta, "xtalEta/I");
15  myTree_->Branch("xtalPhi", &myXtalPhi, "xtalPhi/I");
16  myTree_->Branch("tbMoving", &myTbMoving, "tbMoving/I");
17  myTree_->Branch("hodoX", &myHodoX, "hodoX/D");
18  myTree_->Branch("hodoY", &myHodoY, "hodoY/D");
19  myTree_->Branch("caloX", &myCaloX, "caloX/D");
20  myTree_->Branch("caloY", &myCaloY, "caloY/D");
21  myTree_->Branch("hodoSlopeX", &myHodoSlopeX, "hodoSlopeX/D");
22  myTree_->Branch("hodoSlopeY", &myHodoSlopeY, "hodoSlopeY/D");
23  myTree_->Branch("hodoQualityX", &myHodoQualityX, "hodoQualityX/D");
24  myTree_->Branch("hodoQualityY", &myHodoQualityY, "hodoQualityY/D");
25  myTree_->Branch("tdcOffset", &myTdcOffset, "tdcOffset/D");
26  myTree_->Branch("allMatrix", &myAllMatrix, "allMatrix/I");
27  myTree_->Branch("amplit", &myAmplit, "amplit[49]/D");
28  myTree_->Branch("crystal", &myCrystal, "crystal[49]/I");
29 }
double myAmplit[49]

◆ ~TreeMatrixCalib()

TreeMatrixCalib::~TreeMatrixCalib ( )
default

Member Function Documentation

◆ fillInfo()

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 33 of file TreeMatrixCalib.cc.

References cuy::ii, HGVHistoProducerAlgoBlock_cfi::maxX, myAllMatrix, myAmplit, myCaloX, myCaloY, myCrystal, myEvent, myHodoQualityX, myHodoQualityY, myHodoSlopeX, myHodoSlopeY, myHodoX, myHodoY, myMaxEneXtal, myNextXtalSM, myNominalXtalSM, myRun, myTbMoving, myTdcOffset, myXtalEta, myXtalPhi, myXtalSM, writedatasetfile::run, fftjetcommon_cfi::sx, fftjetcommon_cfi::sy, geometryCSVtoXML::xx, and geometryCSVtoXML::yy.

53  {
54  myRun = run;
55  myEvent = eve;
56  myXtalSM = xnum;
58  myNominalXtalSM = nomX;
59  myNextXtalSM = nextX;
60  myXtalEta = xeta;
61  myXtalPhi = xphi;
62  myTbMoving = tbm;
63  myHodoX = xx;
64  myHodoY = yy;
65  myCaloX = ecalx;
66  myCaloY = ecaly;
67  myHodoSlopeX = sx;
68  myHodoSlopeY = sy;
69  myHodoQualityX = qx;
70  myHodoQualityY = qy;
71  myTdcOffset = tdcoff;
72  myAllMatrix = allm;
73  for (int ii = 0; ii < 49; ii++) {
74  myAmplit[ii] = amp[ii];
75  myCrystal[ii] = cry[ii];
76  }
77 }
double myAmplit[49]
ii
Definition: cuy.py:589

◆ store()

void TreeMatrixCalib::store ( )

Definition at line 31 of file TreeMatrixCalib.cc.

References myTree_.

31 { myTree_->Fill(); }

Member Data Documentation

◆ myAllMatrix

int TreeMatrixCalib::myAllMatrix
private

Definition at line 74 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myAmplit

double TreeMatrixCalib::myAmplit[49]
private

Definition at line 57 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myCaloX

double TreeMatrixCalib::myCaloX
private

Definition at line 68 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myCaloY

double TreeMatrixCalib::myCaloY
private

Definition at line 68 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myCrystal

int TreeMatrixCalib::myCrystal[49]
private

Definition at line 60 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myEvent

int TreeMatrixCalib::myEvent
private

Definition at line 50 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myHodoQualityX

double TreeMatrixCalib::myHodoQualityX
private

Definition at line 65 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myHodoQualityY

double TreeMatrixCalib::myHodoQualityY
private

Definition at line 65 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myHodoSlopeX

double TreeMatrixCalib::myHodoSlopeX
private

Definition at line 64 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myHodoSlopeY

double TreeMatrixCalib::myHodoSlopeY
private

Definition at line 64 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myHodoX

double TreeMatrixCalib::myHodoX
private

Definition at line 63 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myHodoY

double TreeMatrixCalib::myHodoY
private

Definition at line 63 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myMaxEneXtal

int TreeMatrixCalib::myMaxEneXtal
private

Definition at line 54 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myNextXtalSM

int TreeMatrixCalib::myNextXtalSM
private

Definition at line 52 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myNominalXtalSM

int TreeMatrixCalib::myNominalXtalSM
private

Definition at line 52 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myRun

int TreeMatrixCalib::myRun
private

Definition at line 50 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myTbMoving

int TreeMatrixCalib::myTbMoving
private

Definition at line 53 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myTdcOffset

double TreeMatrixCalib::myTdcOffset
private

Definition at line 71 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myTree_

TTree* TreeMatrixCalib::myTree_
private

Definition at line 47 of file TreeMatrixCalib.h.

Referenced by store(), and TreeMatrixCalib().

◆ myXtalEta

int TreeMatrixCalib::myXtalEta
private

Definition at line 51 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myXtalPhi

int TreeMatrixCalib::myXtalPhi
private

Definition at line 51 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().

◆ myXtalSM

int TreeMatrixCalib::myXtalSM
private

Definition at line 51 of file TreeMatrixCalib.h.

Referenced by fillInfo(), and TreeMatrixCalib().