TrackingTools
TrackAssociator
interface
FiducialVolume.h
Go to the documentation of this file.
1
#ifndef TrackAssociator_FiducialVolume_h
2
#define TrackAssociator_FiducialVolume_h 1
3
4
// -*- C++ -*-
5
//
6
// Package: TrackAssociator
7
// Class: FiducialVolume
8
//
9
/*
10
11
Description: detector active volume described by a closed cylinder with non-zero thickness.
12
13
*/
14
//
15
// Original Author: Dmytro Kovalskyi
16
//
21
22
#include "
DataFormats/GeometryVector/interface/GlobalPoint.h
"
23
#include <vector>
24
25
class
FiducialVolume
{
26
public
:
27
FiducialVolume
(
double
tolerance
= 1.0) :
tolerance_
(
tolerance
) {
reset
(); }
30
void
determinInnerDimensions
();
32
bool
isValid
()
const
;
34
void
addActivePoint
(
const
GlobalPoint
&
point
);
36
void
reset
();
37
double
minR
(
bool
withTolerance =
true
)
const
{
38
if
(withTolerance &&
minR_
>
tolerance_
)
39
return
minR_
-
tolerance_
;
40
else
41
return
minR_
;
42
}
43
double
maxR
(
bool
withTolerance =
true
)
const
{
44
if
(withTolerance)
45
return
maxR_
+
tolerance_
;
46
else
47
return
maxR_
;
48
}
49
double
minZ
(
bool
withTolerance =
true
)
const
{
50
if
(withTolerance &&
minZ_
>
tolerance_
)
51
return
minZ_
-
tolerance_
;
52
else
53
return
minZ_
;
54
}
55
double
maxZ
(
bool
withTolerance =
true
)
const
{
56
if
(withTolerance)
57
return
maxZ_
+
tolerance_
;
58
else
59
return
maxZ_
;
60
}
61
62
private
:
63
double
minR_
;
64
double
maxR_
;
65
double
minZ_
;
66
double
maxZ_
;
67
double
tolerance_
;
68
};
69
#endif
FiducialVolume::addActivePoint
void addActivePoint(const GlobalPoint &point)
add a point that belongs to the active volume
Definition:
FiducialVolume.cc:21
FiducialVolume::minR
double minR(bool withTolerance=true) const
Definition:
FiducialVolume.h:37
FiducialVolume::maxR_
double maxR_
Definition:
FiducialVolume.h:64
FiducialVolume::maxR
double maxR(bool withTolerance=true) const
Definition:
FiducialVolume.h:43
Point3DBase< float, GlobalTag >
FiducialVolume::FiducialVolume
FiducialVolume(double tolerance=1.0)
Definition:
FiducialVolume.h:27
FiducialVolume::minZ
double minZ(bool withTolerance=true) const
Definition:
FiducialVolume.h:49
FiducialVolume::isValid
bool isValid() const
check whether the volume is properly defined
Definition:
FiducialVolume.cc:19
tolerance
const double tolerance
Definition:
HGCalGeomParameters.cc:29
FiducialVolume::determinInnerDimensions
void determinInnerDimensions()
Definition:
FiducialVolume.cc:39
FiducialVolume
Definition:
FiducialVolume.h:25
FiducialVolume::reset
void reset()
invalidate the volume
Definition:
FiducialVolume.cc:32
FiducialVolume::maxZ
double maxZ(bool withTolerance=true) const
Definition:
FiducialVolume.h:55
FiducialVolume::tolerance_
double tolerance_
Definition:
FiducialVolume.h:67
FiducialVolume::maxZ_
double maxZ_
Definition:
FiducialVolume.h:66
FiducialVolume::minZ_
double minZ_
Definition:
FiducialVolume.h:65
point
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition:
invegas.h:5
FiducialVolume::minR_
double minR_
Definition:
FiducialVolume.h:63
GlobalPoint.h
Generated for CMSSW Reference Manual by
1.8.16