SimplePlankEnd Class Reference

#include <AtNuShieldPerformance.h>

List of all members.

Public Member Functions

virtual ~SimplePlankEnd ()
bool operator< (const SimplePlankEnd &p2) const
bool operator== (const SimplePlankEnd &p2) const
 ClassDef (SimplePlankEnd, 1)

Public Attributes

int Plane
int Plank
short End

Detailed Description

Definition at line 19 of file AtNuShieldPerformance.h.


Constructor & Destructor Documentation

virtual SimplePlankEnd::~SimplePlankEnd (  )  [inline, virtual]

Definition at line 28 of file AtNuShieldPerformance.h.

00028 { }


Member Function Documentation

SimplePlankEnd::ClassDef ( SimplePlankEnd  ,
 
)
bool SimplePlankEnd::operator< ( const SimplePlankEnd p2  )  const [inline]

Definition at line 30 of file AtNuShieldPerformance.h.

References End, Plane, and Plank.

00031   {
00032     if(Plane<p2.Plane) return true;
00033     if(Plane==p2.Plane && Plank<p2.Plank) return true;
00034     if(Plane==p2.Plane && Plank==p2.Plank && End<p2.End) return true;
00035     return false;
00036   };

bool SimplePlankEnd::operator== ( const SimplePlankEnd p2  )  const [inline]

Definition at line 38 of file AtNuShieldPerformance.h.

References End, Plane, and Plank.

00039   {
00040     //Plank == -1 defines ambiguous Plank and End == -1 defines ambiguous end
00041     //if the Planks are within 8 strip of one another, they are equivalent
00042     if(Plane==p2.Plane &&
00043        (Plank==p2.Plank || Plank==-1 || p2.Plank==-1 ||
00044         abs(Plank-p2.Plank)<8) &&
00045        (End==p2.End || End==-1 || p2.End==-1)) return true;
00046     return false;
00047   };


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on 15 Jul 2018 for loon by  doxygen 1.6.1