test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GEMRecHitStandardAlgo.cc
Go to the documentation of this file.
1 /*
2  * See header file for a description of this class.
3  *
4  * \author M. Maggi -- INFN
5  */
6 
7 #include "GEMCluster.h"
14 
15 
17  GEMRecHitBaseAlgo(config)
18 {
19 }
20 
21 
22 
24 {
25 }
26 
27 
28 
30 }
31 
32 
33 
34 // First Step
36  const GEMCluster& cluster,
38  LocalError& error) const
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., cluster.clusterSize());
49  return true;
50 }
51 
52 
54  const GEMCluster& cl,
55  const float& angle,
56  const GlobalPoint& globPos,
58  LocalError& error) const
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 }
67 
LocalError localError(float strip, float cluster_size=1.) const
virtual bool compute(const GEMEtaPartition &roll, const GEMCluster &cluster, LocalPoint &point, LocalError &error) const
standard local recHit computation
GEMRecHitStandardAlgo(const edm::ParameterSet &config)
Constructor.
LocalPoint centreOfStrip(int strip) const
virtual ~GEMRecHitStandardAlgo()
Destructor.
T z() const
Definition: PV3DBase.h:64
math::XYZPoint Point
int lastStrip() const
Definition: GEMCluster.cc:27
int firstStrip() const
Definition: GEMCluster.cc:21
virtual void setES(const edm::EventSetup &setup)
Pass the Event Setup to the algo at each event.
int clusterSize() const
Definition: GEMCluster.cc:33
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11