Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Geometry
VeryForwardRPTopology
src
RPTopology.cc
Go to the documentation of this file.
1
/****************************************************************************
2
*
3
* This is a part of TotemDQM and TOTEM offline software.
4
* Authors:
5
* Hubert Niewiadomski
6
* Jan Kašpar (jan.kaspar@gmail.com)
7
*
8
****************************************************************************/
9
10
#include "
Geometry/VeryForwardRPTopology/interface/RPTopology.h
"
11
#include <iostream>
12
13
unsigned
short
RPTopology::no_of_strips_
= 512;
14
15
// all in mm
16
double
RPTopology::pitch_
= 66E-3;
17
double
RPTopology::thickness_
= 0.3;
18
double
RPTopology::x_width_
= 36.07;
19
double
RPTopology::y_width_
= 36.07;
20
double
RPTopology::phys_edge_lenght_
= 22.276;
//correct, but of vague impact, check sensitive edge efficiency curve
21
double
RPTopology::last_strip_to_border_dist_
= 1.4175;
22
double
RPTopology::last_strip_to_center_dist_
=
RPTopology::x_width_
/2. -
RPTopology::last_strip_to_border_dist_
;
// assumes square shape
23
24
25
26
RPTopology::RPTopology
()
27
: sqrt_2(
sqrt
(2.0)),
28
strip_readout_direction_(0, 1, 0),
29
strip_direction_(1,0,0),
30
normal_direction_(0,0,1)
31
{
32
}
33
34
35
36
bool
RPTopology::IsHit
(
double
u,
double
v
,
double
insensitiveMargin)
37
{
38
// assumes square shape
39
40
if
(fabs(u) >
last_strip_to_center_dist_
)
41
return
false
;
42
43
if
(fabs(v) >
last_strip_to_center_dist_
)
44
return
false
;
45
46
double
sqrt_2
=
sqrt
(2.);
47
double
y
= (u +
v
) / sqrt_2;
48
double
edge_to_ceter_dist = (
x_width_
-
phys_edge_lenght_
/
sqrt_2
) / sqrt_2 - insensitiveMargin;
49
if
(y < -edge_to_ceter_dist)
50
return
false
;
51
52
return
true
;
53
}
RPTopology::RPTopology
RPTopology()
Definition:
RPTopology.cc:26
RPTopology::y_width_
static double y_width_
Definition:
RPTopology.h:65
RPTopology::thickness_
static double thickness_
Definition:
RPTopology.h:62
RPTopology::last_strip_to_border_dist_
static double last_strip_to_border_dist_
Definition:
RPTopology.h:67
RPTopology::no_of_strips_
static unsigned short no_of_strips_
Definition:
RPTopology.h:63
findQualityFiles.v
v
Definition:
findQualityFiles.py:177
RPTopology::IsHit
static bool IsHit(double u, double v, double insensitiveMargin=0)
Definition:
RPTopology.cc:36
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:18
RPTopology.h
RPTopology::phys_edge_lenght_
static double phys_edge_lenght_
Definition:
RPTopology.h:66
RPTopology::last_strip_to_center_dist_
static double last_strip_to_center_dist_
Definition:
RPTopology.h:68
DDAxes::y
RPTopology::x_width_
static double x_width_
Definition:
RPTopology.h:64
RPTopology::sqrt_2
const double sqrt_2
Definition:
RPTopology.h:59
RPTopology::pitch_
static double pitch_
Definition:
RPTopology.h:61
Generated for CMSSW Reference Manual by
1.8.5