CMS 3D CMS Logo

BeamSpotTreeData.cc
Go to the documentation of this file.
2 #include <TTree.h>
3 
6 
7 //--------------------------------------------------------------------------------------------------
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 //--------------------------------------------------------------------------------------------------
17  tree->SetBranchAddress("run", &run_);
18  tree->SetBranchAddress("lumi", &lumi_);
19  tree->SetBranchAddress("bunchCrossing", &bunchCrossing_);
20  tree->SetBranchAddress("pvData", &pvData_);
21 }
BeamSpotTreeData::lumi_
unsigned int lumi_
Definition: BeamSpotTreeData.h:29
tree
Definition: tree.py:1
BeamSpotTreeData::branch
void branch(TTree *tree)
Definition: BeamSpotTreeData.cc:8
BeamSpotTreeData::BeamSpotTreeData
BeamSpotTreeData()
Definition: BeamSpotTreeData.cc:4
BeamSpotTreeData.h
BeamSpotTreeData::bunchCrossing_
unsigned int bunchCrossing_
Definition: BeamSpotTreeData.h:30
BeamSpotTreeData::run_
unsigned int run_
Definition: BeamSpotTreeData.h:28
BeamSpotTreeData::~BeamSpotTreeData
~BeamSpotTreeData()
Definition: BeamSpotTreeData.cc:5
BeamSpotTreeData::setBranchAddress
void setBranchAddress(TTree *tree)
Definition: BeamSpotTreeData.cc:16
BeamSpotTreeData::pvData_
BeamSpotFitPVData pvData_
Definition: BeamSpotTreeData.h:31