#include <FittedEntriesManager.h>
Definition at line 16 of file FittedEntriesManager.h.
◆ FittedEntriesManager()
FittedEntriesManager::FittedEntriesManager |
( |
| ) |
|
|
inline |
◆ ~FittedEntriesManager()
FittedEntriesManager::~FittedEntriesManager |
( |
| ) |
|
|
inline |
◆ AddFittedEntriesSet()
◆ createFileName()
◆ dumpEntriesSubstraction()
◆ GetDifferentBetweenLasers()
void FittedEntriesManager::GetDifferentBetweenLasers |
( |
| ) |
|
|
private |
Definition at line 129 of file FittedEntriesManager.cc.
131 std::vector<OpticalObject*>::const_iterator ite;
132 std::map<ALIstring, LightRay*> lrays;
134 for (ite = optoList.begin(); ite != optoList.end(); ++ite) {
135 if ((*ite)->type() ==
"laser") {
138 lrays[(*ite)->parent()->name()] = lightray;
142 std::map<ALIstring, LightRay*>::const_iterator lite1, lite2;
143 for (lite1 = lrays.begin(); lite1 != lrays.end(); ++lite1) {
146 for (; lite2 != lrays.end(); ++lite2) {
149 CLHEP::Hep3Vector dirdiff = ((*lite1).second->direction() - (*lite2).second->direction());
151 std::cout <<
"LASER DIFF " << (*lite1).first <<
" & " << (*lite2).first <<
" " << dirdiff.mag() * 180. /
M_PI
152 <<
"o " << dirdiff.mag() <<
" rad " << dirdiff << std::endl;
154 (*lite1).second->dumpData(
ALIstring(
" laser ") + (*lite1).first);
155 (*lite2).second->dumpData(
ALIstring(
" laser ") + (*lite2).first);
References gather_cfg::cout, ALIUtils::debug, M_PI, Model::OptOList(), and LightRay::startLightRay().
Referenced by MakeHistos().
◆ getFittedEntriesSets()
std::vector<FittedEntriesSet*> FittedEntriesManager::getFittedEntriesSets |
( |
| ) |
const |
|
inline |
◆ getInstance()
◆ MakeHistos()
void FittedEntriesManager::MakeHistos |
( |
| ) |
|
Definition at line 38 of file FittedEntriesManager.cc.
50 fout.open(
"fittedEntries.out");
51 fout2.open(
"longFittedEntries.out");
59 std::vector<FittedEntriesSet*>::const_iterator vfescite;
60 std::vector<FittedEntry*>::const_iterator vfecite;
68 for (vfecite = ((*vfescite)->FittedEntries()).begin(); vfecite != ((*vfescite)->FittedEntries()).
end();
74 std::cout <<
ii <<
": " << std::setw(13) <<
filename <<
" = " << (*vfecite)->getName() << std::endl;
92 fout << (*vfescite)->getDate() <<
" " << (*vfescite)->getTime() <<
" ";
93 fout2 << (*vfescite)->getDate() <<
" " << (*vfescite)->getTime() <<
" ";
97 for (vfecite = ((*vfescite)->FittedEntries()).begin(); vfecite != ((*vfescite)->FittedEntries()).
end(); ++vfecite) {
100 fout << std::setprecision(8) << std::setw(10) << (*vfecite)->getValue() <<
" " << (*vfecite)->getSigma() <<
" ";
104 std::cout <<
" FITTEDENTRY:" << std::setprecision(5) << std::setw(8) << (*vfecite)->getValue() <<
" +- "
105 << (*vfecite)->getSigma() << std::endl;
108 fout2 << std::setprecision(8) << std::setw(10) <<
filename <<
" " << (*vfecite)->getValue() <<
" "
109 << (*vfecite)->getSigma() <<
" ";
References AddFittedEntriesSet(), gather_cfg::cout, createFileName(), ALIUtils::debug, ALIUtils::dumpDimensions(), mps_fire::end, corrVsCorr::filename, groupFilesInBlocks::fout, GetDifferentBetweenLasers(), GlobalOptionMgr::getInstance(), GlobalOptionMgr::GlobalOptions(), cuy::ii, findQualityFiles::jj, findQualityFiles::size, and theFittedEntriesSets.
Referenced by Fit::startFit().
◆ instance
◆ theFittedEntriesSets
ALIdouble getSigma() const
ALIdouble getValue() const