StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTrsMiniChargeSegment.cc
1 /***************************************************************************
2  *
3  * $Id: StTrsMiniChargeSegment.cc,v 1.4 2003/12/24 13:44:53 fisyak Exp $
4  *
5  * Author:
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StTrsMiniChargeSegment.cc,v $
13  * Revision 1.4 2003/12/24 13:44:53 fisyak
14  * Add (GEANT) track Id information in Trs; propagate it via St_tpcdaq_Maker; account interface change in StTrsZeroSuppressedReaded in StMixerMaker
15  *
16  * Revision 1.3 1999/12/08 02:10:42 calderon
17  * Modified to eliminate warnings on Linux.
18  *
19  * Revision 1.2 1999/01/18 21:02:53 lasiuk
20  * comment diagnostics
21  *
22  * Revision 1.1 1998/11/10 17:12:25 fisyak
23  * Put Brian trs versin into StRoot
24  *
25  * Revision 1.4 1998/11/02 22:49:20 lasiuk
26  * overload << operator
27  *
28  * Revision 1.3 1998/10/22 00:24:26 lasiuk
29  * Oct 22
30  *
31  * Revision 1.2 1998/06/04 23:22:10 lasiuk
32  * define access functions
33  *
34  * Revision 1.1.1.1 1998/05/19 22:33:44 lasiuk
35  * Initial Revision
36  *
37  **************************************************************************/
38 #include "StTrsMiniChargeSegment.hh"
39 
40 StTrsMiniChargeSegment::StTrsMiniChargeSegment(StThreeVector<double> pos, double de, double ds, int id)
41  : mNumberOfElectrons(de), mLength(ds), mPosition(pos), mId(id) { /*nopt*/ }
42 
43 StTrsMiniChargeSegment::~StTrsMiniChargeSegment() { /*nopt*/ }
44 
45 ostream& operator<<(ostream& os, const StTrsMiniChargeSegment& seg)
46 {
47  return os << "(Pos:" << seg.position() << ",Charge:" << seg.charge() << ",id:" << seg.id() << ")";
48 }