CMS 3D CMS Logo

List of all members | Public Member Functions
GEMRecHitStandardAlgo Class Reference

#include <GEMRecHitStandardAlgo.h>

Inheritance diagram for GEMRecHitStandardAlgo:
GEMRecHitBaseAlgo

Public Member Functions

bool compute (const GEMEtaPartition &roll, const GEMCluster &cluster, const float &angle, const GlobalPoint &globPos, LocalPoint &point, LocalError &error) const override
 
bool compute (const GEMEtaPartition &roll, const GEMCluster &cluster, LocalPoint &point, LocalError &error) const override
 standard local recHit computation More...
 
 GEMRecHitStandardAlgo (const edm::ParameterSet &config)
 Constructor. More...
 
void setES (const edm::EventSetup &setup) override
 Pass the Event Setup to the algo at each event. More...
 
 ~GEMRecHitStandardAlgo () override
 Destructor. More...
 
- Public Member Functions inherited from GEMRecHitBaseAlgo
 GEMRecHitBaseAlgo (const edm::ParameterSet &config)
 Constructor. More...
 
virtual edm::OwnVector< GEMRecHitreconstruct (const GEMEtaPartition &roll, const GEMDetId &gemId, const GEMDigiCollection::Range &digiRange, const EtaPartitionMask &mask)
 Build all hits in the range associated to the gemId, at the 1st step. More...
 
virtual ~GEMRecHitBaseAlgo ()
 Destructor. More...
 

Detailed Description

Concrete implementation of GEMRecHitBaseAlgo.

Author
M. Maggi – INFN Bari

Definition at line 10 of file GEMRecHitStandardAlgo.h.

Constructor & Destructor Documentation

◆ GEMRecHitStandardAlgo()

GEMRecHitStandardAlgo::GEMRecHitStandardAlgo ( const edm::ParameterSet config)

Constructor.

Definition at line 14 of file GEMRecHitStandardAlgo.cc.

◆ ~GEMRecHitStandardAlgo()

GEMRecHitStandardAlgo::~GEMRecHitStandardAlgo ( )
override

Destructor.

Definition at line 16 of file GEMRecHitStandardAlgo.cc.

16 {}

Member Function Documentation

◆ compute() [1/2]

bool GEMRecHitStandardAlgo::compute ( const GEMEtaPartition roll,
const GEMCluster cl,
const float &  angle,
const GlobalPoint globPos,
LocalPoint Point,
LocalError error 
) const
overridevirtual

local recHit computation accounting for track direction and absolute position

Implements GEMRecHitBaseAlgo.

Definition at line 37 of file GEMRecHitStandardAlgo.cc.

42  {
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 }

References angle(), GetRecoTauVFromDQM_MC_cff::cl, compute(), relativeConstraints::error, and PV3DBase< T, PVType, FrameType >::z().

◆ compute() [2/2]

bool GEMRecHitStandardAlgo::compute ( const GEMEtaPartition roll,
const GEMCluster cl,
LocalPoint Point,
LocalError error 
) const
overridevirtual

standard local recHit computation

Implements GEMRecHitBaseAlgo.

Definition at line 21 of file GEMRecHitStandardAlgo.cc.

24  {
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 }

References GEMEtaPartition::centreOfStrip(), GEMCluster::clusterSize(), relativeConstraints::error, GEMCluster::firstStrip(), GEMCluster::lastStrip(), and GEMEtaPartition::localError().

Referenced by compute().

◆ setES()

void GEMRecHitStandardAlgo::setES ( const edm::EventSetup setup)
overridevirtual

Pass the Event Setup to the algo at each event.

Implements GEMRecHitBaseAlgo.

Definition at line 18 of file GEMRecHitStandardAlgo.cc.

18 {}
GEMRecHitStandardAlgo::compute
bool compute(const GEMEtaPartition &roll, const GEMCluster &cluster, LocalPoint &point, LocalError &error) const override
standard local recHit computation
Definition: GEMRecHitStandardAlgo.cc:21
relativeConstraints.error
error
Definition: relativeConstraints.py:53
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
Point3DBase< float, LocalTag >
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
GEMEtaPartition::localError
LocalError localError(float strip, float cluster_size=1.) const
Definition: GEMEtaPartition.cc:33
GEMEtaPartition::centreOfStrip
LocalPoint centreOfStrip(int strip) const
Definition: GEMEtaPartition.cc:26
GEMRecHitBaseAlgo::GEMRecHitBaseAlgo
GEMRecHitBaseAlgo(const edm::ParameterSet &config)
Constructor.
Definition: GEMRecHitBaseAlgo.cc:14
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11