CMS 3D CMS Logo

RPCRecHitStandardAlgo Class Reference

Concrete implementation of RPCRecHitBaseAlgo. More...

#include <RecoLocalMuon/RPCRecHit/src/RPCRecHitStandardAlgo.h>

Inheritance diagram for RPCRecHitStandardAlgo:

RPCRecHitBaseAlgo

List of all members.

Public Member Functions

virtual bool compute (const RPCRoll &roll, const RPCCluster &cluster, const float &angle, const GlobalPoint &globPos, LocalPoint &point, LocalError &error) const
 local recHit computation accounting for track direction and absolute position
virtual bool compute (const RPCRoll &roll, const RPCCluster &cluster, LocalPoint &point, LocalError &error) const
 standard local recHit computation
 RPCRecHitStandardAlgo (const edm::ParameterSet &config)
 Constructor.
virtual void setES (const edm::EventSetup &setup)
 Pass the Event Setup to the algo at each event.
virtual ~RPCRecHitStandardAlgo ()
 Destructor.


Detailed Description

Concrete implementation of RPCRecHitBaseAlgo.

Date
2006/04/18 16:28:31
Revision
1.1
Author:
M. Maggi -- INFN Bari

Definition at line 16 of file RPCRecHitStandardAlgo.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 18 of file RPCRecHitStandardAlgo.cc.

00018                                                                           :
00019   RPCRecHitBaseAlgo(config) 
00020 {
00021 }

RPCRecHitStandardAlgo::~RPCRecHitStandardAlgo (  )  [virtual]

Destructor.

Definition at line 25 of file RPCRecHitStandardAlgo.cc.

00026 {
00027 }


Member Function Documentation

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 55 of file RPCRecHitStandardAlgo.cc.

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

00061 {
00062 
00063   // Glob Pos and angle not used so far...
00064   if (globPos.z()<0){ } // Fake use to avoid warnings
00065   if (angle<0.){ }      // Fake use to avoid warnings
00066   this->compute(roll,cl,Point,error);
00067   return true;
00068 }

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

standard local recHit computation

Implements RPCRecHitBaseAlgo.

Definition at line 37 of file RPCRecHitStandardAlgo.cc.

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

Referenced by compute().

00041 {
00042   // Get Average Strip position
00043   float fstrip = (roll.centreOfStrip(cluster.firstStrip())).x();
00044   float lstrip = (roll.centreOfStrip(cluster.lastStrip())).x();
00045   float centreOfCluster = (fstrip + lstrip)/2;
00046 
00047   LocalPoint loctemp2(centreOfCluster,0.,0.);
00048  
00049   Point = loctemp2;
00050   error = roll.localError((cluster.firstStrip()+cluster.lastStrip())/2.);
00051   return true;
00052 }

void RPCRecHitStandardAlgo::setES ( const edm::EventSetup setup  )  [virtual]

Pass the Event Setup to the algo at each event.

Implements RPCRecHitBaseAlgo.

Definition at line 31 of file RPCRecHitStandardAlgo.cc.

00031                                                             {
00032 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:31:05 2009 for CMSSW by  doxygen 1.5.4