RecoLocalMuon
GEMRecHit
plugins
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
*/
6
#include "
RecoLocalMuon/GEMRecHit/interface/GEMCluster.h
"
7
#include "
RecoLocalMuon/GEMRecHit/plugins/GEMRecHitStandardAlgo.h
"
8
#include "
DataFormats/MuonDetId/interface/GEMDetId.h
"
9
#include "
Geometry/GEMGeometry/interface/GEMEtaPartition.h
"
10
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
11
#include "
FWCore/Framework/interface/EventSetup.h
"
12
#include "
FWCore/Utilities/interface/Exception.h
"
13
14
GEMRecHitStandardAlgo::GEMRecHitStandardAlgo
(
const
edm::ParameterSet
&
config
) :
GEMRecHitBaseAlgo
(
config
) {}
15
16
GEMRecHitStandardAlgo::~GEMRecHitStandardAlgo
() {}
17
18
void
GEMRecHitStandardAlgo::setES
(
const
edm::EventSetup
&
setup
) {}
19
20
// First Step
21
bool
GEMRecHitStandardAlgo::compute
(
const
GEMEtaPartition
& roll,
22
const
GEMCluster
& cluster,
23
LocalPoint
&
Point
,
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
37
bool
GEMRecHitStandardAlgo::compute
(
const
GEMEtaPartition
& roll,
38
const
GEMCluster
&
cl
,
39
const
float
&
angle
,
40
const
GlobalPoint
& globPos,
41
LocalPoint
&
Point
,
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:47
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
Generated for CMSSW Reference Manual by
1.8.16