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  GEMRecHitBaseAlgo(config)
16 {}
17 
19 {}
20 
22 
23 // First Step
25  const GEMCluster& cluster,
27  LocalError& error) const
28 {
29  // Get Average Strip position
30  float fstrip = (roll.centreOfStrip(cluster.firstStrip())).x();
31  float lstrip = (roll.centreOfStrip(cluster.lastStrip())).x();
32  float centreOfCluster = (fstrip + lstrip)/2;
33 
34  LocalPoint loctemp2(centreOfCluster,0.,0.);
35 
36  Point = loctemp2;
37  error = roll.localError((cluster.firstStrip()+cluster.lastStrip())/2., cluster.clusterSize());
38  return true;
39 }
40 
42  const GEMCluster& cl,
43  const float& angle,
44  const GlobalPoint& globPos,
46  LocalError& error) const
47 {
48  // Glob Pos and angle not used so far...
49  if (globPos.z()<0){ } // Fake use to avoid warnings
50  if (angle<0.){ } // Fake use to avoid warnings
51  this->compute(roll,cl,Point,error);
52  return true;
53 }
~GEMRecHitStandardAlgo() override
Destructor.
void setES(const edm::EventSetup &setup) override
Pass the Event Setup to the algo at each event.
LocalError localError(float strip, float cluster_size=1.) const
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
GEMRecHitStandardAlgo(const edm::ParameterSet &config)
Constructor.
Definition: config.py:1
LocalPoint centreOfStrip(int strip) const
T z() const
Definition: PV3DBase.h:64
int lastStrip() const
Definition: GEMCluster.cc:27
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:55
int firstStrip() const
Definition: GEMCluster.cc:21
int clusterSize() const
Definition: GEMCluster.cc:33
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