template<class Function>
class fit::RootMinuitCommands< Function >
Definition at line 48 of file RootMinuitCommands.h.
template<typename Function >
Definition at line 125 of file RootMinuitCommands.h.
References cmsBenchmark::cmssw_base, cmsBenchmark::cmssw_release_base, TrackerTrackHitFilter_cff::commands, edm::errors::Configuration, gather_cfg::cout, fit::RootMinuitCommand::doubleArgs, MillePedeFileConverter_cfg::e, fit::parameter_t::err, Exception, FrontierConditions_GlobalTag_cff::file, fit::parameter_t::fixed, alignBH_cfg::fixed, mps_fire::i, kFix, kMigrad, kMinimize, kParameter, kPrintAll, kRelease, kSet, plotBeamSpotDB::last, geometryCSVtoXML::line, fit::parameter_t::max, fit::parameter_t::min, fit::RootMinuitCommand::name, callgraph::path, fit::RootMinuitCommand::print(), alignCSCRings::s, fit::RootMinuitCommand::stringArgs, and fit::parameter_t::val.
130 if(!cmssw_release_base.empty()) {
132 path += (cmssw_release_base +
"/src");
134 if(!cmssw_base.empty()) {
136 path += (cmssw_base +
"/src");
139 std::ifstream *
file = fileInPath();
140 if(file==0 || !file->is_open())
142 <<
"RootMinuitCommands: can't open file: " <<
fileName 143 <<
" in path: " << path <<
"\n";
149 while(getline(*file, line)) {
151 if(line.size()==0)
continue;
152 char last = *line.rbegin();
153 if(!(last >=
'0' && last <=
'z')) line.erase(line.end() - 1);
154 boost::char_separator<char> sep(
" ");
156 tokenizer::iterator
i = tokens.begin(),
e = tokens.end();
157 if(tokens.begin()==tokens.end())
continue;
158 if(*(i->begin()) !=
'#') {
163 <<
"please, declare all parameter before all other minuit commands.\n";
170 tokenizer::iterator j =
i; ++j;
175 else if(fixed ==
"free")
180 <<
"fix parameter option unknown: " << *i <<
"\n" 181 <<
"valid options are: fixed, free.\n";
185 pars_.push_back(std::make_pair(name, par));
191 <<
" [" << par.min <<
", " << par.max <<
"]," 192 <<
" err: " << par.err
199 com.stringArgs.push_back(arg);
204 }
else if(*i ==
kSet) {
209 com.stringArgs.push_back(arg);
226 <<
"unkonwn command:: " << *i <<
"\n";
232 cout <<
">>> end configuration" << endl;
std::string errorHeader() const
boost::tokenizer< boost::char_separator< char > > tokenizer
double par(const std::string &name)
std::vector< command > commands_
std::string nextToken(typename tokenizer::iterator &i, const typename tokenizer::iterator &end) const
bool fixed(const std::string &name)
commands
min number of hits for refit layers to remove
double string2double(const std::string &str) const
std::map< std::string, size_t > parIndices_
RootMinuitCommand command