CMS 3D CMS Logo

Public Member Functions | Private Attributes

BeamSpotTreeData Class Reference

#include <BeamSpotTreeData.h>

List of all members.

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.

{}
BeamSpotTreeData::~BeamSpotTreeData ( )

Definition at line 6 of file BeamSpotTreeData.cc.

{}

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

                                        {
  tree->Branch("run"          , &run_          , "run/i");
  tree->Branch("lumi"         , &lumi_         , "lumi/i");
  tree->Branch("bunchCrossing", &bunchCrossing_, "bunchCrossing/i");
  tree->Branch("pvData"       , &pvData_       , "bunchCrossing:position[3]:posError[3]:posCorr[3]/F");
}
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().

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

Definition at line 25 of file BeamSpotTreeData.h.

References bunchCrossing_.

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

Definition at line 24 of file BeamSpotTreeData.h.

References lumi_.

{return lumi_;}
const BeamSpotFitPVData& BeamSpotTreeData::getPvData ( void  ) [inline]

Definition at line 26 of file BeamSpotTreeData.h.

References pvData_.

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

Definition at line 23 of file BeamSpotTreeData.h.

References run_.

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

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

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

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

Definition at line 18 of file BeamSpotTreeData.cc.

References bunchCrossing_, lumi_, pvData_, and run_.

                                                  {
  tree->SetBranchAddress("run"          , &run_          );
  tree->SetBranchAddress("lumi"         , &lumi_         );
  tree->SetBranchAddress("bunchCrossing", &bunchCrossing_);
  tree->SetBranchAddress("pvData"       , &pvData_       );
}

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

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