FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
tracking
GenfitTools
recohits2
PndHitRecoHit2.cxx
Go to the documentation of this file.
1
//-----------------------------------------------------------
2
// File and Version Information:
3
// $Id$
4
//
5
// Description:
6
// Implementation of class PndHitRecoHit2
7
// see PndHitRecoHit2.h for details
8
//
9
// Environment:
10
// Software developed for the PANDA Detector at FAIR.
11
//
12
// Author List:
13
// Sebastian Neubert TUM (original author)
14
// Ralf Kliemt Uni Bonn (application to FairHits)
15
//
16
//-----------------------------------------------------------
17
18
// C/C++ Headers ----------------------
19
// root Headers ----------------------
20
#include "TMatrixT.h"
21
#include "TMath.h"
22
// Collaborating Class Headers --------
23
// This Class' Header ------------------
24
#include "
PndHitRecoHit2.h
"
25
26
// Class Member definitions -----------
27
28
ClassImp
(
PndHitRecoHit2
);
29
30
31
PndHitRecoHit2::~PndHitRecoHit2
()
32
{
33
}
34
35
PndHitRecoHit2::PndHitRecoHit2
()
36
: SpacepointMeasurement(fNparHitRep)
37
{
38
}
39
40
41
PndHitRecoHit2::PndHitRecoHit2
(FairMCPoint*
point
)
42
: SpacepointMeasurement(fNparHitRep)
43
{
44
//std::cout<<" -I- PndHitRecoHit::PndHitRecoHit(FairMCPoint*) called."<<std::endl;
45
46
rawHitCoords_
[0] = point->GetX();
47
rawHitCoords_
[1] = point->GetY();
48
rawHitCoords_
[2] = point->GetZ();
49
50
// fixed errors on the monte carlo points
51
// we set the covariances to (500 mum)^2 by hand.
52
Double_t
sigmasq=0.05*0.05;
//cm //TODO: cm is rigt?
53
rawHitCov_
[0][0] = sigmasq;
54
rawHitCov_
[1][1] = sigmasq;
55
rawHitCov_
[2][2] = sigmasq;
56
57
}
58
59
PndHitRecoHit2::PndHitRecoHit2
(FairHit*
hit
)
60
: SpacepointMeasurement(fNparHitRep)
61
{
62
// std::cout<<" -I- PndHitRecoHit::PndHitRecoHit(PndSdsHit*) called."<<std::endl;
63
64
rawHitCoords_
[0] = hit->GetX();
65
rawHitCoords_
[1] = hit->GetY();
66
rawHitCoords_
[2] = hit->GetZ();
67
68
rawHitCov_
[0][0] = hit->GetDx() * hit->GetDx();
69
rawHitCov_
[1][1] = hit->GetDy() * hit->GetDy();
70
rawHitCov_
[2][2] = hit->GetDz() * hit->GetDz();
71
72
}
73
//============================================================================
74
75
ClassImp
ClassImp(PndHitRecoHit2)
PndHitRecoHit2::~PndHitRecoHit2
virtual ~PndHitRecoHit2()
Definition:
PndHitRecoHit2.cxx:31
PndHitRecoHit2.h
genfit::AbsMeasurement::rawHitCoords_
TVectorD rawHitCoords_
Definition:
AbsMeasurement.h:113
PndHitRecoHit2
A planar (x,y) reco hit & its sensor plane.
Definition:
PndHitRecoHit2.h:33
Double_t
Double_t
Definition:
SimCompleteLinkDef.h:6
point
TClonesArray * point
Definition:
anaLmdDigi.C:29
PndHitRecoHit2::PndHitRecoHit2
PndHitRecoHit2()
Definition:
PndHitRecoHit2.cxx:35
hit
int hit(Int_t nEvents=0, TString inFile="sim.root", TString parFile="par.root", TString inDigi="digi.root", TString outFile="hit.root", Int_t timeBased=0)
Definition:
hit.C:1
genfit::AbsMeasurement::rawHitCov_
TMatrixDSym rawHitCov_
Definition:
AbsMeasurement.h:114
Generated on Sun Aug 18 2019 03:01:30 for FairRoot/PandaRoot by
1.8.8