1 #ifndef CSCSegment_CSCSegAlgoRU_h 2 #define CSCSegment_CSCSegAlgoRU_h 27 #include <Math/Functions.h> 28 #include <Math/SVector.h> 29 #include <Math/SMatrix.h> 52 typedef ROOT::Math::SVector<double,6>
SVector6;
81 std::vector<CSCSegment>
run(
const CSCChamber* aChamber,
const ChamberHitContainer& rechits);
96 const BoolContainer& used,
const LayerIndex& layerIndex,
97 const ChamberHitContainerCIt i1,
const ChamberHitContainerCIt i2);
103 bool isSegmentGood(
const ChamberHitContainer& rechitsInChamber)
const;
108 void flagHitsAsUsed(
const ChamberHitContainer& rechitsInChamber,BoolContainer& used)
const;
bool areHitsCloseInR(const CSCRecHit2D *h1, const CSCRecHit2D *h2) const
Utility functions.
ROOT::Math::SVector< double, 6 > SVector6
Typedefs.
void flagHitsAsUsed(const ChamberHitContainer &rechitsInChamber, BoolContainer &used) const
std::vector< const CSCRecHit2D * >::const_iterator ChamberHitContainerCIt
bool isSegmentGood(const ChamberHitContainer &rechitsInChamber) const
void updateParameters(void)
virtual ~CSCSegAlgoRU()
Destructor.
std::vector< CSCSegment > run(const CSCChamber *aChamber, const ChamberHitContainer &rechits)
bool isHitNearSegment(const CSCRecHit2D *h) const
bool replaceHit(const CSCRecHit2D *h, int layer)
ChamberHitContainer proto_segment
float fit_r_phi(SVector6 points, int layer) const
std::vector< CSCSegment > buildSegments(const ChamberHitContainer &rechits)
const CSCChamber * theChamber
void tryAddingHitsToSegment(const ChamberHitContainer &rechitsInChamber, const BoolContainer &used, const LayerIndex &layerIndex, const ChamberHitContainerCIt i1, const ChamberHitContainerCIt i2)
void compareProtoSegment(const CSCRecHit2D *h, int layer)
CSCSegAlgoRU(const edm::ParameterSet &ps)
Constructor.
std::vector< const CSCRecHit2D * > ChamberHitContainer
std::vector< bool > BoolContainer
std::vector< int > LayerIndex
float phiAtZ(float z) const
bool areHitsCloseInGlobalPhi(const CSCRecHit2D *h1, const CSCRecHit2D *h2) const
float fitX(SVector6 points, SVector6 errors, int ir, int ir2, float &chi2_str)
bool hasHitOnLayer(int layer) const
void baseline(int n_seg_min)
bool addHit(const CSCRecHit2D *hit, int layer)
Utility functions.
std::unique_ptr< CSCSegFit > sfit_
void increaseProtoSegment(const CSCRecHit2D *h, int layer, int chi2_factor)