]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDtrackletMCM.cxx
Remove obsolete classes
[u/mrichter/AliRoot.git] / TRD / AliTRDtrackletMCM.cxx
CommitLineData
52c19022 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/* $Id: AliTRDtrackletMCM.cxx 28397 2008-09-02 09:33:00Z cblume $ */
17
18////////////////////////////////////////////////////////////////////////////
19// //
20// MCM tracklet //
21// //
22// Author: J. Klein (Jochen.Klein@cern.ch) //
23// //
24////////////////////////////////////////////////////////////////////////////
25
26#include "AliTRDtrackletMCM.h"
27#include "AliLog.h"
28
29ClassImp(AliTRDtrackletMCM)
30
31AliTRDtrackletMCM::AliTRDtrackletMCM(UInt_t trackletWord) :
32 AliTRDtrackletBase(),
4cc89512 33 fGeo(0x0),
52c19022 34 fHCId(-1),
35 fTrackletWord(trackletWord),
36 fMCM(-1),
4cc89512 37 fROB(-1),
48e5462a 38 fQ0(0),
39 fQ1(0),
4cc89512 40 fLabel(-1)
52c19022 41{
4cc89512 42 fGeo = new AliTRDgeometry();
52c19022 43}
44
45AliTRDtrackletMCM::AliTRDtrackletMCM(UInt_t trackletWord, Int_t hcid) :
46 AliTRDtrackletBase(),
4cc89512 47 fGeo(0x0),
52c19022 48 fHCId(hcid),
49 fTrackletWord(trackletWord),
50 fMCM(-1),
4cc89512 51 fROB(-1),
48e5462a 52 fQ0(0),
53 fQ1(0),
4cc89512 54 fLabel(-1)
52c19022 55{
4cc89512 56 fGeo = new AliTRDgeometry();
52c19022 57}
58
b0a41e80 59AliTRDtrackletMCM::AliTRDtrackletMCM(UInt_t trackletWord, Int_t hcid, Int_t rob, Int_t mcm) :
60 AliTRDtrackletBase(),
61 fGeo(0x0),
62 fHCId(hcid),
63 fTrackletWord(trackletWord),
64 fMCM(mcm),
65 fROB(rob),
48e5462a 66 fQ0(0),
67 fQ1(0),
b0a41e80 68 fLabel(-1)
69{
70 fGeo = new AliTRDgeometry();
71}
72
52c19022 73AliTRDtrackletMCM::AliTRDtrackletMCM(const AliTRDtrackletMCM &rhs) :
74 AliTRDtrackletBase(rhs),
4cc89512 75 fGeo(0x0),
52c19022 76 fHCId(rhs.fHCId),
77 fTrackletWord(rhs.fTrackletWord),
78 fMCM(rhs.fMCM),
4cc89512 79 fROB(rhs.fROB),
48e5462a 80 fQ0(rhs.fQ0),
81 fQ1(rhs.fQ1),
4cc89512 82 fLabel(rhs.fLabel)
52c19022 83{
4cc89512 84 fGeo = new AliTRDgeometry();
52c19022 85}
86
87AliTRDtrackletMCM::~AliTRDtrackletMCM()
88{
4cc89512 89 delete fGeo;
52c19022 90}
91
92Int_t AliTRDtrackletMCM::GetYbin() const {
93 // returns (signed) value of Y
94 if (fTrackletWord & 0x1000) {
95 return -((~(fTrackletWord-1)) & 0x1fff);
96 }
97 else {
98 return (fTrackletWord & 0x1fff);
99 }
100}
101
102Int_t AliTRDtrackletMCM::GetdY() const
103{
104 // returns (signed) value of the deflection length
105 if (fTrackletWord & (1 << 19)) {
106 return -((~((fTrackletWord >> 13) - 1)) & 0x7f);
107 }
108 else {
109 return ((fTrackletWord >> 13) & 0x7f);
110 }
111}