GEMC  2.2
Geant4 Monte-Carlo Framework
Public Member Functions | Data Fields | Friends
identifier Class Reference

#include <identifier.h>

+ Collaboration diagram for identifier:

Public Member Functions

 identifier ()
 
 ~identifier ()
 
bool operator== (const identifier &I) const
 Overloaded "==" operator for the class 'identifier'. More...
 
bool operator< (const identifier &I) const
 Overloaded "<" operator for the class 'identifier'. More...
 
bool operator> (const identifier &I) const
 Overloaded ">" operator for the class 'identifier'. More...
 
bool operator<= (const identifier &I) const
 Overloaded "<=" operator for the class 'identifier'. More...
 
bool operator>= (const identifier &I) const
 Overloaded ">=" operator for the class 'identifier'. More...
 
bool operator!= (const identifier &I) const
 Overloaded "!=" operator for the class 'identifier'. More...
 

Data Fields

string name
 Name of the detector. More...
 
string rule
 "manual" or "ncopy" More...
 
int id
 manually assing ID. 0 if "ncopy" (will be set at hit processing time) More...
 
double time
 Time of the first step. More...
 
double TimeWindow
 Time Window. If abs(steptime - time) is smaller than TimeWindow, it's the same hit. More...
 
int TrackId
 If Time Window is 0, it's a "flux" detector: if it's the same track, it's the same hit. Different track, different hit. More...
 
double id_sharing
 A single step can generate multiple identifiers. This variable represent the percentage sharing of the current identifier. Sum must be normalized to 1. More...
 

Friends

ostream & operator<< (ostream &stream, vector< identifier >)
 Overloaded "<<" for the class 'identifier'. More...
 

Detailed Description

Identifier

Definition at line 25 of file identifier.h.

Constructor & Destructor Documentation

identifier::identifier ( )
inline

Definition at line 28 of file identifier.h.

identifier::~identifier ( )
inline

Definition at line 35 of file identifier.h.

Member Function Documentation

bool identifier::operator!= ( const identifier I) const
inline

Definition at line 52 of file identifier.h.

bool identifier::operator< ( const identifier I) const

Definition at line 35 of file identifier.cc.

bool identifier::operator<= ( const identifier I) const
inline

Definition at line 50 of file identifier.h.

bool identifier::operator== ( const identifier I) const

Definition at line 16 of file identifier.cc.

bool identifier::operator> ( const identifier I) const

Definition at line 44 of file identifier.cc.

bool identifier::operator>= ( const identifier I) const
inline

Definition at line 51 of file identifier.h.

Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
vector< identifier Iden 
)
friend

Definition at line 54 of file identifier.cc.

Field Documentation

int identifier::id

Definition at line 39 of file identifier.h.

double identifier::id_sharing

Definition at line 43 of file identifier.h.

string identifier::name

Definition at line 37 of file identifier.h.

string identifier::rule

Definition at line 38 of file identifier.h.

double identifier::time

Definition at line 40 of file identifier.h.

double identifier::TimeWindow

Definition at line 41 of file identifier.h.

int identifier::TrackId

Definition at line 42 of file identifier.h.