Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JCALIBRATE::JParameters Struct Reference

Auxiliary class for PMT parameters including threshold. More...

#include <JParameters.hh>

Public Member Functions

bool operator< (const JParameters &parameters) const
 Less-than operator.
 
 JParameters ()
 Default constructor.
 
 JParameters (int runId, int domId, int pmtId, double threshold, double noise, double signal, bool badChannel)
 Constructor.
 

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 &parameters)
 Write parameters to output stream.
 
std::istream & operator>> (std::istream &in, JParameters &parameters)
 Read parameters from input stream.
 

Detailed Description

Auxiliary class for PMT parameters including threshold.

Definition at line 21 of file JParameters.hh.

Constructor & Destructor Documentation

◆ JParameters() [1/2]

JCALIBRATE::JParameters::JParameters ( )
inline

Default constructor.

Definition at line 88 of file JParameters.hh.

◆ JParameters() [2/2]

JCALIBRATE::JParameters::JParameters ( int runId,
int domId,
int pmtId,
double threshold,
double noise,
double signal,
bool badChannel )
inline

Constructor.

Parameters
runIdrun number
domIdmodule identifier
pmtIdPMT number
thresholdthreshold
noisenoise
signalsignal
badChannelbadness of channel

Definition at line 110 of file JParameters.hh.

116 :
117 runId(runId),
118 domId(domId),
119 pmtId(pmtId),
121 noise(noise),
122 signal(signal),
124 {}

Member Function Documentation

◆ operator<()

bool JCALIBRATE::JParameters::operator< ( const JParameters & parameters) const
inline

Less-than operator.

Parameters
parametersparameters
Returns
true if perameters less than given parameters; else false

Definition at line 67 of file JParameters.hh.

68 {
69 if (domId < parameters.domId) {
70 return true;
71 } else if (domId == parameters.domId) {
72 if (pmtId < parameters.pmtId) {
73 return true;
74 } else if (pmtId == parameters.pmtId) {
75 if (threshold < parameters.threshold) {
76 return true;
77 }
78 }
79 }
80
81 return false;
82 }

Friends And Related Symbol Documentation

◆ operator<<

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

Write parameters to output stream.

Parameters
outoutput stream
parametersparameters
Returns
output stream

Definition at line 30 of file JParameters.hh.

31 {
32 return out << parameters.runId << ' '
33 << parameters.domId << ' '
34 << parameters.pmtId << ' '
35 << parameters.threshold << ' '
36 << parameters.noise << ' '
37 << parameters.signal << ' '
38 << parameters.badChannel;
39 }

◆ operator>>

std::istream & operator>> ( std::istream & in,
JParameters & parameters )
friend

Read parameters from input stream.

Parameters
ininput stream
parametersparameters
Returns
input stream

Definition at line 49 of file JParameters.hh.

50 {
51 return in >> parameters.runId
52 >> parameters.domId
53 >> parameters.pmtId
54 >> parameters.threshold
55 >> parameters.noise
56 >> parameters.signal
57 >> parameters.badChannel;
58 }

Member Data Documentation

◆ runId

int JCALIBRATE::JParameters::runId

Definition at line 126 of file JParameters.hh.

◆ domId

int JCALIBRATE::JParameters::domId

Definition at line 127 of file JParameters.hh.

◆ pmtId

int JCALIBRATE::JParameters::pmtId

Definition at line 128 of file JParameters.hh.

◆ threshold

double JCALIBRATE::JParameters::threshold

Definition at line 129 of file JParameters.hh.

◆ noise

double JCALIBRATE::JParameters::noise

Definition at line 130 of file JParameters.hh.

◆ signal

double JCALIBRATE::JParameters::signal

Definition at line 131 of file JParameters.hh.

◆ badChannel

bool JCALIBRATE::JParameters::badChannel

Definition at line 132 of file JParameters.hh.


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