Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:03

0001 #ifndef BeamSpotTreeData_H
0002 #define BeamSpotTreeData_H
0003 
0004 #include "RecoVertex/BeamSpotProducer/interface/BeamSpotFitPVData.h"
0005 
0006 class TTree;
0007 
0008 class BeamSpotTreeData {
0009 public:
0010   BeamSpotTreeData();
0011   ~BeamSpotTreeData();
0012   void branch(TTree* tree);
0013   void setBranchAddress(TTree* tree);
0014 
0015   //Setters
0016   void run(unsigned int run) { run_ = run; }
0017   void lumi(unsigned int lumi) { lumi_ = lumi; }
0018   void bunchCrossing(unsigned int bunchCrossing) { bunchCrossing_ = bunchCrossing; }
0019   void pvData(const BeamSpotFitPVData& pvData) { pvData_ = pvData; }
0020 
0021   //Getters
0022   const unsigned int& getRun(void) { return run_; }
0023   const unsigned int& getLumi(void) { return lumi_; }
0024   const unsigned int& getBunchCrossing(void) { return bunchCrossing_; }
0025   const BeamSpotFitPVData& getPvData(void) { return pvData_; }
0026 
0027 private:
0028   unsigned int run_;
0029   unsigned int lumi_;
0030   unsigned int bunchCrossing_;
0031   BeamSpotFitPVData pvData_;
0032 };
0033 
0034 #endif