Jpp
Public Member Functions | Public Attributes | Protected Attributes | List of all members
JDETECTOR::JMonteCarloDetector::String Class Reference

Auxiliary class for string parameters. More...

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

Public Member Functions

 String (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 tOffset
 time offset More...
 
double twist
 twist offset More...
 
double twistRate
 twist rate More...
 

Protected Attributes

int __id
 

Detailed Description

Auxiliary class for string parameters.

Definition at line 158 of file JMonteCarloDetector.hh.

Constructor & Destructor Documentation

◆ String()

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

Constructor.

Parameters
ininput stream

Definition at line 167 of file JMonteCarloDetector.hh.

168  {
169  in >> static_cast<JObjectID&>(*this) >> x >> y >> z >> tOffset >> twist >> twistRate;
170  }

Member Function Documentation

◆ getID()

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

Get identifier.

Returns
identifier

Definition at line 55 of file JObjectID.hh.

56  {
57  return __id;
58  }

◆ setID()

void JLANG::JObjectID::setID ( const int  id)
inlineinherited

Set identifier.

Parameters
ididentifier

Definition at line 66 of file JObjectID.hh.

67  {
68  this->__id = id;
69  }

◆ less() [1/2]

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 78 of file JObjectID.hh.

79  {
80  return this->getID() < object.getID();
81  }

◆ less() [2/2]

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 90 of file JObjectID.hh.

91  {
92  return this->getID() < id;
93  }

◆ more()

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 102 of file JObjectID.hh.

103  {
104  return this->getID() > id;
105  }

Member Data Documentation

◆ x

double JDETECTOR::JMonteCarloDetector::String::x

x position

Definition at line 173 of file JMonteCarloDetector.hh.

◆ y

double JDETECTOR::JMonteCarloDetector::String::y

y position

Definition at line 174 of file JMonteCarloDetector.hh.

◆ z

double JDETECTOR::JMonteCarloDetector::String::z

z position

Definition at line 175 of file JMonteCarloDetector.hh.

◆ tOffset

double JDETECTOR::JMonteCarloDetector::String::tOffset

time offset

Definition at line 176 of file JMonteCarloDetector.hh.

◆ twist

double JDETECTOR::JMonteCarloDetector::String::twist

twist offset

Definition at line 177 of file JMonteCarloDetector.hh.

◆ twistRate

double JDETECTOR::JMonteCarloDetector::String::twistRate

twist rate

Definition at line 178 of file JMonteCarloDetector.hh.

◆ __id

int JLANG::JObjectID::__id
protectedinherited

Definition at line 160 of file JObjectID.hh.


The documentation for this class was generated from the following file:
JDETECTOR::JMonteCarloDetector::String::twist
double twist
twist offset
Definition: JMonteCarloDetector.hh:177
JDETECTOR::JMonteCarloDetector::String::x
double x
x position
Definition: JMonteCarloDetector.hh:173
JDETECTOR::JMonteCarloDetector::String::twistRate
double twistRate
twist rate
Definition: JMonteCarloDetector.hh:178
JDETECTOR::JMonteCarloDetector::String::z
double z
z position
Definition: JMonteCarloDetector.hh:175
JLANG::JObjectID::getID
int getID() const
Get identifier.
Definition: JObjectID.hh:55
JDETECTOR::JMonteCarloDetector::String::tOffset
double tOffset
time offset
Definition: JMonteCarloDetector.hh:176
JLANG::JObjectID::__id
int __id
Definition: JObjectID.hh:160
JDETECTOR::JMonteCarloDetector::String::y
double y
y position
Definition: JMonteCarloDetector.hh:174