Public Member Functions | Public Attributes | List of all members
beamlinegeo::ChannelID Struct Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-25/BeamlineUtils/BeamlineGeometry.h"

Inheritance diagram for beamlinegeo::ChannelID:
beamlinegeo::DetectorID beamlinegeo::SystemID

Public Member Functions

 ChannelID ()
 
 ChannelID (DetectorID detector, unsigned int channel)
 
 ChannelID (unsigned int system, unsigned int detector, unsigned int channel)
 
SystemID GetSystemID () const
 
DetectorID GetDetectorID () const
 
bool operator== (const ChannelID &cid) const
 
bool operator< (const ChannelID &cid) const
 
bool operator> (const ChannelID &cid) const
 
bool operator== (const DetectorID &did) const
 
bool operator== (const SystemID &sid) const
 
bool operator< (const DetectorID &did) const
 
bool operator< (const SystemID &sid) const
 
bool operator> (const DetectorID &did) const
 
bool operator> (const SystemID &sid) const
 

Public Attributes

unsigned int Channel
 
unsigned int Detector
 
unsigned int System
 

Detailed Description

Definition at line 78 of file BeamlineGeometry.h.

Constructor & Destructor Documentation

beamlinegeo::ChannelID::ChannelID ( )
inline

Definition at line 79 of file BeamlineGeometry.h.

beamlinegeo::ChannelID::ChannelID ( DetectorID  detector,
unsigned int  channel 
)
inline

Definition at line 80 of file BeamlineGeometry.h.

beamlinegeo::ChannelID::ChannelID ( unsigned int  system,
unsigned int  detector,
unsigned int  channel 
)
inline

Definition at line 82 of file BeamlineGeometry.h.

82  : DetectorID(system, detector), Channel(channel) {
83  }
system("rm -rf microbeam.root")

Member Function Documentation

DetectorID beamlinegeo::ChannelID::GetDetectorID ( ) const
inline

Definition at line 85 of file BeamlineGeometry.h.

85 { return *this; }
SystemID beamlinegeo::ChannelID::GetSystemID ( ) const
inline

Definition at line 84 of file BeamlineGeometry.h.

84 { return *this; }
bool beamlinegeo::SystemID::operator< ( const SystemID sid) const
inlineinherited

Definition at line 33 of file BeamlineGeometry.h.

References beamlinegeo::SystemID::System.

33  {
34  if (sid.System >= System) return false;
35  return true;
36  }
bool beamlinegeo::DetectorID::operator< ( const DetectorID did) const
inlineinherited

Definition at line 59 of file BeamlineGeometry.h.

References beamlinegeo::DetectorID::Detector, and beamlinegeo::SystemID::System.

59  {
60  if (did.System >= System) return false;
61  if (did.Detector >= Detector) return false;
62  return true;
63  }
bool beamlinegeo::ChannelID::operator< ( const ChannelID cid) const
inline

Definition at line 89 of file BeamlineGeometry.h.

References Channel, beamlinegeo::DetectorID::Detector, and beamlinegeo::SystemID::System.

89  {
90  if (cid.System > System) return false;
91  if (cid.System == System and cid.Detector > Detector) return false;
92  if (cid.System == System and cid.Detector == Detector and cid.Channel >= Channel) return false;
93  return true;
94  }
bool beamlinegeo::SystemID::operator== ( const SystemID sid) const
inlineinherited

Definition at line 30 of file BeamlineGeometry.h.

References beamlinegeo::SystemID::System.

30  {
31  return (sid.System == System);
32  }
bool beamlinegeo::DetectorID::operator== ( const DetectorID did) const
inlineinherited

Definition at line 56 of file BeamlineGeometry.h.

References beamlinegeo::DetectorID::Detector, and beamlinegeo::SystemID::System.

56  {
57  return (did.System == System and did.Detector == Detector);
58  }
bool beamlinegeo::ChannelID::operator== ( const ChannelID cid) const
inline

Definition at line 86 of file BeamlineGeometry.h.

References Channel, beamlinegeo::DetectorID::Detector, and beamlinegeo::SystemID::System.

86  {
87  return (cid.System == System and cid.Detector == Detector and cid.Channel == Channel);
88  }
bool beamlinegeo::SystemID::operator> ( const SystemID sid) const
inlineinherited

Definition at line 37 of file BeamlineGeometry.h.

References beamlinegeo::SystemID::System.

37  {
38  if (sid.System <= System) return false;
39  return true;
40  }
bool beamlinegeo::DetectorID::operator> ( const DetectorID did) const
inlineinherited

Definition at line 64 of file BeamlineGeometry.h.

References beamlinegeo::DetectorID::Detector, and beamlinegeo::SystemID::System.

64  {
65  if (did.System <= System) return false;
66  if (did.Detector <= Detector) return false;
67  return true;
68  }
bool beamlinegeo::ChannelID::operator> ( const ChannelID cid) const
inline

Definition at line 95 of file BeamlineGeometry.h.

References Channel, beamlinegeo::DetectorID::Detector, and beamlinegeo::SystemID::System.

95  {
96  if (cid.System < System) return false;
97  if (cid.System == System and cid.Detector < Detector) return false;
98  if (cid.System == System and cid.Detector == Detector and cid.Channel <= Channel) return false;
99  return true;
100  }

Member Data Documentation

unsigned int beamlinegeo::ChannelID::Channel

Definition at line 101 of file BeamlineGeometry.h.

Referenced by operator<(), beamlinegeo::operator<<(), operator==(), and operator>().

unsigned int beamlinegeo::DetectorID::Detector
inherited
unsigned int beamlinegeo::SystemID::System
inherited

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