CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CaloSegment::inX0Segment Class Reference

This class is used to determine if a point lies in the segment. More...

#include <CaloSegment.h>

Public Member Functions

 inX0Segment (double depth)
 
bool operator() (const CaloSegment &segment) const
 
 ~inX0Segment ()
 

Private Attributes

double ref_
 

Detailed Description

This class is used to determine if a point lies in the segment.

Definition at line 86 of file CaloSegment.h.

Constructor & Destructor Documentation

CaloSegment::inX0Segment::inX0Segment ( double  depth)
inline

Definition at line 90 of file CaloSegment.h.

90  :ref_(depth)
91  {
92  //std::cout << "inSegment " << std::endl;
93  };
CaloSegment::inX0Segment::~inX0Segment ( )
inline

Definition at line 94 of file CaloSegment.h.

94 {;};

Member Function Documentation

bool CaloSegment::inX0Segment::operator() ( const CaloSegment segment) const
inline

Definition at line 100 of file CaloSegment.h.

References ref_, CaloSegment::sX0Entrance(), and CaloSegment::sX0Exit().

101  {
102  return (ref_>segment.sX0Entrance()&&ref_<segment.sX0Exit());
103  }
double sX0Exit() const
absciss of the exit (in X0)
Definition: CaloSegment.h:35
double sX0Entrance() const
absciss of the entrance (in X0)
Definition: CaloSegment.h:33

Member Data Documentation

double CaloSegment::inX0Segment::ref_
private

Definition at line 106 of file CaloSegment.h.

Referenced by operator()().