CMS 3D CMS Logo

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

#include <CaloSegment.h>

Public Member Functions

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

Private Attributes

double ref_
 

Detailed Description

Definition at line 131 of file CaloSegment.h.

Constructor & Destructor Documentation

CaloSegment::inSegment::inSegment ( double  depth)
inline

Definition at line 134 of file CaloSegment.h.

135  : ref_(depth){
136  //std::cout << "inSegment " << std::endl;
137  };
CaloSegment::inSegment::~inSegment ( )
inline

Definition at line 138 of file CaloSegment.h.

138 { ; };

Member Function Documentation

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

Definition at line 144 of file CaloSegment.h.

References ref_, CaloSegment::sEntrance(), and CaloSegment::sExit().

144  {
145  // std::cout << " Entrance " << segment.sEntrance() << " Exit " << segment.sExit() << " " << ref_ << " " << segment.whichDetector() << std::endl;
146  return (ref_ > segment.sEntrance() && ref_ < segment.sExit());
147  }
double sEntrance() const
absciss of the entrance (in cm)
Definition: CaloSegment.h:31
double sExit() const
absciss of the exit (in cm)
Definition: CaloSegment.h:33

Member Data Documentation

double CaloSegment::inSegment::ref_
private

Definition at line 151 of file CaloSegment.h.

Referenced by operator()().