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_cluster Class Reference

Auxiliary class for OM cluster parameters. More...

Inheritance diagram for JDETECTOR::JMonteCarloDetector::OM_cluster:
JLANG::JObjectID std::vector< int > JLANG::JComparable< JObjectID > JLANG::JComparable< JObjectID, int >

Public Member Functions

 OM_cluster (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

int string_id
 string identifier More...
 
double z
 z position More...
 

Protected Attributes

int __id
 

Detailed Description

Auxiliary class for OM cluster parameters.

Definition at line 73 of file JMonteCarloDetector.hh.

Constructor & Destructor Documentation

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

Constructor.

Parameters
ininput stream

Definition at line 83 of file JMonteCarloDetector.hh.

84  {
85  int n;
86 
87  in >> static_cast<JObjectID&>(*this) >> string_id >> z >> n;
88 
89  this->resize(n);
90 
91  iterator p = this->begin();
92 
93  for ( ; n != 0; --n, ++p)
94  in >> *p;
95  }
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
Definition: JSirene.sh:45
JObjectID()
Default constructor.
Definition: JObjectID.hh:35
alias put_queue eval echo n
Definition: qlib.csh:19

Member Function Documentation

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

Get identifier.

Returns
identifier

Definition at line 55 of file JObjectID.hh.

56  {
57  return __id;
58  }
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  }
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  }
int getID() const
Get identifier.
Definition: JObjectID.hh:55
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  }
int getID() const
Get identifier.
Definition: JObjectID.hh:55
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  }
int getID() const
Get identifier.
Definition: JObjectID.hh:55

Member Data Documentation

int JDETECTOR::JMonteCarloDetector::OM_cluster::string_id

string identifier

Definition at line 98 of file JMonteCarloDetector.hh.

double JDETECTOR::JMonteCarloDetector::OM_cluster::z

z position

Definition at line 99 of file JMonteCarloDetector.hh.

int JLANG::JObjectID::__id
protectedinherited

Definition at line 160 of file JObjectID.hh.


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