test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:
27  FiducialVolume(double tolerance = 1.0):
28  tolerance_(tolerance) { reset(); }
33  bool isValid() const;
35  void addActivePoint( const GlobalPoint& point );
37  void reset();
38  double minR(bool withTolerance = true) const
39  {
40  if (withTolerance && minR_>tolerance_)
41  return minR_-tolerance_;
42  else
43  return minR_;
44  }
45  double maxR(bool withTolerance = true) const
46  {
47  if (withTolerance)
48  return maxR_+tolerance_;
49  else
50  return maxR_;
51  }
52  double minZ(bool withTolerance = true) const
53  {
54  if (withTolerance && minZ_>tolerance_)
55  return minZ_-tolerance_;
56  else
57  return minZ_;
58  }
59  double maxZ(bool withTolerance = true) const
60  {
61  if (withTolerance)
62  return maxZ_+tolerance_;
63  else
64  return maxZ_;
65  }
66  private:
67  double minR_;
68  double maxR_;
69  double minZ_;
70  double maxZ_;
71  double tolerance_;
72 };
73 #endif
void determinInnerDimensions()
bool isValid() const
check whether the volume is properly defined
double maxZ(bool withTolerance=true) const
FiducialVolume(double tolerance=1.0)
double minZ(bool withTolerance=true) const
void addActivePoint(const GlobalPoint &point)
add a point that belongs to the active volume
void reset()
invalidate the volume
double minR(bool withTolerance=true) const
double maxR(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