CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/RecoVertex/BeamSpotProducer/src/BeamSpotTreeData.cc

Go to the documentation of this file.
00001 #include "RecoVertex/BeamSpotProducer/interface/BeamSpotTreeData.h"
00002 #include <TTree.h>
00003 
00004 
00005 BeamSpotTreeData::BeamSpotTreeData(){}
00006 BeamSpotTreeData::~BeamSpotTreeData(){}
00007 
00008 
00009 //--------------------------------------------------------------------------------------------------
00010 void BeamSpotTreeData::branch(TTree* tree){
00011   tree->Branch("run"          , &run_          , "run/i");
00012   tree->Branch("lumi"         , &lumi_         , "lumi/i");
00013   tree->Branch("bunchCrossing", &bunchCrossing_, "bunchCrossing/i");
00014   tree->Branch("pvData"       , &pvData_       , "bunchCrossing:position[3]:posError[3]:posCorr[3]/F");
00015 }
00016 
00017 //--------------------------------------------------------------------------------------------------
00018 void BeamSpotTreeData::setBranchAddress(TTree* tree){
00019   tree->SetBranchAddress("run"          , &run_          );
00020   tree->SetBranchAddress("lumi"         , &lumi_         );
00021   tree->SetBranchAddress("bunchCrossing", &bunchCrossing_);
00022   tree->SetBranchAddress("pvData"       , &pvData_       );
00023 }