TrackingTools
TrackAssociator
src
FiducialVolume.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: TrackAssociator
4
// Class: FiducialVolume
5
//
6
/*
7
8
Description: detector active volume
9
10
*/
11
//
12
// Original Author: Dmytro Kovalskyi
13
//
14
//
15
#include "
TrackingTools/TrackAssociator/interface/FiducialVolume.h
"
16
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
17
#include "
FWCore/Utilities/interface/Exception.h
"
18
19
bool
FiducialVolume::isValid
()
const
{
return
minR_ < 1e4 && maxR_ >=
minR_
&& minZ_ < 1e4 && maxZ_ >=
minZ_
; }
20
21
void
FiducialVolume::addActivePoint
(
const
GlobalPoint
&
point
) {
22
if
(
point
.perp() >
maxR_
)
23
maxR_
=
point
.perp();
24
if
(fabs(
point
.eta()) < 1 &&
point
.perp() <
minR_
)
25
minR_
=
point
.perp();
26
if
(fabs(
point
.z()) >
maxZ_
)
27
maxZ_
= fabs(
point
.z());
28
if
(fabs(
point
.eta()) > 1.7 && fabs(
point
.z()) <
minZ_
)
29
minZ_
= fabs(
point
.z());
30
}
31
32
void
FiducialVolume::reset
() {
33
minR_
= 1
e5
;
34
maxR_
= -1;
35
minZ_
= 1
e5
;
36
maxZ_
= -1;
37
}
38
39
void
FiducialVolume::determinInnerDimensions
() {
40
if
(
maxR_
> 0 &&
maxR_
<
minR_
)
41
minR_
=
maxR_
;
42
if
(
maxZ_
> 0 &&
maxZ_
<
minZ_
)
43
minZ_
=
maxZ_
;
44
}
FiducialVolume::addActivePoint
void addActivePoint(const GlobalPoint &point)
add a point that belongs to the active volume
Definition:
FiducialVolume.cc:21
MessageLogger.h
TrackValidation_cff.e5
e5
Definition:
TrackValidation_cff.py:654
FiducialVolume::maxR_
double maxR_
Definition:
FiducialVolume.h:64
FiducialVolume.h
Point3DBase< float, GlobalTag >
FiducialVolume::isValid
bool isValid() const
check whether the volume is properly defined
Definition:
FiducialVolume.cc:19
FiducialVolume::determinInnerDimensions
void determinInnerDimensions()
Definition:
FiducialVolume.cc:39
FiducialVolume::reset
void reset()
invalidate the volume
Definition:
FiducialVolume.cc:32
Exception.h
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
Generated for CMSSW Reference Manual by
1.8.16