00001 /*************************************************************************** 00002 * 00003 * $Id: StRichHit.cxx,v 2.5 2009/11/23 16:34:07 fisyak Exp $ 00004 * 00005 * Author: Brian Lasiuk, May 2000 00006 *************************************************************************** 00007 * 00008 * Description: Implementation of persistent Hit definition 00009 * 00010 *************************************************************************** 00011 * 00012 * $Log: StRichHit.cxx,v $ 00013 * Revision 2.5 2009/11/23 16:34:07 fisyak 00014 * Cleanup, remove dependence on dst tables, clean up software monitors 00015 * 00016 * Revision 2.4 2004/07/15 16:36:25 ullrich 00017 * Removed all clone() declerations and definitions. Use StObject::clone() only. 00018 * 00019 * Revision 2.3 2001/04/05 04:00:52 ullrich 00020 * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs. 00021 * 00022 * Revision 2.2 2001/03/24 03:34:54 perev 00023 * clone() -> clone() const 00024 * 00025 * Revision 2.1 2000/05/22 21:44:47 ullrich 00026 * Initial Revision 00027 * 00028 **************************************************************************/ 00029 00030 #include "StRichHit.h" 00031 00032 static const char rcsid[] = "$Id: StRichHit.cxx,v 2.5 2009/11/23 16:34:07 fisyak Exp $"; 00033 00034 ClassImp(StRichHit) 00035 00036 StRichHit::StRichHit() {/* nopt */} 00037 00038 StRichHit::StRichHit(const StThreeVectorF& xl, const StThreeVectorF& dx) 00039 : mLocal(xl), mLError(dx) 00040 { 00041 // This is used for off-line 00042 } 00043 StRichHit::StRichHit(const StThreeVectorF& xg, const StThreeVectorF& dx, 00044 unsigned int hp, float q, float maxAdc, unsigned char tc) 00045 : StHit(xg,dx,hp,q,tc),mMaxAmplitude(maxAdc) 00046 { 00047 // For Storage in the StRichHitCollection 00048 } 00049 00050 00051 StRichHit::~StRichHit() {/* nopt */} 00052 00053 ostream& 00054 operator<<(ostream& os, const StRichHit& hit) 00055 { 00056 return (os << "StRichHit::> " << hit.internal() << ", q= " 00057 << hit.charge() << ", (#" 00058 << hit.clusterNumber() << ')'); 00059 }
1.5.9