CMS 3D CMS Logo

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

#include <BeamSpotTreeData.h>

Public Member Functions

 BeamSpotTreeData ()
 
void branch (TTree *tree)
 
void bunchCrossing (unsigned int bunchCrossing)
 
const unsigned int & getBunchCrossing (void)
 
const unsigned int & getLumi (void)
 
const BeamSpotFitPVDatagetPvData (void)
 
const unsigned int & getRun (void)
 
void lumi (unsigned int lumi)
 
void pvData (const BeamSpotFitPVData &pvData)
 
void run (unsigned int run)
 
void setBranchAddress (TTree *tree)
 
 ~BeamSpotTreeData ()
 

Private Attributes

unsigned int bunchCrossing_
 
unsigned int lumi_
 
BeamSpotFitPVData pvData_
 
unsigned int run_
 

Detailed Description

Definition at line 9 of file BeamSpotTreeData.h.

Constructor & Destructor Documentation

BeamSpotTreeData::BeamSpotTreeData ( )

Definition at line 5 of file BeamSpotTreeData.cc.

5 {}
BeamSpotTreeData::~BeamSpotTreeData ( )

Definition at line 6 of file BeamSpotTreeData.cc.

6 {}

Member Function Documentation

void BeamSpotTreeData::branch ( TTree *  tree)

Definition at line 10 of file BeamSpotTreeData.cc.

References bunchCrossing_, lumi_, pvData_, and run_.

Referenced by PVFitter::setTree().

10  {
11  tree->Branch("run" , &run_ , "run/i");
12  tree->Branch("lumi" , &lumi_ , "lumi/i");
13  tree->Branch("bunchCrossing", &bunchCrossing_, "bunchCrossing/i");
14  tree->Branch("pvData" , &pvData_ , "bunchCrossing:position[3]:posError[3]:posCorr[3]/F");
15 }
unsigned int run_
unsigned int bunchCrossing_
unsigned int lumi_
BeamSpotFitPVData pvData_
Definition: tree.py:1
void BeamSpotTreeData::bunchCrossing ( unsigned int  bunchCrossing)
inline

Definition at line 19 of file BeamSpotTreeData.h.

References bunchCrossing(), and bunchCrossing_.

Referenced by bunchCrossing(), and PVFitter::readEvent().

unsigned int bunchCrossing_
void bunchCrossing(unsigned int bunchCrossing)
const unsigned int& BeamSpotTreeData::getBunchCrossing ( void  )
inline

Definition at line 25 of file BeamSpotTreeData.h.

References bunchCrossing_.

25 {return bunchCrossing_;}
unsigned int bunchCrossing_
const unsigned int& BeamSpotTreeData::getLumi ( void  )
inline

Definition at line 24 of file BeamSpotTreeData.h.

References lumi_.

24 {return lumi_;}
unsigned int lumi_
const BeamSpotFitPVData& BeamSpotTreeData::getPvData ( void  )
inline

Definition at line 26 of file BeamSpotTreeData.h.

References pvData_.

26 {return pvData_;}
BeamSpotFitPVData pvData_
const unsigned int& BeamSpotTreeData::getRun ( void  )
inline

Definition at line 23 of file BeamSpotTreeData.h.

References run_.

23 {return run_;}
unsigned int run_
void BeamSpotTreeData::lumi ( unsigned int  lumi)
inline

Definition at line 18 of file BeamSpotTreeData.h.

References lumi(), and lumi_.

Referenced by lumi(), and PVFitter::readEvent().

18 {lumi_=lumi;}
unsigned int lumi_
void lumi(unsigned int lumi)
void BeamSpotTreeData::pvData ( const BeamSpotFitPVData pvData)
inline

Definition at line 20 of file BeamSpotTreeData.h.

References pvData(), and pvData_.

Referenced by pvData(), and PVFitter::readEvent().

20 {pvData_=pvData;}
BeamSpotFitPVData pvData_
void pvData(const BeamSpotFitPVData &pvData)
void BeamSpotTreeData::run ( unsigned int  run)
inline

Definition at line 17 of file BeamSpotTreeData.h.

References run(), and run_.

Referenced by PVFitter::readEvent(), and run().

17 {run_=run;}
unsigned int run_
void run(unsigned int run)
void BeamSpotTreeData::setBranchAddress ( TTree *  tree)

Definition at line 18 of file BeamSpotTreeData.cc.

References bunchCrossing_, lumi_, pvData_, and run_.

18  {
19  tree->SetBranchAddress("run" , &run_ );
20  tree->SetBranchAddress("lumi" , &lumi_ );
21  tree->SetBranchAddress("bunchCrossing", &bunchCrossing_);
22  tree->SetBranchAddress("pvData" , &pvData_ );
23 }
unsigned int run_
unsigned int bunchCrossing_
unsigned int lumi_
BeamSpotFitPVData pvData_
Definition: tree.py:1

Member Data Documentation

unsigned int BeamSpotTreeData::bunchCrossing_
private

Definition at line 31 of file BeamSpotTreeData.h.

Referenced by branch(), bunchCrossing(), getBunchCrossing(), and setBranchAddress().

unsigned int BeamSpotTreeData::lumi_
private

Definition at line 30 of file BeamSpotTreeData.h.

Referenced by branch(), getLumi(), lumi(), and setBranchAddress().

BeamSpotFitPVData BeamSpotTreeData::pvData_
private

Definition at line 32 of file BeamSpotTreeData.h.

Referenced by branch(), getPvData(), pvData(), and setBranchAddress().

unsigned int BeamSpotTreeData::run_
private

Definition at line 29 of file BeamSpotTreeData.h.

Referenced by branch(), getRun(), run(), and setBranchAddress().