CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 8 of file BeamSpotTreeData.h.

Constructor & Destructor Documentation

BeamSpotTreeData::BeamSpotTreeData ( )

Definition at line 4 of file BeamSpotTreeData.cc.

4 {}
BeamSpotTreeData::~BeamSpotTreeData ( )

Definition at line 5 of file BeamSpotTreeData.cc.

5 {}

Member Function Documentation

void BeamSpotTreeData::branch ( TTree *  tree)

Definition at line 8 of file BeamSpotTreeData.cc.

References bunchCrossing_, lumi_, pvData_, and run_.

Referenced by PVFitter::setTree().

8  {
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 }
unsigned int run_
unsigned int bunchCrossing_
unsigned int lumi_
BeamSpotFitPVData pvData_
void BeamSpotTreeData::bunchCrossing ( unsigned int  bunchCrossing)
inline

Definition at line 18 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 24 of file BeamSpotTreeData.h.

References bunchCrossing_.

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

Definition at line 23 of file BeamSpotTreeData.h.

References lumi_.

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

Definition at line 25 of file BeamSpotTreeData.h.

References pvData_.

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

Definition at line 22 of file BeamSpotTreeData.h.

References run_.

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

Definition at line 17 of file BeamSpotTreeData.h.

References lumi(), and lumi_.

Referenced by lumi(), PVFitter::readEvent(), and upgradeWorkflowComponents.UpgradeWorkflowAging::setup_().

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

Definition at line 19 of file BeamSpotTreeData.h.

References pvData(), and pvData_.

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

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

Definition at line 16 of file BeamSpotTreeData.h.

References run(), and run_.

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

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

Definition at line 16 of file BeamSpotTreeData.cc.

References bunchCrossing_, lumi_, pvData_, and run_.

16  {
17  tree->SetBranchAddress("run", &run_);
18  tree->SetBranchAddress("lumi", &lumi_);
19  tree->SetBranchAddress("bunchCrossing", &bunchCrossing_);
20  tree->SetBranchAddress("pvData", &pvData_);
21 }
unsigned int run_
unsigned int bunchCrossing_
unsigned int lumi_
BeamSpotFitPVData pvData_

Member Data Documentation

unsigned int BeamSpotTreeData::bunchCrossing_
private

Definition at line 30 of file BeamSpotTreeData.h.

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

unsigned int BeamSpotTreeData::lumi_
private

Definition at line 29 of file BeamSpotTreeData.h.

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

BeamSpotFitPVData BeamSpotTreeData::pvData_
private

Definition at line 31 of file BeamSpotTreeData.h.

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

unsigned int BeamSpotTreeData::run_
private

Definition at line 28 of file BeamSpotTreeData.h.

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