StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuFgtCluster.cxx
1 /***************************************************************************
2  *
3  * $Id: StMuFgtCluster.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: StMuFgtCluster.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 2012/12/12 00:36:03 sangalin
19  * Merged in updated StMuFgtCluster class format from Anselm Vossen.
20  *
21  * Revision 1.3 2012/07/20 16:11:24 sgliske
22  * Added StFgtStripAssociation, and removed all dynamically
23  * allocated memory from StMuFgt* containers.
24  * Also removed StMuFgtInfo
25  *
26  * Revision 1.2 2012/01/28 10:47:12 sgliske
27  * Added cluster charge uncertainty to containers
28  *
29  * Revision 1.1 2012/01/04 19:15:34 sgliske
30  * Reintroduced support for the FGT in MuDst
31  *
32  *
33  **************************************************************************/
34 
35 #include "StMuFgtCluster.h"
36 #include "StEvent/StFgtHit.h"
37 
38 // constructor
39 StMuFgtCluster::StMuFgtCluster( Int_t centralStripGeoId, Int_t firstStripAssociationIdx, Int_t maxTimeBin, Int_t maxAdc,Int_t numStrips, Float_t charge, Float_t chargeUncert, Float_t r, Float_t errR, Float_t phi, Float_t errPhi, Float_t evenOddChargeAsy ) :
40  mCentralStripGeoId( centralStripGeoId ),
41  mFirstStripAssociationIdx( firstStripAssociationIdx ),
42  mMaxTimeBin( maxTimeBin ),
43  mMaxAdc( maxAdc ),
44  mNumStrips( numStrips ),
45  mCharge( charge ),
46  mChargeUncert( chargeUncert ),
47  mR( r ),
48  mErrR( errR ),
49  mPhi( phi ),
50  mErrPhi( errPhi ),
51  mEvenOddChargeAsy(evenOddChargeAsy){ /* */ };
52 
53 
54 // converting from StFgtHit
55 StMuFgtCluster::StMuFgtCluster( const StFgtHit& fgtHit ) :
56  mCentralStripGeoId( fgtHit.getCentralStripGeoId() ),
57  mCharge( fgtHit.charge() ),
58  mChargeUncert( fgtHit.getChargeUncert() ),
59  mR( fgtHit.getPositionR() ),
60  mErrR( fgtHit.getErrorR() ),
61  mPhi( fgtHit.getPositionPhi() ),
62  mErrPhi( fgtHit.getErrorPhi() ){
63  mNumStrips = fgtHit.getStripWeightMap().size();
64  mMaxTimeBin = fgtHit.getMaxTimeBin();
65  mMaxAdc= fgtHit.getMaxAdc();
66  mEvenOddChargeAsy = fgtHit.getEvenOddChargeAsy();
67 };
68 
69 ClassImp( StMuFgtCluster );