Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Friends | List of all members
JCALIBRATE::JParameters Struct Reference

#include <JParameters.hh>

Public Member Functions

bool operator< (const JParameters &par) const
 
 JParameters ()
 
 JParameters (int runId, int domId, int pmtId, double threshold, double noise, double signal, bool badChannel)
 

Public Attributes

int runId
 
int domId
 
int pmtId
 
double threshold
 
double noise
 
double signal
 
bool badChannel
 

Friends

std::ostream & operator<< (std::ostream &out, const JParameters &par)
 
std::istream & operator>> (std::istream &in, JParameters &par)
 

Detailed Description

Definition at line 21 of file JParameters.hh.

Constructor & Destructor Documentation

JCALIBRATE::JParameters::JParameters ( )
inline

Definition at line 55 of file JParameters.hh.

55  :
56  runId(0),
57  domId(0),
58  pmtId(0),
59  threshold(0),
60  noise(0),
61  signal(0),
62  badChannel(false)
63  {}
JCALIBRATE::JParameters::JParameters ( int  runId,
int  domId,
int  pmtId,
double  threshold,
double  noise,
double  signal,
bool  badChannel 
)
inline

Member Function Documentation

bool JCALIBRATE::JParameters::operator< ( const JParameters par) const
inline

Definition at line 38 of file JParameters.hh.

39  {
40  if (domId < par.domId) {
41  return true;
42  } else if (domId == par.domId) {
43  if (pmtId < par.pmtId) {
44  return true;
45  } else if (pmtId == par.pmtId) {
46  if (threshold < par.threshold) {
47  return true;
48  }
49  }
50  }
51  return false;
52  }

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const JParameters par 
)
friend

Definition at line 23 of file JParameters.hh.

24  {
25  out << par.runId << ' ' << par.domId << ' ' << par.pmtId << ' '
26  << par.threshold << ' ' << par.noise << ' ' << par.signal << ' '
27  << par.badChannel;
28  return out;
29  }
std::istream& operator>> ( std::istream &  in,
JParameters par 
)
friend

Definition at line 31 of file JParameters.hh.

32  {
33  in >> par.runId >> par.domId >> par.pmtId >> par.threshold
34  >> par.noise >> par.signal >> par.badChannel;
35  return in;
36  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:36

Member Data Documentation

int JCALIBRATE::JParameters::runId

Definition at line 76 of file JParameters.hh.

int JCALIBRATE::JParameters::domId

Definition at line 77 of file JParameters.hh.

int JCALIBRATE::JParameters::pmtId

Definition at line 78 of file JParameters.hh.

double JCALIBRATE::JParameters::threshold

Definition at line 79 of file JParameters.hh.

double JCALIBRATE::JParameters::noise

Definition at line 80 of file JParameters.hh.

double JCALIBRATE::JParameters::signal

Definition at line 81 of file JParameters.hh.

bool JCALIBRATE::JParameters::badChannel

Definition at line 82 of file JParameters.hh.


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