/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/MdcPatRec/TrkFitter/TrkFitter-00-01-11/src/TrkIdManDefault.cxx

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 // File and Version Information:
00003 //      $Id: TrkIdManDefault.cxx,v 1.1.1.1 2005/04/21 06:26:56 maqm Exp $
00004 //
00005 // Description:
00006 //     
00007 //
00008 // Environment:
00009 //      Software developed for the BaBar Detector at the SLAC B-Factory.
00010 //
00011 // Author(s): Steve Schaffner
00012 //
00013 //------------------------------------------------------------------------
00014 //#include "BaBar/BaBar.hh"
00015 #include "TrkFitter/TrkIdManDefault.h"
00016 
00017 //------------------------------------------------------------------------
00018 TrkIdManDefault::TrkIdManDefault(long firstId) {
00019 //------------------------------------------------------------------------
00020   _nextId = firstId;
00021 }
00022 
00023 //------------------------------------------------------------------------
00024 TrkIdManDefault::~TrkIdManDefault() {
00025 //------------------------------------------------------------------------
00026 }
00027 
00028 //------------------------------------------------------------------------
00029 long
00030 TrkIdManDefault::nextId() {
00031 //------------------------------------------------------------------------
00032   long id = _nextId;
00033   _nextId++;
00034   return id;
00035 }
00036 
00037 //------------------------------------------------------------------------
00038 long
00039 TrkIdManDefault::lastId() const {
00040 //------------------------------------------------------------------------
00041   return (_nextId - 1);
00042 }
00043 
00044 void
00045 TrkIdManDefault::setMax(long maxid) {
00046   _nextId = maxid+1;
00047 }
00048 

Generated on Tue Nov 29 23:13:44 2016 for BOSS_7.0.2 by  doxygen 1.4.7