Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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 =
31
position
()+direction()*(clus.
pos
.
z
()-
position
().z())/
cos
(direction().theta());
32
// cout << "pos :" << clus.pos << " posAtSL " << posAtSL << endl;
33
constexpr
float
errScaleFact=10.;
34
constexpr
float
minError=25.;
// (cm)
35
// cout << "clus.err.xx() " << clus.err << endl;
36
return
fabs((posAtSL-clus.
pos
).x())<
max
(errScaleFact*
sqrt
(clus.
err
.
xx
()), minError);
37
}
38
39
unsigned
int
DTSegmentExtendedCand::nHits
()
const
{
40
return
DTSegmentCand::nHits
()+theClus.size();
41
}
42
43
bool
DTSegmentExtendedCand::good
()
const
{
44
if
(superLayer()->
id
().superLayer()==2)
45
return
DTSegmentCand::nHits
()>=nHitsMin && chi2()/NDOF() < chi2max*2.;
46
return
DTSegmentCand::nHits
()>=nHitsMin && chi2()/NDOF() < chi2max ;
47
}
LocalError::xx
float xx() const
Definition:
LocalError.h:24
DTSegmentExtendedCand::DTSLRecClusterForFit::pos
LocalPoint pos
Definition:
DTSegmentExtendedCand.h:65
DTSegmentExtendedCand::DTSLRecClusterForFit::err
LocalError err
Definition:
DTSegmentExtendedCand.h:66
DTSegmentExtendedCand::good
virtual bool good() const
Definition:
DTSegmentExtendedCand.cc:43
position
static int position[TOTALCHAMBERS][3]
Definition:
ReadPGInfo.cc:509
DTSegmentExtendedCand::DTSLRecClusterForFit
Definition:
DTSegmentExtendedCand.h:59
max
const T & max(const T &a, const T &b)
Definition:
MaterialBudgetTrackerHistos.cc:4
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:48
PV3DBase::z
T z() const
Definition:
PV3DBase.h:64
funct::cos
Cos< T >::type cos(const T &t)
Definition:
Cos.h:22
DTSegmentExtendedCand::isCompatible
bool isCompatible(const DTSegmentExtendedCand::DTSLRecClusterForFit &clus)
Definition:
DTSegmentExtendedCand.cc:29
DTSegmentExtendedCand::nHits
virtual unsigned int nHits() const
Definition:
DTSegmentExtendedCand.cc:39
DTSegmentExtendedCand.h
DTSegmentCand::nHits
virtual unsigned int nHits() const
Definition:
DTSegmentCand.h:60
Point3DBase< float, LocalTag >
constexpr
#define constexpr
Definition:
GCC11Compatibility.h:36
Generated for CMSSW Reference Manual by
1.8.5