Skip to content

Commit a7914db

Browse files
committed
Address AI comments
1 parent 1120572 commit a7914db

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

KinKalGeom/inc/CRV.hh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@ namespace mu2e {
1717
};
1818
class CRV {
1919
public:
20-
// default constructor (empty)
21-
CRV();
2220
// construct with rectangles representing the midplane of CRV sectors (shields)
2321
CRV(std::vector<KKCRVSector> const& sectors) : sectors_(sectors) {}
2422
// accessors
2523
auto const& sectors() const { return sectors_; }
2624
auto const& sector(size_t isect) const { return sectors_[isect].sector_; }
2725
auto const& sectorName(size_t isect) const { return sectors_[isect].sname_; }
2826
auto const& sectorHalfWidth(size_t isect) const { return sectors_[isect].whw_; }
29-
3027
private:
3128
std::vector<KKCRVSector> sectors_;
3229
};

Mu2eKinKal/inc/ExtrapolateCRV.hh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ namespace mu2e {
7676
auto stime = tdir == TimeDir::forwards ? ktraj.range().begin()+epsilon : ktraj.range().end()-epsilon;
7777
auto etime = tdir == TimeDir::forwards ? ktraj.range().end() : ktraj.range().begin();
7878
TimeRange trange(stime,etime,false);
79-
// test from the start of the end poiece
79+
// test from the start of the end piece
8080
auto pos = ktraj.position3(stime);
8181
auto vel = ktraj.velocity(stime);
8282
if(debug_ > 4)std::cout << "CRV extrap tdir " << tdir << " stime " << stime << " etime " << etime << " vel " << vel << " pos " << pos << std::endl;
@@ -94,9 +94,9 @@ namespace mu2e {
9494
inters_.emplace_back(newinter,sector.whw_,(int)isect);
9595
if(debug_ > 1)std::cout << "Good CRV " << newinter << " sector " << sector.sname_ << std::endl;
9696
} else if ( newinter.onsurface_ && newinter.inbounds_) { // inbounds might be too strict for CentralHelix tracks, will need to check TODO
97-
retval = trange.beyond(newinter.time_,tdir);
97+
retval |= trange.beyond(newinter.time_,tdir);
9898
// there's a potential intersection, but the trajectory hasn't gotten there yet. Tell the track to keep extending
99-
if(retval && debug_ > 2)std::cout << "Potential CRV " << newinter << std::endl;
99+
if(trange.beyond(newinter.time_,tdir) && debug_ > 2)std::cout << "Potential CRV " << newinter << std::endl;
100100
}
101101
}
102102
// sort intersections in the time direction

Mu2eKinKal/inc/KKFitSettings.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ namespace mu2e {
116116
fhicl::Atom<float> interTol { Name("IntersectionTolerance"), Comment("Tolerance for surface intersections (mm)") };
117117
fhicl::Atom<float> MaxDt { Name("MaxDt"), Comment("Maximum time to extrapolate a fit (ns)") };
118118
fhicl::Atom<float> MaxDtStep { Name("MaxDtStep"), Comment("Maximum time step when extrapolating a fit (ns)") };
119-
fhicl::Atom<float> MinV { Name("MinV"), Comment("Minimum Y vel to extrapolate a fit") };
119+
fhicl::Atom<float> MinV { Name("MinV"), Comment("Minimum velocity perp to the surface extrapolate a straight track fit") };
120120
fhicl::Atom<bool> BackToTracker { Name("BackToTracker"), Comment("Extrapolate reflecting tracks back to the tracker") };
121121
fhicl::Atom<bool> ToTrackerEnds { Name("ToTrackerEnds"), Comment("Extrapolate tracks to the tracker ends") };
122122
fhicl::Atom<bool> Upstream { Name("Upstream"), Comment("Extrapolate tracks upstream") };

0 commit comments

Comments
 (0)