90 int npar = form->GetNpar();
91 for (
int ipar=0; ipar<npar; ++ipar ) {
93 if ( spar ==
"run" ) {
95 form->SetParameter(
"run",
run());
98 std::cout << myname <<
"WARNING: RunData does not have run." <<
std::endl;
101 }
else if ( spar ==
"gain" ) {
103 form->SetParameter(
"gain",
gain());
106 std::cout << myname <<
"WARNING: RunData does not have gain." <<
std::endl;
109 }
else if ( spar ==
"shaping" ) {
111 form->SetParameter(
"shaping",
shaping());
114 std::cout << myname <<
"WARNING: RunData does not have shaping." <<
std::endl;
127 for (
Name spar : fpars ) {
128 if ( spar ==
"run" ) {
132 std::cout << myname <<
"WARNING: RunData does not have run." <<
std::endl;
135 }
else if ( spar ==
"gain" ) {
139 std::cout << myname <<
"WARNING: RunData does not have gain." <<
std::endl;
142 }
else if ( spar ==
"shaping" ) {
146 std::cout << myname <<
"WARNING: RunData does not have shaping." <<
std::endl;
169 std::ostream&
print(std::ostream& lhs =std::cout)
const {
172 lhs <<
"Invalid run data.";
175 lhs <<
"Data for run " <<
run();
177 if (
haveApas() ) lhs << sep <<
" APAs: ";
179 for (
Index iapa :
apas() ) lhs << (doComma++ ?
", " :
"") << iapa;
180 if (
haveGain() ) lhs << sep <<
" Gain: " <<
gain() <<
" mV/fC";
191 if ( first ) first =
false;
236 return rhs.
print(lhs);
bool havePulserPeriod() const
void setApas(const IndexVector &val)
Index pulserAmplitude() const
bool havePulserSource() const
const IndexVector & phases() const
void setPhaseGroup(Name val)
const IndexVector & apas() const
std::ostream & print(std::ostream &lhs=std::cout) const
void setPulserSource(Index val)
IndexVector & accessPhases()
bool havePhaseGroup() const
IndexVector & accessApas()
Name & accessPhaseGroup()
Index pulserPeriod() const
std::vector< Index > IndexVector
bool haveCryostat() const
Index & accessPulserAmplitude()
void setHvfrac(float val)
Index & accessPulserSource()
void setPhases(const IndexVector &val)
int setFormulaPars(ParFormula &form)
void setLeakage(float val)
bool haveBaseline() const
void setCryostat(Name val)
Index & accessPulserPeriod()
void setPulserAmplitude(Index val)
void setShaping(float val)
std::ostream & operator<<(std::ostream &lhs, const RunData &rhs)
SetStat setFormulaPars(TFormula *form)
void setPulserPeriod(Index val)
QTextStream & endl(QTextStream &s)
bool havePulserAmplitude() const
void setBaseline(float val)
Index pulserSource() const