Go to the documentation of this file. 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>
48 typedef ROOT::Math::SVector<double, 6>
SVector6;
87 std::unique_ptr<CSCSegFit>
sfit =
nullptr;
void updateParameters(AlgoState &aState) const
bool replaceHit(AlgoState &aState, const CSCRecHit2D *h, int layer) const
std::vector< const CSCRecHit2D * > ChamberHitContainer
void tryAddingHitsToSegment(AlgoState &aState, const ChamberHitContainer &rechitsInChamber, const BoolContainer &used, const LayerIndex &layerIndex, const ChamberHitContainerCIt i1, const ChamberHitContainerCIt i2) const
std::vector< CSCSegment > run(const CSCChamber *aChamber, const ChamberHitContainer &rechits) override
std::vector< const CSCRecHit2D * >::const_iterator ChamberHitContainerCIt
std::unique_ptr< CSCSegFit > sfit
void baseline(AlgoState &aState, int n_seg_min) const
void increaseProtoSegment(AlgoState &aState, const CSCRecHit2D *h, int layer, int chi2_factor) const
CSCSegAlgoRU(const edm::ParameterSet &ps)
Constructor.
std::vector< bool > BoolContainer
std::vector< int > LayerIndex
constexpr std::array< uint8_t, layerIndexSize > layer
bool hasHitOnLayer(const AlgoState &aState, int layer) const
~CSCSegAlgoRU() override
Destructor.
void flagHitsAsUsed(const AlgoState &aState, const ChamberHitContainer &rechitsInChamber, BoolContainer &used) const
bool isSegmentGood(const AlgoState &aState, const ChamberHitContainer &rechitsInChamber) const
bool areHitsCloseInGlobalPhi(const AlgoState &aState, const CSCRecHit2D *h1, const CSCRecHit2D *h2) const
const CSCChamber * aChamber
float fitX(const AlgoState &aState, SVector6 points, SVector6 errors, int ir, int ir2, float &chi2_str) const
bool addHit(AlgoState &aState, const CSCRecHit2D *hit, int layer) const
Utility functions.
std::vector< CSCSegment > buildSegments(const CSCChamber *aChamber, const ChamberHitContainer &rechits) const
ChamberHitContainer proto_segment
ROOT::Math::SVector< double, 6 > SVector6
Typedefs.
float phiAtZ(const AlgoState &aState, float z) const
bool isHitNearSegment(const AlgoState &aState, const CSCRecHit2D *h) const
float fit_r_phi(const AlgoState &aState, const SVector6 &points, int layer) const
bool areHitsCloseInR(const AlgoState &aState, const CSCRecHit2D *h1, const CSCRecHit2D *h2) const
Utility functions.
void compareProtoSegment(AlgoState &aState, const CSCRecHit2D *h, int layer) const