CMS 3D CMS Logo

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 
23 #include <vector>
24 
26 public:
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
void determinInnerDimensions()
const double tolerance
double maxZ(bool withTolerance=true) const
FiducialVolume(double tolerance=1.0)
void addActivePoint(const GlobalPoint &point)
add a point that belongs to the active volume
void reset()
invalidate the volume
bool isValid() const
check whether the volume is properly defined
double minR(bool withTolerance=true) const
double maxR(bool withTolerance=true) const
double minZ(bool withTolerance=true) const
*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