CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCRecHitStandardAlgo.cc
Go to the documentation of this file.
1 /*
2  * See header file for a description of this class.
3  *
4  * $Date: 2006/10/26 15:37:08 $
5  * $Revision: 1.5 $
6  * \author M. Maggi -- INFN
7  */
8 
9 #include "RPCCluster.h"
16 
17 
19  RPCRecHitBaseAlgo(config)
20 {
21 }
22 
23 
24 
26 {
27 }
28 
29 
30 
32 }
33 
34 
35 
36 // First Step
38  const RPCCluster& cluster,
40  LocalError& error) const
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 }
53 
54 
56  const RPCCluster& cl,
57  const float& angle,
58  const GlobalPoint& globPos,
60  LocalError& error) const
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 }
69 
LocalPoint centreOfStrip(int strip) const
Definition: RPCRoll.cc:52
virtual ~RPCRecHitStandardAlgo()
Destructor.
virtual bool compute(const RPCRoll &roll, const RPCCluster &cluster, LocalPoint &point, LocalError &error) const
standard local recHit computation
LocalError localError(float strip) const
Definition: RPCRoll.cc:65
RPCRecHitStandardAlgo(const edm::ParameterSet &config)
Constructor.
T z() const
Definition: PV3DBase.h:64
virtual void setES(const edm::EventSetup &setup)
Pass the Event Setup to the algo at each event.
math::XYZPoint Point
int lastStrip() const
Definition: RPCCluster.cc:27
int firstStrip() const
Definition: RPCCluster.cc:21
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11