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
* $date : 15/05/2008 17:50:32 CEST $
9
*
10
* Modification:
11
*
12
*********************************/
13
14
/* This Class Header */
15
#include "
RecoLocalMuon/DTSegment/src/DTSegmentExtendedCand.h
"
16
17
/* Collaborating Class Header */
18
19
/* C++ Headers */
20
#include <iostream>
21
using namespace
std;
22
23
/* ====================================================================== */
24
25
/* Constructor */
26
27
/* Destructor */
28
29
/* Operations */
30
bool
DTSegmentExtendedCand::isCompatible
(
const
DTSegmentExtendedCand::DTSLRecClusterForFit
& clus) {
31
LocalPoint
posAtSL =
32
position
()+direction()*(clus.
pos
.
z
()-
position
().z())/
cos
(direction().theta());
33
// cout << "pos :" << clus.pos << " posAtSL " << posAtSL << endl;
34
static
float
errScaleFact=10.;
35
static
float
minError=25.;
// (cm)
36
// cout << "clus.err.xx() " << clus.err << endl;
37
return
fabs((posAtSL-clus.
pos
).x())<
max
(errScaleFact*
sqrt
(clus.
err
.
xx
()), minError);
38
}
39
40
unsigned
int
DTSegmentExtendedCand::nHits
()
const
{
41
return
DTSegmentCand::nHits
()+theClus.size();
42
}
43
44
bool
DTSegmentExtendedCand::good
()
const
{
45
if
(superLayer()->
id
().superLayer()==2)
46
return
DTSegmentCand::nHits
()>=nHitsMin && chi2()/NDOF() < chi2max*2.;
47
return
DTSegmentCand::nHits
()>=nHitsMin && chi2()/NDOF() < chi2max ;
48
}
LocalError::xx
float xx() const
Definition:
LocalError.h:24
DTSegmentExtendedCand::DTSLRecClusterForFit::pos
LocalPoint pos
Definition:
DTSegmentExtendedCand.h:66
DTSegmentExtendedCand::DTSLRecClusterForFit::err
LocalError err
Definition:
DTSegmentExtendedCand.h:67
DTSegmentExtendedCand::good
virtual bool good() const
Definition:
DTSegmentExtendedCand.cc:44
position
static int position[TOTALCHAMBERS][3]
Definition:
ReadPGInfo.cc:509
DTSegmentExtendedCand::DTSLRecClusterForFit
Definition:
DTSegmentExtendedCand.h:60
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:30
DTSegmentExtendedCand::nHits
virtual unsigned int nHits() const
Definition:
DTSegmentExtendedCand.cc:40
DTSegmentExtendedCand.h
DTSegmentCand::nHits
virtual unsigned int nHits() const
Definition:
DTSegmentCand.h:62
Point3DBase< float, LocalTag >
Generated for CMSSW Reference Manual by
1.8.5