Public Member Functions | Protected Attributes | Friends | List of all members
ana::Seed Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-02/CAFAna/Fit/SeedList.h"

Public Member Functions

 Seed (const std::map< const IFitVar *, double > &vals)
 
void Set (const IFitVar *v, double x)
 
void ResetCalc (osc::IOscCalcAdjustable *calc) const
 
const std::map< const IFitVar *, double > GetVals () const
 
std::set< const IFitVar * > ActiveFitVars () const
 

Protected Attributes

std::map< const IFitVar *, double > fVals
 

Friends

std::ostream & operator<< (std::ostream &, const Seed &)
 

Detailed Description

Definition at line 14 of file SeedList.h.

Constructor & Destructor Documentation

ana::Seed::Seed ( const std::map< const IFitVar *, double > &  vals)
inline

Definition at line 19 of file SeedList.h.

Referenced by ana::SeedList::SeedList().

19 : fVals(vals) {}
std::map< const IFitVar *, double > fVals
Definition: SeedList.h:29

Member Function Documentation

std::set< const IFitVar * > ana::Seed::ActiveFitVars ( ) const

Definition at line 14 of file SeedList.cxx.

References fVals, it, and runNovaSAM::ret.

Referenced by GetVals(), and ana::SeedList::size().

15  {
16  std::set<const IFitVar*> ret;
17  for(auto it: fVals) ret.insert(it.first);
18  return ret;
19  }
set< int >::iterator it
std::map< const IFitVar *, double > fVals
Definition: SeedList.h:29
const std::map<const IFitVar*, double> ana::Seed::GetVals ( ) const
inline

Definition at line 25 of file SeedList.h.

References ActiveFitVars(), and fVals.

Referenced by ana::RefineSeeds().

25 {return fVals;}
std::map< const IFitVar *, double > fVals
Definition: SeedList.h:29
void ana::Seed::ResetCalc ( osc::IOscCalcAdjustable calc) const

Definition at line 8 of file SeedList.cxx.

References fVals, and it.

Referenced by Set().

9  {
10  for(auto it: fVals) it.first->SetValue(calc, it.second);
11  }
set< int >::iterator it
std::map< const IFitVar *, double > fVals
Definition: SeedList.h:29
void ana::Seed::Set ( const IFitVar v,
double  x 
)
inline

Definition at line 21 of file SeedList.h.

References calc, fVals, ResetCalc(), registry_explorer::v, and submit_syst::x.

21 {fVals[v] = x;}
std::map< const IFitVar *, double > fVals
Definition: SeedList.h:29

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const Seed  
)
friend

Definition at line 22 of file SeedList.cxx.

23  {
24  os << "(";
25  for(auto it: seed.fVals){
26  os << " " << it.first->ShortName() << "=" << it.second;
27  }
28  os << " )";
29  return os;
30  }
set< int >::iterator it
unsigned int seed
Definition: runWimpSim.h:102

Member Data Documentation

std::map<const IFitVar*, double> ana::Seed::fVals
protected

Definition at line 29 of file SeedList.h.

Referenced by ActiveFitVars(), GetVals(), ana::operator<<(), ResetCalc(), and Set().


The documentation for this class was generated from the following files: