CMS 3D CMS Logo

VectorHitBuilderAlgorithm.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------
2 // class VectorHitBuilderAlgorithm
3 // author: ebrondol,nathera
4 // date: May, 2015
5 //---------------------------------------------------------------------------
6 
7 #ifndef RecoLocalTracker_SiPhase2VectorHitBuilder_VectorHitBuilderAlgorithm_H
8 #define RecoLocalTracker_SiPhase2VectorHitBuilder_VectorHitBuilderAlgorithm_H
9 
13 
16 
18 public:
20  const TrackerGeometry* tkGeomProd,
21  const TrackerTopology* tkTopoProd,
23  : VectorHitBuilderAlgorithmBase(conf, tkGeomProd, tkTopoProd, cpeProd){};
24  ~VectorHitBuilderAlgorithm() override = default;
25 
27  VectorHitCollection& vhAcc,
28  VectorHitCollection& vhRej,
30  edmNew::DetSetVector<Phase2TrackerCluster1D>& clustersRej) const override;
31 
32  //not implemented yet
34  const Detset& theLowerDetSet,
35  const Detset& theUpperDetSet) const;
37  Local3DPoint& posouter,
38  LocalError& errinner,
39  LocalError& errouter) const;
40  struct CurvatureAndPhi {
41  float curvature;
43  float phi;
44  };
46  Global3DPoint gPositionUpper,
47  GlobalError gErrorLower,
48  GlobalError gErrorUpper) const;
49 
51  VectorHitCollection& vhRej,
52  DetId detIdStack,
53  const StackGeomDet* stack,
55  const Detset& DSVinner,
56  const Detset& DSVouter,
57  const std::vector<bool>& phase2OTClustersToSkip = std::vector<bool>()) const override;
58 
61  Phase2TrackerCluster1DRef upper) const override;
62 
63  void fit2Dzx(const Local3DPoint lpCI,
64  const Local3DPoint lpCO,
65  const LocalError leCI,
66  const LocalError leCO,
69  AlgebraicSymMatrix22& covMatrix,
70  double& chi2) const;
71  void fit2Dzy(const Local3DPoint lpCI,
72  const Local3DPoint lpCO,
73  const LocalError leCI,
74  const LocalError leCO,
77  AlgebraicSymMatrix22& covMatrix,
78  double& chi2) const;
79 
80  void fit(float x[2],
81  float y[2],
82  float sigy[2],
85  AlgebraicSymMatrix22& covMatrix,
86  double& chi2) const;
87 };
88 
89 #endif
Vector3DBase< float, LocalTag >
DDAxes::y
VectorHitBuilderAlgorithm::buildVectorHit
VectorHit buildVectorHit(const StackGeomDet *stack, Phase2TrackerCluster1DRef lower, Phase2TrackerCluster1DRef upper) const override
Definition: VectorHitBuilderAlgorithm.cc:202
VectorHitBuilderAlgorithm::checkClustersCompatibility
bool checkClustersCompatibility(Local3DPoint &posinner, Local3DPoint &posouter, LocalError &errinner, LocalError &errouter) const
Definition: VectorHitBuilderAlgorithm.cc:70
VectorHitBuilderAlgorithm::VectorHitBuilderAlgorithm
VectorHitBuilderAlgorithm(const edm::ParameterSet &conf, const TrackerGeometry *tkGeomProd, const TrackerTopology *tkTopoProd, const ClusterParameterEstimator< Phase2TrackerCluster1D > *cpeProd)
Definition: VectorHitBuilderAlgorithm.h:19
VectorHitBuilderAlgorithm::CurvatureAndPhi::curvatureError
float curvatureError
Definition: VectorHitBuilderAlgorithm.h:42
VectorHitBuilderAlgorithm::fit2Dzy
void fit2Dzy(const Local3DPoint lpCI, const Local3DPoint lpCO, const LocalError leCI, const LocalError leCO, Local3DPoint &pos, Local3DVector &dir, AlgebraicSymMatrix22 &covMatrix, double &chi2) const
Definition: VectorHitBuilderAlgorithm.cc:316
TrackerTopology
Definition: TrackerTopology.h:16
pos
Definition: PixelAliasList.h:18
VectorHitBuilderAlgorithm::fit
void fit(float x[2], float y[2], float sigy[2], Local3DPoint &pos, Local3DVector &dir, AlgebraicSymMatrix22 &covMatrix, double &chi2) const
Definition: VectorHitBuilderAlgorithm.cc:335
VectorHitBuilderAlgorithm::checkClustersCompatibilityBeforeBuilding
bool checkClustersCompatibilityBeforeBuilding(edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D >> clusters, const Detset &theLowerDetSet, const Detset &theUpperDetSet) const
Definition: VectorHitBuilderAlgorithm.cc:49
LinearFit.h
DDAxes::x
hltPixelTracks_cff.chi2
chi2
Definition: hltPixelTracks_cff.py:25
edm::Handle
Definition: AssociativeIterator.h:50
VectorHitBuilderAlgorithm::curvatureANDphi
CurvatureAndPhi curvatureANDphi(Global3DPoint gPositionLower, Global3DPoint gPositionUpper, GlobalError gErrorLower, GlobalError gErrorUpper) const
Definition: VectorHitBuilderAlgorithm.cc:366
edm::Ref
Definition: AssociativeIterator.h:58
DetId
Definition: DetId.h:17
VectorHitBuilderAlgorithm::CurvatureAndPhi::phi
float phi
Definition: VectorHitBuilderAlgorithm.h:43
VectorHitBuilderAlgorithm::~VectorHitBuilderAlgorithm
~VectorHitBuilderAlgorithm() override=default
VectorHitBuilderAlgorithmBase
Definition: VectorHitBuilderAlgorithmBase.h:18
edmNew::DetSet
Definition: DetSetNew.h:22
Point3DBase< float, LocalTag >
VectorHitBuilderAlgorithm
Definition: VectorHitBuilderAlgorithm.h:17
VectorHitBuilderAlgorithm::CurvatureAndPhi
Definition: VectorHitBuilderAlgorithm.h:40
ClusterParameterEstimator< Phase2TrackerCluster1D >
bsc_activity_cfg.clusters
clusters
Definition: bsc_activity_cfg.py:36
svgfig.stack
stack
Definition: svgfig.py:559
edm::ParameterSet
Definition: ParameterSet.h:47
LocalError
Definition: LocalError.h:12
GlobalErrorBase< double, ErrorMatrixTag >
DetSetVector.h
VectorHitBuilderAlgorithm::CurvatureAndPhi::curvature
float curvature
Definition: VectorHitBuilderAlgorithm.h:41
VectorHitBuilderAlgorithmBase::Detset
edmNew::DetSet< Phase2TrackerCluster1D > Detset
Definition: VectorHitBuilderAlgorithmBase.h:21
VectorHit
Definition: VectorHit.h:28
edmNew::DetSetVector
Definition: DetSetNew.h:13
StackGeomDet
Definition: StackGeomDet.h:7
VectorHitBuilderAlgorithm::buildVectorHits
void buildVectorHits(VectorHitCollection &vhAcc, VectorHitCollection &vhRej, DetId detIdStack, const StackGeomDet *stack, edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D >> clusters, const Detset &DSVinner, const Detset &DSVouter, const std::vector< bool > &phase2OTClustersToSkip=std::vector< bool >()) const override
Definition: VectorHitBuilderAlgorithm.cc:79
pileupCalc.upper
upper
Definition: pileupCalc.py:213
VectorHitBuilderAlgorithm::run
void run(edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D >> clusters, VectorHitCollection &vhAcc, VectorHitCollection &vhRej, edmNew::DetSetVector< Phase2TrackerCluster1D > &clustersAcc, edmNew::DetSetVector< Phase2TrackerCluster1D > &clustersRej) const override
Definition: VectorHitBuilderAlgorithm.cc:8
VectorHitBuilderAlgorithm::fit2Dzx
void fit2Dzx(const Local3DPoint lpCI, const Local3DPoint lpCO, const LocalError leCI, const LocalError leCO, Local3DPoint &pos, Local3DVector &dir, AlgebraicSymMatrix22 &covMatrix, double &chi2) const
Definition: VectorHitBuilderAlgorithm.cc:297
ParameterSet.h
AlgebraicSymMatrix22
ROOT::Math::SMatrix< double, 2, 2, ROOT::Math::MatRepSym< double, 2 > > AlgebraicSymMatrix22
Definition: AlgebraicROOTObjects.h:20
VectorHitBuilderAlgorithmBase.h
VectorHit.h
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23
TrackerGeometry
Definition: TrackerGeometry.h:14