src
RecoVertex
BeamSpotProducer
src
BeamSpotTreeData.cc
Go to the documentation of this file.
1
#include "
RecoVertex/BeamSpotProducer/interface/BeamSpotTreeData.h
"
2
#include <TTree.h>
3
4
BeamSpotTreeData::BeamSpotTreeData
() {}
5
BeamSpotTreeData::~BeamSpotTreeData
() {}
6
7
//--------------------------------------------------------------------------------------------------
8
void
BeamSpotTreeData::branch
(TTree*
tree
) {
9
tree
->Branch(
"run"
, &
run_
,
"run/i"
);
10
tree
->Branch(
"lumi"
, &
lumi_
,
"lumi/i"
);
11
tree
->Branch(
"bunchCrossing"
, &
bunchCrossing_
,
"bunchCrossing/i"
);
12
tree
->Branch(
"pvData"
, &
pvData_
,
"bunchCrossing:position[3]:posError[3]:posCorr[3]/F"
);
13
}
14
15
//--------------------------------------------------------------------------------------------------
16
void
BeamSpotTreeData::setBranchAddress
(TTree*
tree
) {
17
tree
->SetBranchAddress(
"run"
, &
run_
);
18
tree
->SetBranchAddress(
"lumi"
, &
lumi_
);
19
tree
->SetBranchAddress(
"bunchCrossing"
, &
bunchCrossing_
);
20
tree
->SetBranchAddress(
"pvData"
, &
pvData_
);
21
}
BeamSpotTreeData::run_
unsigned int run_
Definition:
BeamSpotTreeData.h:28
BeamSpotTreeData::~BeamSpotTreeData
~BeamSpotTreeData()
Definition:
BeamSpotTreeData.cc:5
BeamSpotTreeData::bunchCrossing_
unsigned int bunchCrossing_
Definition:
BeamSpotTreeData.h:30
BeamSpotTreeData::lumi_
unsigned int lumi_
Definition:
BeamSpotTreeData.h:29
BeamSpotTreeData::setBranchAddress
void setBranchAddress(TTree *tree)
Definition:
BeamSpotTreeData.cc:16
BeamSpotTreeData::pvData_
BeamSpotFitPVData pvData_
Definition:
BeamSpotTreeData.h:31
BeamSpotTreeData::branch
void branch(TTree *tree)
Definition:
BeamSpotTreeData.cc:8
BeamSpotTreeData::BeamSpotTreeData
BeamSpotTreeData()
Definition:
BeamSpotTreeData.cc:4
tree
Definition:
tree.py:1
BeamSpotTreeData.h
Generated for CMSSW Reference Manual by
1.8.14