FairRoot/PandaRoot
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 
29 
30 
32 {
33 }
34 
36 : SpacepointMeasurement(fNparHitRep)
37 {
38 }
39 
40 
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 
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(PndHitRecoHit2)
virtual ~PndHitRecoHit2()
A planar (x,y) reco hit & its sensor plane.
Double_t
TClonesArray * point
Definition: anaLmdDigi.C:29
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