13.07.2015 Views

BABAR C++ Course Running the Examples - HEPHY

BABAR C++ Course Running the Examples - HEPHY

BABAR C++ Course Running the Examples - HEPHY

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Class hierarchyLockable classFor both data members and functions we have3-vectorLorentz-vectorThe header fileclass HepLockable {public:inline HepLockable();inline void lock(int bit);inline void unlock(int bit);inline int locked() const;// more not shown}ParticleLockable• gives property of “in-use” flag to sub-class• can use when something can only be used once• will demonstrate use with a combinatoric problemAsTrack• HepLockable is part of CLHEP• AsTrack has <strong>the</strong> functions defined in itself and allof its super classes• AsTrack has data members defined in itself and allof its super classes<strong>BABAR</strong> <strong>C++</strong> <strong>Course</strong> 146 Paul F. Kunz<strong>BABAR</strong> <strong>C++</strong> <strong>Course</strong> 147 Paul F. Kunz

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!