src
RecoLocalMuon
DTSegment
src
DTSegmentExtendedCand.cc
Go to the documentation of this file.
1
/******* \class DTSegmentExtendedCand *******
2
*
3
* Description:
4
*
5
* detailed description
6
*
7
* \author : Stefano Lacaprara - INFN LNL <stefano.lacaprara@pd.infn.it>
8
*
9
* Modification:
10
*
11
*********************************/
12
13
/* This Class Header */
14
#include "
RecoLocalMuon/DTSegment/src/DTSegmentExtendedCand.h
"
15
16
/* Collaborating Class Header */
17
18
/* C++ Headers */
19
#include <iostream>
20
using namespace
std
;
21
22
/* ====================================================================== */
23
24
/* Constructor */
25
26
/* Destructor */
27
28
/* Operations */
29
bool
DTSegmentExtendedCand::isCompatible
(
const
DTSegmentExtendedCand::DTSLRecClusterForFit
& clus) {
30
LocalPoint
posAtSL =
position
() + direction() * (clus.
pos
.
z
() -
position
().z()) /
cos
(direction().theta());
31
// cout << "pos :" << clus.pos << " posAtSL " << posAtSL << endl;
32
static
constexpr
float
errScaleFact = 10.;
33
static
constexpr
float
minError = 25.;
// (cm)
34
// cout << "clus.err.xx() " << clus.err << endl;
35
return
std::abs
((posAtSL - clus.
pos
).x()) <
max
(errScaleFact *
sqrt
(clus.
err
.
xx
()), minError);
36
}
37
38
unsigned
int
DTSegmentExtendedCand::nHits
()
const
{
return
DTSegmentCand::nHits
() + theClus.size(); }
39
40
bool
DTSegmentExtendedCand::good
()
const
{
41
if
(
superLayer
()->
id
().
superLayer
() == 2)
42
return
DTSegmentCand::nHits
() >= nHitsMin &&
chi2
() / NDOF() <
chi2max
* 2.;
43
return
DTSegmentCand::nHits
() >= nHitsMin &&
chi2
() / NDOF() <
chi2max
;
44
}
nano_mu_digi_cff.superLayer
superLayer
Definition:
nano_mu_digi_cff.py:24
DTSegmentExtendedCand::DTSLRecClusterForFit::pos
LocalPoint pos
Definition:
DTSegmentExtendedCand.h:56
HLT_2023v12_cff.chi2max
chi2max
Definition:
HLT_2023v12_cff.py:8682
PV3DBase::z
T z() const
Definition:
PV3DBase.h:61
nano_mu_local_reco_cff.chi2
chi2
Definition:
nano_mu_local_reco_cff.py:205
DTSegmentExtendedCand::DTSLRecClusterForFit::err
LocalError err
Definition:
DTSegmentExtendedCand.h:57
std
Definition:
JetResolutionObject.h:76
DTSegmentCand::nHits
virtual unsigned int nHits() const
Definition:
DTSegmentCand.h:58
ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr
if constexpr(n > 3)
Definition:
BrokenLine.h:165
DTSegmentExtendedCand::good
bool good() const override
Definition:
DTSegmentExtendedCand.cc:40
DTSegmentExtendedCand::DTSLRecClusterForFit
Definition:
DTSegmentExtendedCand.h:52
DTSegmentExtendedCand::nHits
unsigned int nHits() const override
Definition:
DTSegmentExtendedCand.cc:38
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:19
funct::cos
Cos< T >::type cos(const T &t)
Definition:
Cos.h:22
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
SiStripPI::max
Definition:
SiStripPayloadInspectorHelper.h:178
DTSegmentExtendedCand::isCompatible
bool isCompatible(const DTSegmentExtendedCand::DTSLRecClusterForFit &clus)
Definition:
DTSegmentExtendedCand.cc:29
DTSegmentExtendedCand.h
Point3DBase< float, LocalTag >
position
static int position[264][3]
Definition:
ReadPGInfo.cc:289
LocalError::xx
float xx() const
Definition:
LocalError.h:22
Generated for CMSSW Reference Manual by
1.8.14