Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
// $Id: FiducialVolume.cc,v 1.2 2007/06/06 22:27:16 dmytro Exp $
14
//
15
//
16
#include "
TrackingTools/TrackAssociator/interface/FiducialVolume.h
"
17
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
18
#include "
FWCore/Utilities/interface/Exception.h
"
19
20
bool
FiducialVolume::isValid
()
const
21
{
22
return
minR_<1e4 && maxR_ >=
minR_
&& minZ_<1e4 && maxZ_ >=
minZ_
;
23
}
24
25
void
FiducialVolume::addActivePoint
(
const
GlobalPoint
&
point
)
26
{
27
if
( point.
perp
() >
maxR_
)
maxR_
= point.
perp
();
28
if
( fabs(point.
eta
()) < 1 && point.
perp
() <
minR_
)
minR_
= point.
perp
();
29
if
( fabs(point.
z
()) >
maxZ_
)
maxZ_
= fabs(point.
z
());
30
if
( fabs(point.
eta
()) > 1.7 && fabs(point.
z
()) <
minZ_
)
minZ_
= fabs(point.
z
());
31
}
32
33
void
FiducialVolume::reset
()
34
{
35
minR_
= 1e5;
36
maxR_
= -1;
37
minZ_
= 1e5;
38
maxZ_
= -1;
39
}
40
41
void
FiducialVolume::determinInnerDimensions
()
42
{
43
if
(
maxR_
> 0 &&
maxR_
<
minR_
)
minR_
=
maxR_
;
44
if
(
maxZ_
> 0 &&
maxZ_
<
minZ_
)
minZ_
=
maxZ_
;
45
}
FiducialVolume::determinInnerDimensions
void determinInnerDimensions()
Definition:
FiducialVolume.cc:41
MessageLogger.h
FiducialVolume::isValid
bool isValid() const
check whether the volume is properly defined
Definition:
FiducialVolume.cc:20
PV3DBase::perp
T perp() const
Definition:
PV3DBase.h:72
FiducialVolume::addActivePoint
void addActivePoint(const GlobalPoint &point)
add a point that belongs to the active volume
Definition:
FiducialVolume.cc:25
FiducialVolume.h
FiducialVolume::reset
void reset()
invalidate the volume
Definition:
FiducialVolume.cc:33
PV3DBase::z
T z() const
Definition:
PV3DBase.h:64
Exception.h
PV3DBase::eta
T eta() const
Definition:
PV3DBase.h:76
Point3DBase< float, GlobalTag >
FiducialVolume::maxR_
double maxR_
Definition:
FiducialVolume.h:69
FiducialVolume::maxZ_
double maxZ_
Definition:
FiducialVolume.h:71
FiducialVolume::minR_
double minR_
Definition:
FiducialVolume.h:68
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::minZ_
double minZ_
Definition:
FiducialVolume.h:70
Generated for CMSSW Reference Manual by
1.8.5