StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTrsWireBinEntry.cc
1 /***************************************************************************
2  *
3  * $Id: StTrsWireBinEntry.cc,v 1.5 2003/12/24 13:44:53 fisyak Exp $
4  *
5  * Author: brian, May 1998
6  ***************************************************************************
7  *
8  * Description: Results from transport of a single StTrsMiniChargeSegment
9  *
10  ***************************************************************************
11  *
12  * $Log: StTrsWireBinEntry.cc,v $
13  * Revision 1.5 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.4 2000/07/30 02:41:07 long
17  * add dx dy dz,add function d()
18  *
19  * Revision 1.3 2000/02/24 16:38:05 long
20  * add SigmaL,SigmaT for field on
21  *
22  *Revision 1.3 2000/02/23 14:00:08 long
23  * add SigmaL,SigmaT for field on
24  * Revision 1.2 1999/01/18 10:18:08 lasiuk
25  * constructor by reference
26  * set functions by reference
27  *
28  * Revision 1.1 1998/11/10 17:12:27 fisyak
29  * Put Brian trs versin into StRoot
30  *
31  * Revision 1.2 1998/11/03 17:29:58 lasiuk
32  * added set member functions
33  * added scaleNumberOfElectrons()
34  *
35  * Revision 1.1 1998/06/04 23:31:58 lasiuk
36  * Initial Revision
37  *
38  **************************************************************************/
39 #include "StTrsWireBinEntry.hh"
40 
41 #ifdef ST_NO_TEMPLATE_DEF_ARGS
42 StTrsWireBinEntry::StTrsWireBinEntry() { /* nopt */ }
43 #endif
44 
45 StTrsWireBinEntry::StTrsWireBinEntry(StThreeVector<double>& x, float elec,double SigmaL,double SigmaT,double *D, int id)
46  : mPosition(x), mNumberOfElectrons(elec) ,mSigmaL(SigmaL),mSigmaT(SigmaT), mId(id){/* nopt */mD[0]=D[0];mD[1]=D[1];mD[2]=D[2]; }
47 
48 StTrsWireBinEntry::~StTrsWireBinEntry() {/* nopt */ }
49 
50 void StTrsWireBinEntry::scaleNumberOfElectrons(float fac)
51 {
52  mNumberOfElectrons *= fac;
53 }
54 double StTrsWireBinEntry::sigmaL() {return mSigmaL;}
55 double StTrsWireBinEntry::sigmaT() {return mSigmaT;}
56 double * StTrsWireBinEntry::d() {return mD; }
57 
58 // Non-member function
59 ostream& operator<<(ostream& os, const StTrsWireBinEntry& entry)
60 {
61  return os << "WireBin(Pos:" << entry.position() << ",No.of e:" << entry.numberOfElectrons()
62  << ",id:" << entry.id() << ")";
63 }