test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 //
18 
20 {
21  return minR_<1e4 && maxR_ >= minR_ && minZ_<1e4 && maxZ_ >= minZ_;
22 }
23 
25 {
26  if ( point.perp() > maxR_ ) maxR_ = point.perp();
27  if ( fabs(point.eta()) < 1 && point.perp() < minR_) minR_ = point.perp();
28  if ( fabs(point.z()) > maxZ_ ) maxZ_ = fabs(point.z());
29  if ( fabs(point.eta()) > 1.7 && fabs(point.z()) < minZ_) minZ_ = fabs(point.z());
30 }
31 
33 {
34  minR_ = 1e5;
35  maxR_ = -1;
36  minZ_ = 1e5;
37  maxZ_ = -1;
38 }
39 
41 {
42  if ( maxR_ > 0 && maxR_ < minR_ ) minR_ = maxR_;
43  if ( maxZ_ > 0 && maxZ_ < minZ_ ) minZ_ = maxZ_;
44 }
void determinInnerDimensions()
bool isValid() const
check whether the volume is properly defined
T perp() const
Definition: PV3DBase.h:72
void addActivePoint(const GlobalPoint &point)
add a point that belongs to the active volume
void reset()
invalidate the volume
T z() const
Definition: PV3DBase.h:64
T eta() const
Definition: PV3DBase.h:76
*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