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 }
GEMCluster::clusterSize
int clusterSize() const
Definition: GEMCluster.cc:17
GEMRecHitStandardAlgo::compute
bool compute(const GEMEtaPartition &roll, const GEMCluster &cluster, LocalPoint &point, LocalError &error) const override
standard local recHit computation
Definition: GEMRecHitStandardAlgo.cc:21
GEMEtaPartition
Definition: GEMEtaPartition.h:12
GEMRecHitBaseAlgo
Definition: GEMRecHitBaseAlgo.h:30
GEMCluster::firstStrip
int firstStrip() const
Definition: GEMCluster.cc:13
relativeConstraints.error
error
Definition: relativeConstraints.py:53
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
GEMRecHitStandardAlgo::GEMRecHitStandardAlgo
GEMRecHitStandardAlgo(const edm::ParameterSet &config)
Constructor.
Definition: GEMRecHitStandardAlgo.cc:14
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
GetRecoTauVFromDQM_MC_cff.cl
cl
Definition: GetRecoTauVFromDQM_MC_cff.py:38
config
Definition: config.py:1
GEMRecHitStandardAlgo.h
GEMEtaPartition.h
Point3DBase< float, LocalTag >
GEMRecHitStandardAlgo::setES
void setES(const edm::EventSetup &setup) override
Pass the Event Setup to the algo at each event.
Definition: GEMRecHitStandardAlgo.cc:18
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
edm::ParameterSet
Definition: ParameterSet.h:36
GEMEtaPartition::localError
LocalError localError(float strip, float cluster_size=1.) const
Definition: GEMEtaPartition.cc:33
LocalError
Definition: LocalError.h:12
edm::EventSetup
Definition: EventSetup.h:57
GEMEtaPartition::centreOfStrip
LocalPoint centreOfStrip(int strip) const
Definition: GEMEtaPartition.cc:26
GEMCluster
Definition: GEMCluster.h:5
GEMCluster.h
GEMDetId.h
GEMCluster::lastStrip
int lastStrip() const
Definition: GEMCluster.cc:15
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
EventSetup.h
Exception.h
GEMRecHitStandardAlgo::~GEMRecHitStandardAlgo
~GEMRecHitStandardAlgo() override
Destructor.
Definition: GEMRecHitStandardAlgo.cc:16
ParameterSet.h