Changes in external/TrackCovariance/ObsTrk.cc [00b14d5:ebf40fd] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/TrackCovariance/ObsTrk.cc
r00b14d5 rebf40fd 74 74 fCovILC.ResizeTo(5, 5); 75 75 fGenPar = XPtoPar(fGenX, fGenP, Q); 76 fGenParMm = ParToMm(fGenPar);77 76 fGenParACTS = ParToACTS(fGenPar); 78 77 fGenParILC = ParToILC(fGenPar); 79 78 // 80 79 fObsPar = GenToObsPar(fGenPar); 81 fObsParMm = ParToMm(fObsPar);82 80 fObsParACTS = ParToACTS(fObsPar); 83 81 fObsParILC = ParToILC(fObsPar); … … 85 83 fObsP = ParToP(fObsPar); 86 84 fObsQ = ParToQ(fObsPar); 87 fCovMm = CovToMm(fCov);88 85 fCovACTS = CovToACTS(fObsPar, fCov); 89 86 fCovILC = CovToILC(fCov); … … 134 131 Double_t ZinNeg = fG->GetZminNeg(); 135 132 Bool_t inside = TrkUtil::IsInside(fGenX, Rin, ZinNeg, ZinPos); // Check if in inner box 136 SolTrack* trk = new SolTrack(fGenX, fGenP, fG);137 Double_t Xfirst, Yfirst, Zfirst;138 Int_t iLay = trk->FirstHit(Xfirst, Yfirst, Zfirst);139 TVector3 fXfirst(Xfirst, Yfirst, Zfirst);140 133 if (inside) 141 134 { … … 151 144 //std::cout<<"ObsTrk:: outside: x= "<<fGenX(0)<<", y= "<<fGenX(1) 152 145 // <<", z= "<<fGenX(2)<<std::endl; 146 SolTrack* trk = new SolTrack(fGenX, fGenP, fG); 153 147 Bool_t Res = kTRUE; Bool_t MS = kTRUE; 154 148 trk->CovCalc(Res, MS); // Calculate covariance matrix 155 Cov = trk->Cov(); 156 } // Track covariance157 delete trk;149 Cov = trk->Cov(); // Track covariance 150 delete trk; 151 } 158 152 // 159 153 fCov = Cov;
Note:
See TracChangeset
for help on using the changeset viewer.