CMS 3D CMS Logo

DTRecHitBaseAlgo.h
Go to the documentation of this file.
1 #ifndef RecoLocalMuon_DTRecHitBaseAlgo_H
2 #define RecoLocalMuon_DTRecHitBaseAlgo_H
3 
14 
18 
19 class DTDigi;
20 class DTLayer;
21 class DTLayerId;
22 class DTTTrigBaseSync;
23 
24 namespace edm {
25  class ParameterSet;
26  class EventSetup;
27 } // namespace edm
28 
30 public:
33 
35  virtual ~DTRecHitBaseAlgo();
36 
38  virtual void setES(const edm::EventSetup& setup) = 0;
39 
42  const DTLayerId& layerId,
43  const DTDigiCollection::Range& digiRange);
44 
49  virtual bool compute(const DTLayer* layer,
50  const DTDigi& digi,
51  LocalPoint& leftPoint,
52  LocalPoint& rightPoint,
53  LocalError& error) const = 0;
54 
61  virtual bool compute(const DTLayer* layer,
62  const DTRecHit1D& recHit1D,
63  const float& angle,
64  DTRecHit1D& newHit1D) const = 0;
65 
73  virtual bool compute(const DTLayer* layer,
74  const DTRecHit1D& recHit1D,
75  const float& angle,
76  const GlobalPoint& globPos,
77  DTRecHit1D& newHit1D) const = 0;
78 
79 protected:
80  // The module to be used for digi time synchronization
81  std::unique_ptr<DTTTrigBaseSync> theSync;
82 };
83 #endif
DTTTrigBaseSync
Definition: DTTTrigBaseSync.h:19
edm
HLT enums.
Definition: AlignableModifier.h:19
DTRecHitBaseAlgo
Definition: DTRecHitBaseAlgo.h:29
DTRecHit1D
Definition: DTRecHit1D.h:25
relativeConstraints.error
error
Definition: relativeConstraints.py:53
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
DTRecHitBaseAlgo::reconstruct
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.
Definition: DTRecHitBaseAlgo.cc:24
config
Definition: config.py:1
DTRecHitBaseAlgo::~DTRecHitBaseAlgo
virtual ~DTRecHitBaseAlgo()
Destructor.
Definition: DTRecHitBaseAlgo.cc:21
DTRecHitBaseAlgo::theSync
std::unique_ptr< DTTTrigBaseSync > theSync
Definition: DTRecHitBaseAlgo.h:81
LocalError.h
Point3DBase< float, LocalTag >
DTLayerId
Definition: DTLayerId.h:12
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
LocalError
Definition: LocalError.h:12
DTRecHit1DPair.h
DTRecHitBaseAlgo::DTRecHitBaseAlgo
DTRecHitBaseAlgo(const edm::ParameterSet &config)
Constructor.
Definition: DTRecHitBaseAlgo.cc:17
edm::EventSetup
Definition: EventSetup.h:57
DTLayer
Definition: DTLayer.h:25
DTRecHitBaseAlgo::setES
virtual void setES(const edm::EventSetup &setup)=0
Pass the Event Setup to the algo at each event.
LocalPoint.h
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
DTDigi
Definition: DTDigi.h:17
MuonDigiCollection::Range
std::pair< const_iterator, const_iterator > Range
Definition: MuonDigiCollection.h:95
DTDigiCollection.h
EventSetup
OwnVector.h
DTRecHitBaseAlgo::compute
virtual bool compute(const DTLayer *layer, const DTDigi &digi, LocalPoint &leftPoint, LocalPoint &rightPoint, LocalError &error) const =0
GlobalPoint.h
edm::OwnVector
Definition: OwnVector.h:24