CMS 3D CMS Logo

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  */
13 
15 
17 
19 
20 // First Step
22  const GEMCluster& cluster,
24  LocalError& error) const {
25  // Get Average Strip position
26  float fstrip = (roll.centreOfStrip(cluster.firstStrip())).x();
27  float lstrip = (roll.centreOfStrip(cluster.lastStrip())).x();
28  float centreOfCluster = (fstrip + lstrip) / 2;
29 
30  LocalPoint loctemp2(centreOfCluster, 0., 0.);
31 
32  Point = loctemp2;
33  error = roll.localError((cluster.firstStrip() + cluster.lastStrip()) / 2., cluster.clusterSize());
34  return true;
35 }
36 
38  const GEMCluster& cl,
39  const float& angle,
40  const GlobalPoint& globPos,
42  LocalError& error) const {
43  // Glob Pos and angle not used so far...
44  if (globPos.z() < 0) {
45  } // Fake use to avoid warnings
46  if (angle < 0.) {
47  } // Fake use to avoid warnings
48  this->compute(roll, cl, Point, error);
49  return true;
50 }
~GEMRecHitStandardAlgo() override
Destructor.
void setES(const edm::EventSetup &setup) override
Pass the Event Setup to the algo at each event.
int lastStrip() const
Definition: GEMCluster.cc:15
T z() const
Definition: PV3DBase.h:61
GEMRecHitStandardAlgo(const edm::ParameterSet &config)
Constructor.
Definition: config.py:1
int clusterSize() const
Definition: GEMCluster.cc:17
int firstStrip() const
Definition: GEMCluster.cc:13
Structure Point Contains parameters of Gaussian fits to DMRs.
bool compute(const GEMEtaPartition &roll, const GEMCluster &cluster, LocalPoint &point, LocalError &error) const override
standard local recHit computation
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11