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 8 of file BeamSpotTreeData.h.

Constructor & Destructor Documentation

◆ BeamSpotTreeData()

BeamSpotTreeData::BeamSpotTreeData ( )

Definition at line 4 of file BeamSpotTreeData.cc.

4 {}

◆ ~BeamSpotTreeData()

BeamSpotTreeData::~BeamSpotTreeData ( )

Definition at line 5 of file BeamSpotTreeData.cc.

5 {}

Member Function Documentation

◆ branch()

void BeamSpotTreeData::branch ( TTree *  tree)

Definition at line 8 of file BeamSpotTreeData.cc.

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 }

References bunchCrossing_, lumi_, pvData_, and run_.

Referenced by PVFitter::setTree().

◆ bunchCrossing()

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().

◆ getBunchCrossing()

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

Definition at line 24 of file BeamSpotTreeData.h.

24 { return bunchCrossing_; }

References bunchCrossing_.

◆ getLumi()

const unsigned int& BeamSpotTreeData::getLumi ( void  )
inline

Definition at line 23 of file BeamSpotTreeData.h.

23 { return lumi_; }

References lumi_.

◆ getPvData()

const BeamSpotFitPVData& BeamSpotTreeData::getPvData ( void  )
inline

Definition at line 25 of file BeamSpotTreeData.h.

25 { return pvData_; }

References pvData_.

◆ getRun()

const unsigned int& BeamSpotTreeData::getRun ( void  )
inline

Definition at line 22 of file BeamSpotTreeData.h.

22 { return run_; }

References run_.

◆ lumi()

void BeamSpotTreeData::lumi ( unsigned int  lumi)
inline

Definition at line 17 of file BeamSpotTreeData.h.

17 { lumi_ = lumi; }

References lumi(), and lumi_.

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

◆ pvData()

void BeamSpotTreeData::pvData ( const BeamSpotFitPVData pvData)
inline

Definition at line 19 of file BeamSpotTreeData.h.

19 { pvData_ = pvData; }

References pvData(), and pvData_.

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

◆ run()

void BeamSpotTreeData::run ( unsigned int  run)
inline

Definition at line 16 of file BeamSpotTreeData.h.

16 { run_ = run; }

References run(), and run_.

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

◆ setBranchAddress()

void BeamSpotTreeData::setBranchAddress ( TTree *  tree)

Definition at line 16 of file BeamSpotTreeData.cc.

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

References bunchCrossing_, lumi_, pvData_, and run_.

Member Data Documentation

◆ bunchCrossing_

unsigned int BeamSpotTreeData::bunchCrossing_
private

Definition at line 30 of file BeamSpotTreeData.h.

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

◆ lumi_

unsigned int BeamSpotTreeData::lumi_
private

Definition at line 29 of file BeamSpotTreeData.h.

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

◆ pvData_

BeamSpotFitPVData BeamSpotTreeData::pvData_
private

Definition at line 31 of file BeamSpotTreeData.h.

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

◆ run_

unsigned int BeamSpotTreeData::run_
private

Definition at line 28 of file BeamSpotTreeData.h.

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

BeamSpotTreeData::lumi_
unsigned int lumi_
Definition: BeamSpotTreeData.h:29
tree
Definition: tree.py:1
BeamSpotTreeData::bunchCrossing_
unsigned int bunchCrossing_
Definition: BeamSpotTreeData.h:30
BeamSpotTreeData::run_
unsigned int run_
Definition: BeamSpotTreeData.h:28
BeamSpotTreeData::bunchCrossing
void bunchCrossing(unsigned int bunchCrossing)
Definition: BeamSpotTreeData.h:18
BeamSpotTreeData::lumi
void lumi(unsigned int lumi)
Definition: BeamSpotTreeData.h:17
BeamSpotTreeData::run
void run(unsigned int run)
Definition: BeamSpotTreeData.h:16
BeamSpotTreeData::pvData_
BeamSpotFitPVData pvData_
Definition: BeamSpotTreeData.h:31
BeamSpotTreeData::pvData
void pvData(const BeamSpotFitPVData &pvData)
Definition: BeamSpotTreeData.h:19