StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuFgtStrip.cxx
1 /***************************************************************************
2  *
3  * $Id: StMuFgtStrip.cxx,v 1.3 2018/01/04 17:36:47 smirnovd Exp $
4  * Author: S. Gliske, Jan. 2012
5  *
6  ***************************************************************************
7  *
8  * Description: See header file.
9  *
10  ***************************************************************************
11  *
12  * $Log: StMuFgtStrip.cxx,v $
13  * Revision 1.3 2018/01/04 17:36:47 smirnovd
14  * [Cosmetic] Remove StRoot/ from include path
15  *
16  * $STAR/StRoot is already in the default path search
17  *
18  * Revision 1.2 2013/01/08 22:57:33 sangalin
19  * Merged in FGT changes allowing for a variable number of timebins to be read out for each strip.
20  *
21  * Revision 1.1 2012/11/15 22:27:24 sangalin
22  * Copied over from StFgtDevel.
23  *
24  * Revision 1.6 2012/04/13 18:56:31 sgliske
25  * More adjustments based on the review:
26  * - Lastest StEvents from Thomas U.
27  * - StFgtA2CMaker can no longer remove strips other than bad status or bad ped
28  * - other related updates
29  *
30  * Revision 1.5 2012/03/07 19:21:01 sgliske
31  * updated based on changes to StEvent
32  *
33  * Revision 1.4 2012/03/07 15:23:53 sgliske
34  * StFgtStrip no longer has a type field
35  *
36  * Revision 1.3 2012/01/30 11:40:05 sgliske
37  * a2cMaker now fits the pulse shape,
38  * strip containers updated
39  *
40  * Revision 1.2 2012/01/30 10:42:23 sgliske
41  * strip containers now contain adc values for
42  * all time bins. Also fixed bug where setType modified the timebin
43  * rather than the type.
44  *
45  * Revision 1.1 2012/01/04 19:15:34 sgliske
46  * Reintroduced support for the FGT in MuDst
47  *
48  *
49  **************************************************************************/
50 
51 #include "StMuFgtStrip.h"
52 #include "StEvent/StFgtStrip.h"
53 #include "StFgtUtil/StFgtConsts.h"
54 #include <assert.h>
55 
56 StMuFgtStrip::StMuFgtStrip() : mGeoId(-1), mAdcStartIdx(-1), mNumSavedTimeBins(-1), mClusterSeedType(kFgtSeedTypeNo), mCharge(-1), mChargeUncert(10000) {
58  //above assert not necessary anymore since we take number of time bins from the StFgtCollection, should be the same
59 
60 };
61 
63  mGeoId( other.getGeoId() ),
64  mAdcStartIdx(-1),
65  mNumSavedTimeBins(-1),
66  mClusterSeedType( other.getClusterSeedType() ),
67  mCharge( other.getCharge() ),
68  mChargeUncert( other.getChargeUncert() ){
69 
70  assert( kFgtNumTimeBins == kMuFgtNumTimeBins ); // fix the StFgtConsts.h file if this fails
71 };
72 
73 StMuFgtStrip& StMuFgtStrip::operator=(const StFgtStrip& other ){
74  mGeoId = other.getGeoId();
75  mAdcStartIdx = -1;
76  mNumSavedTimeBins = -1;
77  mClusterSeedType = other.getClusterSeedType();
78  mCharge = other.getCharge();
79  mChargeUncert = other.getChargeUncert();
80 
81  assert( kFgtNumTimeBins == kMuFgtNumTimeBins ); // fix the StFgtConsts.h file if this fails
82 
83  return *this;
84 };
85 
86 ClassImp(StMuFgtStrip);