CMS 3D CMS Logo

Public Member Functions | Private Attributes

CaloSegment::inSegment Class Reference

#include <CaloSegment.h>

List of all members.

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.

                             :ref_(depth)
        {
          //std::cout << "inSegment " << std::endl;
        };
CaloSegment::inSegment::~inSegment ( ) [inline]

Definition at line 140 of file CaloSegment.h.

{;};

Member Function Documentation

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

Definition at line 146 of file CaloSegment.h.

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

        {
          //      std::cout << " Entrance " << segment.sEntrance() << " Exit " << segment.sExit() << " " << ref_ << " " << segment.whichDetector() << std::endl;
          return (ref_>segment.sEntrance()&&ref_<segment.sExit());
        }

Member Data Documentation

double CaloSegment::inSegment::ref_ [private]

Definition at line 153 of file CaloSegment.h.

Referenced by operator()().