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 // $Id: FiducialVolume.h,v 1.5 2011/04/07 08:17:31 innocent Exp $
17 //
22 
24 #include <vector>
25 
27  public:
28  FiducialVolume(double tolerance = 1.0):
29  tolerance_(tolerance) { reset(); }
34  bool isValid() const;
36  void addActivePoint( const GlobalPoint& point );
38  void reset();
39  double minR(bool withTolerance = true) const
40  {
41  if (withTolerance && minR_>tolerance_)
42  return minR_-tolerance_;
43  else
44  return minR_;
45  }
46  double maxR(bool withTolerance = true) const
47  {
48  if (withTolerance)
49  return maxR_+tolerance_;
50  else
51  return maxR_;
52  }
53  double minZ(bool withTolerance = true) const
54  {
55  if (withTolerance && minZ_>tolerance_)
56  return minZ_-tolerance_;
57  else
58  return minZ_;
59  }
60  double maxZ(bool withTolerance = true) const
61  {
62  if (withTolerance)
63  return maxZ_+tolerance_;
64  else
65  return maxZ_;
66  }
67  private:
68  double minR_;
69  double maxR_;
70  double minZ_;
71  double maxZ_;
72  double tolerance_;
73 };
74 #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