CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
RPCRecHitStandardAlgo Class Reference

#include <RPCRecHitStandardAlgo.h>

Inheritance diagram for RPCRecHitStandardAlgo:
RPCRecHitBaseAlgo

Public Member Functions

virtual bool compute (const RPCRoll &roll, const RPCCluster &cluster, LocalPoint &point, LocalError &error) const
 standard local recHit computation More...
 
virtual bool compute (const RPCRoll &roll, const RPCCluster &cluster, const float &angle, const GlobalPoint &globPos, LocalPoint &point, LocalError &error) const
 
 RPCRecHitStandardAlgo (const edm::ParameterSet &config)
 Constructor. More...
 
virtual void setES (const edm::EventSetup &setup)
 Pass the Event Setup to the algo at each event. More...
 
virtual ~RPCRecHitStandardAlgo ()
 Destructor. More...
 
- Public Member Functions inherited from RPCRecHitBaseAlgo
virtual edm::OwnVector< RPCRecHitreconstruct (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. More...
 
 RPCRecHitBaseAlgo (const edm::ParameterSet &config)
 Constructor. More...
 
virtual ~RPCRecHitBaseAlgo ()
 Destructor. More...
 

Detailed Description

Concrete implementation of RPCRecHitBaseAlgo.

Author
M. Maggi – INFN Bari

Definition at line 14 of file RPCRecHitStandardAlgo.h.

Constructor & Destructor Documentation

RPCRecHitStandardAlgo::RPCRecHitStandardAlgo ( const edm::ParameterSet config)

Constructor.

Definition at line 16 of file RPCRecHitStandardAlgo.cc.

16  :
17  RPCRecHitBaseAlgo(config)
18 {
19 }
RPCRecHitBaseAlgo(const edm::ParameterSet &config)
Constructor.
RPCRecHitStandardAlgo::~RPCRecHitStandardAlgo ( )
virtual

Destructor.

Definition at line 23 of file RPCRecHitStandardAlgo.cc.

24 {
25 }

Member Function Documentation

bool RPCRecHitStandardAlgo::compute ( const RPCRoll roll,
const RPCCluster cl,
LocalPoint Point,
LocalError error 
) const
virtual

standard local recHit computation

Implements RPCRecHitBaseAlgo.

Definition at line 35 of file RPCRecHitStandardAlgo.cc.

References RPCRoll::centreOfStrip(), RPCCluster::firstStrip(), RPCCluster::lastStrip(), and RPCRoll::localError().

Referenced by compute().

39 {
40  // Get Average Strip position
41  float fstrip = (roll.centreOfStrip(cluster.firstStrip())).x();
42  float lstrip = (roll.centreOfStrip(cluster.lastStrip())).x();
43  float centreOfCluster = (fstrip + lstrip)/2;
44 
45  LocalPoint loctemp2(centreOfCluster,0.,0.);
46 
47  Point = loctemp2;
48  error = roll.localError((cluster.firstStrip()+cluster.lastStrip())/2.);
49  return true;
50 }
LocalPoint centreOfStrip(int strip) const
Definition: RPCRoll.cc:52
LocalError localError(float strip) const
Definition: RPCRoll.cc:65
bool RPCRecHitStandardAlgo::compute ( const RPCRoll roll,
const RPCCluster cl,
const float &  angle,
const GlobalPoint globPos,
LocalPoint Point,
LocalError error 
) const
virtual

local recHit computation accounting for track direction and absolute position

Implements RPCRecHitBaseAlgo.

Definition at line 53 of file RPCRecHitStandardAlgo.cc.

References compute(), and PV3DBase< T, PVType, FrameType >::z().

59 {
60 
61  // Glob Pos and angle not used so far...
62  if (globPos.z()<0){ } // Fake use to avoid warnings
63  if (angle<0.){ } // Fake use to avoid warnings
64  this->compute(roll,cl,Point,error);
65  return true;
66 }
virtual bool compute(const RPCRoll &roll, const RPCCluster &cluster, LocalPoint &point, LocalError &error) const
standard local recHit computation
T z() const
Definition: PV3DBase.h:64
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
void RPCRecHitStandardAlgo::setES ( const edm::EventSetup setup)
virtual

Pass the Event Setup to the algo at each event.

Implements RPCRecHitBaseAlgo.

Definition at line 29 of file RPCRecHitStandardAlgo.cc.

29  {
30 }