CMS 3D CMS Logo

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 132 of file CaloSegment.h.

Constructor & Destructor Documentation

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

Definition at line 136 of file CaloSegment.h.

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

Definition at line 140 of file CaloSegment.h.

140 {;};

Member Function Documentation

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

Definition at line 146 of file CaloSegment.h.

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

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

Member Data Documentation

double CaloSegment::inSegment::ref_
private

Definition at line 153 of file CaloSegment.h.