CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTRecHitBaseAlgo.h
Go to the documentation of this file.
1 #ifndef RecoLocalMuon_DTRecHitBaseAlgo_H
2 #define RecoLocalMuon_DTRecHitBaseAlgo_H
3 
16 
20 
21 class DTDigi;
22 class DTLayer;
23 class DTLayerId;
24 class DTTTrigBaseSync;
25 
26 namespace edm {
27  class ParameterSet;
28  class EventSetup;
29 }
30 
31 
32 
33 
34 
36 
37  public:
38 
41 
43  virtual ~DTRecHitBaseAlgo();
44 
45 
47  virtual void setES(const edm::EventSetup& setup) = 0;
48 
49 
52  const DTLayerId& layerId,
53  const DTDigiCollection::Range& digiRange);
54 
55 
60  virtual bool compute(const DTLayer* layer,
61  const DTDigi& digi,
62  LocalPoint& leftPoint,
63  LocalPoint& rightPoint,
64  LocalError& error) const = 0 ;
65 
66 
73  virtual bool compute(const DTLayer* layer,
74  const DTRecHit1D& recHit1D,
75  const float& angle,
76  DTRecHit1D& newHit1D) const = 0;
77 
78 
86  virtual bool compute(const DTLayer* layer,
87  const DTRecHit1D& recHit1D,
88  const float& angle,
89  const GlobalPoint& globPos,
90  DTRecHit1D& newHit1D) const = 0;
91 
92  protected:
93  // The module to be used for digi time synchronization
95 
96 };
97 #endif
98 
99 
100 
101 
virtual ~DTRecHitBaseAlgo()
Destructor.
virtual edm::OwnVector< DTRecHit1DPair > reconstruct(const DTLayer *layer, const DTLayerId &layerId, const DTDigiCollection::Range &digiRange)
Build all hits in the range associated to the layerId, at the 1st step.
DTRecHitBaseAlgo(const edm::ParameterSet &config)
Constructor.
virtual void setES(const edm::EventSetup &setup)=0
Pass the Event Setup to the algo at each event.
virtual bool compute(const DTLayer *layer, const DTDigi &digi, LocalPoint &leftPoint, LocalPoint &rightPoint, LocalError &error) const =0
Definition: DTDigi.h:19
DTTTrigBaseSync * theSync
std::pair< const_iterator, const_iterator > Range
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11