Changes in external/TrackCovariance/SolGridCov.cc [170a11d:ebf40fd] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/TrackCovariance/SolGridCov.cc
r170a11d rebf40fd 103 103 return Accept; 104 104 } 105 106 105 // 106 // Detailed acceptance check 107 // 108 Bool_t SolGridCov::IsAccepted(TVector3 x, TVector3 p, SolGeom* G) 109 { 110 Bool_t Accept = kFALSE; 111 // 112 // Check if track origin is inside beampipe and betwen the first disks 113 // 114 Double_t Rin = G->GetRmin(); 115 Double_t ZinPos = G->GetZminPos(); 116 Double_t ZinNeg = G->GetZminNeg(); 117 Bool_t inside = TrkUtil::IsInside(x, Rin, ZinNeg, ZinPos); // Check if in inner box 118 if (inside) Accept = IsAccepted(p); 119 else 120 { 121 SolTrack* trk = new SolTrack(x, p, G); 122 if (trk->nmHit() >= fNminHits)Accept = kTRUE; 123 delete trk; 124 } 125 // 126 return Accept; 127 } 128 129 // 107 130 // Find bin in grid 108 131 Int_t SolGridCov::GetMinIndex(Double_t xval, Int_t N, TVectorD x) … … 193 216 if (!Chl.Decompose()) 194 217 { 195 cout << "SolGridCov::GetCov: Interpolated matrix not positive definite. Recovering ...." <<endl;218 std::cout << "SolGridCov::GetCov: Interpolated matrix not positive definite. Recovering ...." << std::endl; 196 219 TMatrixDSym rCv = MakePosDef(CvN); CvN = rCv; 197 220 TMatrixDSym DCv(5); DCv.Zero();
Note:
See TracChangeset
for help on using the changeset viewer.