|
//____________________________________________________________________ // // Brahms general hit class. Specific detectors can inherit from this. // They should then overwrite the Draw method as marking a hit in the // local volume // Keyword : KIS(S) (Keep It Simple (Stupid)) // //____________________________________________________________________ // // $Id: BrHit.cxx,v 1.1.1.1 2001/06/21 14:55:03 hagel Exp $ // $Author: hagel $ // $Date: 2001/06/21 14:55:03 $ // $Copyright: (C) 2001 BRAHMS Collaboration <brahmlib@rhic.bnl.gov> // #ifndef BRAT_BrHit #include "BrHit.h" #endif #ifndef WIN32 #include <iostream> #else #include <iostream.h> #endif //____________________________________________________________________ ClassImp(BrHit); //____________________________________________________________________ BrHit::BrHit() : TObject() { // CTOR - empty } //____________________________________________________________________ BrHit::~BrHit() { // DTOR - empty } //____________________________________________________________________ void BrHit::Draw(Option_t* option = "") { // Currently empty. Could as default draw a box and be overwritten // in other hit modules return; } //____________________________________________________________________ void BrHit::Print(Option_t* option = "") const { // Print out the position and error cout << "Position : "; fPos.Print(); cout << "Error : "; fPosError.Print(); } //____________________________________________________________________ void BrHit::SetPos(const BrVector3D &pos) { fPos.SetX(pos.GetX()); fPos.SetY(pos.GetY()); fPos.SetZ(pos.GetZ()); } //____________________________________________________________________ void BrHit::SetPosError(const BrVector3D &pos) { fPosError.SetX(pos.GetX()); fPosError.SetY(pos.GetY()); fPosError.SetZ(pos.GetZ()); } //____________________________________________________________________ // // $Log: BrHit.cxx,v $ // Revision 1.1.1.1 2001/06/21 14:55:03 hagel // Initial revision of brat2 // // Revision 1.2 2001/06/17 17:29:29 pchristi // Near final version. A little cosmetics is still needed. // // Revision 1.1 2001/05/29 14:20:00 pchristi // Initial import of new Tpc classes // // |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|