SetStrip Class Reference

#include <UtilStrip.h>

List of all members.

Public Member Functions

 SetStrip (int i, double d, bool b)
 SetStrip (int i, const AtmosStrip *strip)

Public Attributes

unsigned int TCIndex
double Energy
bool DoubleEnded

Friends

bool operator< (const SetStrip &s1, const SetStrip &s2)
bool operator== (const SetStrip &s1, const SetStrip &s2)
bool operator!= (const SetStrip &s1, const SetStrip &s2)
bool operator> (const SetStrip &s1, const SetStrip &s2)

Detailed Description

Definition at line 38 of file UtilStrip.h.


Constructor & Destructor Documentation

SetStrip::SetStrip ( int  i,
double  d,
bool  b 
) [inline]

Definition at line 40 of file UtilStrip.h.

References DoubleEnded, Energy, and TCIndex.

00040 {TCIndex=i;Energy=d;DoubleEnded=b;}

SetStrip::SetStrip ( int  i,
const AtmosStrip strip 
)

Definition at line 84 of file UtilStrip.cxx.

References DoubleEnded, Energy, AtmosStrip::Ndigits, AtmosStrip::QPE, AtmosStrip::QPEcorr, and TCIndex.

00084                                                  {
00085   TCIndex = i;
00086 
00087 #ifdef PECORR
00088   Energy = strip->QPEcorr[0] + strip->QPEcorr[1];
00089 #else
00090   Energy = strip->QPE[0] + strip->QPE[1];
00091 #endif
00092 
00093   DoubleEnded = (bool)(strip->Ndigits - 1);
00094 }


Friends And Related Function Documentation

bool operator!= ( const SetStrip s1,
const SetStrip s2 
) [friend]

Definition at line 54 of file UtilStrip.h.

00054                                                                  {
00055     return (s1.TCIndex != s2.TCIndex);
00056   }

bool operator< ( const SetStrip s1,
const SetStrip s2 
) [friend]

Definition at line 48 of file UtilStrip.h.

00048                                                                 {
00049     return (s1.TCIndex < s2.TCIndex);
00050   }

bool operator== ( const SetStrip s1,
const SetStrip s2 
) [friend]

Definition at line 51 of file UtilStrip.h.

00051                                                                  {
00052     return (s1.TCIndex == s2.TCIndex);
00053   }

bool operator> ( const SetStrip s1,
const SetStrip s2 
) [friend]

Definition at line 57 of file UtilStrip.h.

00057                                                                 {
00058     return (s1.TCIndex > s2.TCIndex);
00059   }


Member Data Documentation

Definition at line 45 of file UtilStrip.h.

Referenced by SetStrip().

Definition at line 44 of file UtilStrip.h.

Referenced by SetStrip().

unsigned int SetStrip::TCIndex

Definition at line 43 of file UtilStrip.h.

Referenced by SetStrip().


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

Generated on 19 Jan 2018 for loon by  doxygen 1.6.1