CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCRecHitBaseAlgo.h
Go to the documentation of this file.
1 #ifndef RecoLocalMuon_RPCRecHitBaseAlgo_H
2 #define RecoLocalMuon_RPCRecHitBaseAlgo_H
3 
18 
21 
22 class RPCCluster;
23 class RPCRoll;
24 class RPCDetId;
25 
26 namespace edm {
27  class EventSetup;
28 }
29 
31  public:
34 
36  virtual ~RPCRecHitBaseAlgo() {};
37 
39  virtual void setES(const edm::EventSetup& setup) = 0;
40 
42  virtual edm::OwnVector<RPCRecHit> reconstruct(const RPCRoll& roll,
43  const RPCDetId& rpcId,
44  const RPCDigiCollection::Range& digiRange,
45  const RollMask& mask);
46 
48  virtual bool compute(const RPCRoll& roll,
49  const RPCCluster& cl,
52  float& time, float& timeErr) const = 0;
53 
56  virtual bool compute(const RPCRoll& roll,
57  const RPCCluster& cl,
58  const float& angle,
59  const GlobalPoint& globPos,
62  float& time, float& timeErr) const = 0;
63 };
64 #endif
virtual ~RPCRecHitBaseAlgo()
Destructor.
math::XYZPoint Point
virtual bool compute(const RPCRoll &roll, const RPCCluster &cl, LocalPoint &Point, LocalError &error, float &time, float &timeErr) const =0
standard local recHit computation
virtual void setES(const edm::EventSetup &setup)=0
Pass the Event Setup to the algo at each event.
std::bitset< maskSIZE > RollMask
Definition: RPCRollMask.h:7
RPCRecHitBaseAlgo(const edm::ParameterSet &config)
Constructor.
std::pair< const_iterator, const_iterator > Range
virtual edm::OwnVector< RPCRecHit > reconstruct(const RPCRoll &roll, const RPCDetId &rpcId, const RPCDigiCollection::Range &digiRange, const RollMask &mask)
Build all hits in the range associated to the rpcId, at the 1st step.
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11