FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
tracking
ftscatracking
code
Performance
PndFTSCAMCPoint.cxx
Go to the documentation of this file.
1
// $Id: PndFTSCAMCPoint.cxx,v 1.2 2010/09/01 10:38:27 ikulakov Exp $
2
//***************************************************************************
3
// This file is property of and copyright by the ALICE HLT Project *
4
// ALICE Experiment at CERN, All rights reserved. *
5
// *
6
// Primary Authors: Sergey Gorbunov <sergey.gorbunov@kip.uni-heidelberg.de> *
7
// Ivan Kisel <kisel@kip.uni-heidelberg.de> *
8
// for The ALICE HLT Project. *
9
// *
10
// Developed by: Igor Kulakov <I.Kulakov@gsi.de> *
11
// Maksym Zyzak <M.Zyzak@gsi.de> *
12
// *
13
// Permission to use, copy, modify and distribute this software and its *
14
// documentation strictly for non-commercial purposes is hereby granted *
15
// without fee, provided that the above copyright notice appears in all *
16
// copies and that both the copyright notice and this permission notice *
17
// appear in the supporting documentation. The authors make no claims *
18
// about the suitability of this software for any purpose. It is *
19
// provided "as is" without express or implied warranty. *
20
//***************************************************************************
21
22
#include "
PndFTSCAMCPoint.h
"
23
#include "
PndFTSCAMath.h
"
24
#include "
PndFtsPoint.h
"
25
26
PndFTSCAMCPoint::PndFTSCAMCPoint
()
27
:
fX
( 0 ),
fY
( 0 ),
fZ
( 0 ), fSx( 0 ), fSy( 0 ), fSz( 0 ), fTime( 0 ), fISlice( 0 ), fTrackID( 0 )
28
{
29
//* Default constructor
30
}
31
32
ostream
&
operator<<
(
ostream
&
out
,
const
PndFTSCALocalMCPoint
&
a
)
33
{
34
out << a.
fX
<<
" "
<< a.
fY
<<
" "
<< a.
fZ
<< std::endl;
35
out << a.
fPx
<<
" "
<< a.
fPy
<<
" "
<< a.
fPz
<<
" "
<< a.
fQP
<< std::endl;
36
out << a.
fISlice
<<
" "
<< a.
fIRow
<<
" "
<< a.
fTrackI
<<
" "
<< a.
fTrackID
<< std::endl;
37
return
out
;
38
}
39
40
41
istream
&
operator>>
(
istream
& in,
PndFTSCALocalMCPoint
&
a
)
42
{
43
in >> a.
fX
>> a.
fY
>> a.
fZ
;
44
in >> a.
fPx
>> a.
fPy
>> a.
fPz
>> a.
fQP
;
45
in >> a.
fISlice
>> a.
fIRow
>> a.
fTrackI
>> a.
fTrackID
;
46
return
in;
47
}
48
49
void
PndFTSCALocalMCPoint::SetPoint
(
PndFtsPoint
* ppp,
Double_t
qq)
50
{
51
fX
= ppp->GetX();
52
fY
= ppp->GetY();
53
fZ
= ppp->GetZ();
54
fPx
= ppp->GetPx();
55
fPy
= ppp->GetPy();
56
fPz
= ppp->GetPz();
57
fQP
= qq/
sqrt
(
fPx
*
fPx
+
fPy
*
fPy
+
fPz
*
fPz
);
58
fISlice
= 0;
59
//std::cout<<"ppp->GetLayerID() "<<ppp->GetLayerID()<<std::endl;
60
fIRow
= ppp->
GetLayerID
();
61
fTrackI
= ppp->GetTrackID();
62
fTrackID
= ppp->GetTrackID();
63
}
64
65
PndFTSCALocalMCPoint
&
PndFTSCALocalMCPoint::operator =
(
const
PndFTSCALocalMCPoint
&rhs)
66
{
67
fX
= rhs.
X
();
68
fY
= rhs.
Y
();
69
fZ
= rhs.
Z
();
70
fPx
= rhs.
Px
();
71
fPy
= rhs.
Py
();
72
fPz
= rhs.
Pz
();
73
fQP
= rhs.
QP
();
74
fISlice
= 0;
75
fIRow
= rhs.
IRow
();
76
fTrackI
= rhs.
TrackI
();
77
fTrackID
= rhs.
TrackID
();
78
79
return
*
this
;
80
}
81
82
void
PndFTSCALocalMCPoint::RotateXY
(
float
alpha
) {
83
const
float
cA =
CAMath::Cos
( alpha );
84
const
float
sA =
CAMath::Sin
( alpha );
85
{
86
const
float
x
=
X
(),
y
=
Y
();
87
SetX
( x*cA +
y
*sA );
88
SetY
( -x*sA +
y
*cA );
89
}
90
{
91
const
float
x
=
Px
(),
y
=
Py
();
92
SetPx
( x*cA +
y
*sA );
93
SetPy
( -x*sA +
y
*cA );
94
}
95
}
PndFTSCALocalMCPoint::Px
float Px() const
Definition:
PndFTSCAMCPoint.h:86
PndFtsPoint.h
PndFTSCALocalMCPoint
Definition:
PndFTSCAMCPoint.h:73
PndFTSCALocalMCPoint::QP
float QP() const
Definition:
PndFTSCAMCPoint.h:89
PndFTSCAMath.h
sqrt
friend F32vec4 sqrt(const F32vec4 &a)
Definition:
P4_F32vec4.h:29
PndFTSCALocalMCPoint::fPx
float fPx
Definition:
PndFTSCAMCPoint.h:130
CAMath::Sin
static T Sin(const T &x)
Definition:
PndCAMath.h:42
fX
Double_t fX
Definition:
PndCaloDraw.cxx:34
PndFTSCALocalMCPoint::fY
float fY
Definition:
PndFTSCAMCPoint.h:128
PndFTSCALocalMCPoint::fPz
float fPz
Definition:
PndFTSCAMCPoint.h:132
operator<<
std::ostream & operator<<(std::ostream &o, const PndEventInfo &a)
Definition:
PndEventInfo.cxx:68
PndFTSCALocalMCPoint::SetPoint
void SetPoint(PndFtsPoint *ppp, Double_t qq)
Definition:
PndFTSCAMCPoint.cxx:49
CAMath::Cos
static T Cos(const T &x)
Definition:
PndCAMath.h:43
fZ
Double_t fZ
Definition:
PndCaloDraw.cxx:34
PndFTSCALocalMCPoint::Y
float Y() const
Definition:
PndFTSCAMCPoint.h:84
PndFTSCALocalMCPoint::SetY
void SetY(float v)
Definition:
PndFTSCAMCPoint.h:100
PndFTSCALocalMCPoint::SetPy
void SetPy(float v)
Definition:
PndFTSCAMCPoint.h:103
PndFTSCALocalMCPoint::fQP
float fQP
Definition:
PndFTSCAMCPoint.h:133
PndFTSCALocalMCPoint::Py
float Py() const
Definition:
PndFTSCAMCPoint.h:87
a
Int_t a
Definition:
anaLmdDigi.C:126
std::ostream
basic_ostream< char, char_traits< char > > ostream
Definition:
PndFTSCATrackParamVector.h:1258
PndFTSCALocalMCPoint::TrackID
int TrackID() const
Definition:
PndFTSCAMCPoint.h:93
Double_t
Double_t
Definition:
SimCompleteLinkDef.h:6
PndFTSCALocalMCPoint::fPy
float fPy
Definition:
PndFTSCAMCPoint.h:131
std::istream
basic_istream< char, char_traits< char > > istream
Definition:
PndFTSCATrackParamVector.h:1256
out
TFile * out
Definition:
reco_muo.C:20
PndFTSCALocalMCPoint::Z
float Z() const
Definition:
PndFTSCAMCPoint.h:85
PndFTSCALocalMCPoint::X
float X() const
Definition:
PndFTSCAMCPoint.h:83
PndFTSCALocalMCPoint::fIRow
int fIRow
Definition:
PndFTSCAMCPoint.h:138
PndFTSCALocalMCPoint::RotateXY
void RotateXY(float alpha)
Definition:
PndFTSCAMCPoint.cxx:82
fY
Double_t fY
Definition:
PndCaloDraw.cxx:34
PndFTSCAMCPoint.h
operator>>
TBuffer & operator>>(TBuffer &buf, PndAnaPidSelector *&obj)
Definition:
PndAnaPidSelector.cxx:34
PndFtsPoint
Definition:
PndFtsPoint.h:10
PndFTSCALocalMCPoint::fTrackID
int fTrackID
Definition:
PndFTSCAMCPoint.h:140
x
Double_t x
Definition:
createRootFscGeometryFile.C:159
PndFTSCALocalMCPoint::TrackI
int TrackI() const
Definition:
PndFTSCAMCPoint.h:92
PndFTSCALocalMCPoint::SetPx
void SetPx(float v)
Definition:
PndFTSCAMCPoint.h:102
PndFTSCALocalMCPoint::fX
float fX
Definition:
PndFTSCAMCPoint.h:127
y
Double_t y
Definition:
createRootFscGeometryFile.C:159
alpha
double alpha
Definition:
f_Init.h:9
PndFTSCALocalMCPoint::SetX
void SetX(float v)
Definition:
PndFTSCAMCPoint.h:99
PndFtsPoint::GetLayerID
Int_t GetLayerID()
Definition:
PndFtsPoint.h:90
PndFTSCALocalMCPoint::operator=
PndFTSCALocalMCPoint & operator=(const PndFTSCALocalMCPoint &rhs)
Definition:
PndFTSCAMCPoint.cxx:65
PndFTSCALocalMCPoint::Pz
float Pz() const
Definition:
PndFTSCAMCPoint.h:88
PndFTSCALocalMCPoint::fISlice
int fISlice
Definition:
PndFTSCAMCPoint.h:137
PndFTSCALocalMCPoint::fTrackI
int fTrackI
Definition:
PndFTSCAMCPoint.h:139
PndFTSCALocalMCPoint::IRow
int IRow() const
Definition:
PndFTSCAMCPoint.h:91
PndFTSCAMCPoint::PndFTSCAMCPoint
PndFTSCAMCPoint()
Definition:
PndFTSCAMCPoint.cxx:26
PndFTSCALocalMCPoint::fZ
float fZ
Definition:
PndFTSCAMCPoint.h:129
Generated on Wed Apr 3 2019 08:43:55 for FairRoot/PandaRoot by
1.8.5