CMS 3D CMS Logo

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

#include <GEMRecHitStandardAlgo.h>

Inheritance diagram for GEMRecHitStandardAlgo:
GEMRecHitBaseAlgo

Public Member Functions

virtual bool compute (const GEMEtaPartition &roll, const GEMCluster &cluster, LocalPoint &point, LocalError &error) const
 standard local recHit computation More...
 
virtual bool compute (const GEMEtaPartition &roll, const GEMCluster &cluster, const float &angle, const GlobalPoint &globPos, LocalPoint &point, LocalError &error) const
 
 GEMRecHitStandardAlgo (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 ~GEMRecHitStandardAlgo ()
 Destructor. More...
 
- Public Member Functions inherited from GEMRecHitBaseAlgo
 GEMRecHitBaseAlgo (const edm::ParameterSet &config)
 Constructor. More...
 
virtual edm::OwnVector< GEMRecHitreconstruct (const GEMEtaPartition &roll, const GEMDetId &gemId, const GEMDigiCollection::Range &digiRange, const EtaPartitionMask &mask)
 Build all hits in the range associated to the gemId, at the 1st step. More...
 
virtual ~GEMRecHitBaseAlgo ()
 Destructor. More...
 

Detailed Description

Concrete implementation of GEMRecHitBaseAlgo.

Date:
2013/04/24 17:16:36
Revision:
1.1
Author
M. Maggi – INFN Bari

Definition at line 16 of file GEMRecHitStandardAlgo.h.

Constructor & Destructor Documentation

GEMRecHitStandardAlgo::GEMRecHitStandardAlgo ( const edm::ParameterSet config)

Constructor.

Definition at line 18 of file GEMRecHitStandardAlgo.cc.

18  :
19  GEMRecHitBaseAlgo(config)
20 {
21 }
GEMRecHitBaseAlgo(const edm::ParameterSet &config)
Constructor.
GEMRecHitStandardAlgo::~GEMRecHitStandardAlgo ( )
virtual

Destructor.

Definition at line 25 of file GEMRecHitStandardAlgo.cc.

26 {
27 }

Member Function Documentation

bool GEMRecHitStandardAlgo::compute ( const GEMEtaPartition roll,
const GEMCluster cl,
LocalPoint Point,
LocalError error 
) const
virtual

standard local recHit computation

Implements GEMRecHitBaseAlgo.

Definition at line 37 of file GEMRecHitStandardAlgo.cc.

References GEMEtaPartition::centreOfStrip(), GEMCluster::firstStrip(), GEMCluster::lastStrip(), and GEMEtaPartition::localError().

Referenced by compute().

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

local recHit computation accounting for track direction and absolute position

Implements GEMRecHitBaseAlgo.

Definition at line 55 of file GEMRecHitStandardAlgo.cc.

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

61 {
62 
63  // Glob Pos and angle not used so far...
64  if (globPos.z()<0){ } // Fake use to avoid warnings
65  if (angle<0.){ } // Fake use to avoid warnings
66  this->compute(roll,cl,Point,error);
67  return true;
68 }
virtual bool compute(const GEMEtaPartition &roll, const GEMCluster &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 GEMRecHitStandardAlgo::setES ( const edm::EventSetup setup)
virtual

Pass the Event Setup to the algo at each event.

Implements GEMRecHitBaseAlgo.

Definition at line 31 of file GEMRecHitStandardAlgo.cc.

31  {
32 }