Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Protected Attributes | List of all members
JDETECTOR::JMonteCarloDetector::OM_position Class Reference

Auxiliary class for OM position. More...

Inheritance diagram for JDETECTOR::JMonteCarloDetector::OM_position:
JLANG::JObjectID JLANG::JComparable< JObjectID, int >

Public Member Functions

 OM_position (std::istream &in)
 Constructor. More...
 
int getID () const
 Get identifier. More...
 
void setID (const int id)
 Set identifier. More...
 
bool less (const JObjectID &object) const
 Less than method. More...
 
bool less (const int id) const
 Less than method. More...
 
bool more (const int id) const
 More than method. More...
 

Public Attributes

double x
 x position More...
 
double y
 y position More...
 
double z
 z position More...
 
double theta
 zenit angle of orientation More...
 
double phi
 azimuth angle of orientation More...
 

Protected Attributes

int __id
 

Detailed Description

Auxiliary class for OM position.

Definition at line 132 of file JMonteCarloDetector.hh.

Constructor & Destructor Documentation

JDETECTOR::JMonteCarloDetector::OM_position::OM_position ( std::istream &  in)
inline

Constructor.

Parameters
ininput stream

Definition at line 141 of file JMonteCarloDetector.hh.

142  {
143  in >> static_cast<JObjectID&>(*this) >> x >> y >> z >> theta >> phi;
144  }
JObjectID()
Default constructor.
Definition: JObjectID.hh:34
double theta
zenit angle of orientation
double phi
azimuth angle of orientation

Member Function Documentation

int JLANG::JObjectID::getID ( ) const
inlineinherited

Get identifier.

Returns
identifier

Definition at line 54 of file JObjectID.hh.

55  {
56  return __id;
57  }
void JLANG::JObjectID::setID ( const int  id)
inlineinherited

Set identifier.

Parameters
ididentifier

Definition at line 65 of file JObjectID.hh.

66  {
67  this->__id = id;
68  }
bool JLANG::JObjectID::less ( const JObjectID object) const
inlineinherited

Less than method.

Parameters
objectobject identifier
Returns
true if this identifier less than given identifier; else false

Definition at line 77 of file JObjectID.hh.

78  {
79  return this->getID() < object.getID();
80  }
int getID() const
Get identifier.
Definition: JObjectID.hh:54
bool JLANG::JObjectID::less ( const int  id) const
inlineinherited

Less than method.

Parameters
ididentifier
Returns
true if this identifier less than given identifier; else false

Definition at line 89 of file JObjectID.hh.

90  {
91  return this->getID() < id;
92  }
int getID() const
Get identifier.
Definition: JObjectID.hh:54
bool JLANG::JObjectID::more ( const int  id) const
inlineinherited

More than method.

Parameters
ididentifier
Returns
true if this identifier greater than given identifier; else false

Definition at line 101 of file JObjectID.hh.

102  {
103  return this->getID() > id;
104  }
int getID() const
Get identifier.
Definition: JObjectID.hh:54

Member Data Documentation

double JDETECTOR::JMonteCarloDetector::OM_position::x

x position

Definition at line 147 of file JMonteCarloDetector.hh.

double JDETECTOR::JMonteCarloDetector::OM_position::y

y position

Definition at line 148 of file JMonteCarloDetector.hh.

double JDETECTOR::JMonteCarloDetector::OM_position::z

z position

Definition at line 149 of file JMonteCarloDetector.hh.

double JDETECTOR::JMonteCarloDetector::OM_position::theta

zenit angle of orientation

Definition at line 150 of file JMonteCarloDetector.hh.

double JDETECTOR::JMonteCarloDetector::OM_position::phi

azimuth angle of orientation

Definition at line 151 of file JMonteCarloDetector.hh.

int JLANG::JObjectID::__id
protectedinherited

Definition at line 159 of file JObjectID.hh.


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