CMS 3D CMS Logo

CTPPSDiamondTrackRecognition.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * This is a part of CTPPS offline software.
4  * Authors:
5  * Laurent Forthomme (laurent.forthomme@cern.ch)
6  * Nicola Minafra (nicola.minafra@cern.ch)
7  *
8  ****************************************************************************/
9 
10 #ifndef RecoCTPPS_TotemRPLocal_CTPPSDiamondTrackRecognition
11 #define RecoCTPPS_TotemRPLocal_CTPPSDiamondTrackRecognition
12 
14 
17 
20 
21 #include <vector>
22 #include <unordered_map>
23 #include "TF1.h"
24 
30 {
31  public:
34 
36  void clear();
37 
39  void addHit( const CTPPSDiamondRecHit& recHit );
40 
43 
44  private:
45  struct HitParameters {
46  HitParameters( const float center, const float width ) :
47  center( center ), width( width ) {}
48  float center;
49  float width;
50  };
51  typedef std::vector<HitParameters> HitParametersVector;
52  typedef std::unordered_map<int,HitParametersVector> HitParametersVectorMap;
53 
56 
57  const float threshold_;
58  const float thresholdFromMaximum_;
59  const float resolution_;
60  const float sigma_;
61  const float startFromX_;
62  const float stopAtX_;
63 
64  float yPosition_;
65  float yWidth_;
66 
68  TF1 hit_f_;
69  HitParametersVectorMap hitParametersVectorMap_;
70  std::unordered_map<int,int> mhMap_;
71 };
72 
73 #endif
static const std::string pixelEfficiencyDefaultFunction_
Default hit function accounting for the pad spatial efficiency.
void clear()
Reset the list of hits.
Reconstructed hit in diamond detectors.
HitParametersVectorMap hitParametersVectorMap_
CTPPSDiamondTrackRecognition(const edm::ParameterSet &)
HitParameters(const float center, const float width)
std::unordered_map< int, HitParametersVector > HitParametersVectorMap
TF1 hit_f_
Function for pad efficiency.
void addHit(const CTPPSDiamondRecHit &recHit)
Feed a new hit to the tracks recognition algorithm.
Class performing smart reconstruction for CTPPS Diamond Detectors.
int produceTracks(edm::DetSet< CTPPSDiamondLocalTrack > &tracks)
Produce a collection of tracks for the current station, given its hits collection.
std::unordered_map< int, int > mhMap_
std::vector< HitParameters > HitParametersVector