Belle II Software  release-08-01-10
PedeSteering Class Reference

Class representing Millepede steering. More...

#include <PedeSteering.h>

Inheritance diagram for PedeSteering:
Collaboration diagram for PedeSteering:

Public Member Functions

 PedeSteering ()
 Default constructor.
 
 PedeSteering (const std::string &filename)
 Constructor to directly import command from file. More...
 
virtual ~PedeSteering ()
 Destructor.
 
void import (std::string filename)
 Load commands from existing text file. More...
 
void command (std::string line)
 Add command to the steering. More...
 
std::string make (std::string filename="")
 Compose and write out steering file. More...
 
void fixParameters (std::vector< int > labels, std::vector< double > values={}, std::vector< double > presigmas={})
 Fix parameter values and set presigmas. More...
 
void addFile (std::string filename, double weight=1.)
 Add a file (optionally with weight) to list of binary files.
 
void clearFiles ()
 Clear list of files.
 

Private Attributes

std::vector< std::string > commands
 list command lines
 
std::vector< std::string > files
 list of binary files
 
std::string name
 Name of steering (used as default filename)
 

Detailed Description

Class representing Millepede steering.

Definition at line 23 of file PedeSteering.h.

Constructor & Destructor Documentation

◆ PedeSteering()

PedeSteering ( const std::string &  filename)
inlineexplicit

Constructor to directly import command from file.

Parameters
filenametext file with Pede commands

Definition at line 29 of file PedeSteering.h.

29 : commands(), files(), name(filename) {}
std::vector< std::string > files
list of binary files
Definition: PedeSteering.h:59
std::string name
Name of steering (used as default filename)
Definition: PedeSteering.h:61
std::vector< std::string > commands
list command lines
Definition: PedeSteering.h:57

Member Function Documentation

◆ command()

void command ( std::string  line)

Add command to the steering.

Parameters
lineLine with command to be added

Definition at line 35 of file PedeSteering.cc.

36 {
37  commands.push_back(line);
38 }

◆ fixParameters()

void fixParameters ( std::vector< int >  labels,
std::vector< double >  values = {},
std::vector< double >  presigmas = {} 
)

Fix parameter values and set presigmas.

Parameters
labelsVector of Pede labels (see GlobalLabel.h)
valuesVector (of size labels) with values to be set to parameters in labels
presigmasVector (of size labels) with presigmas for parameters (<0 means fixed parameter)

Definition at line 51 of file PedeSteering.cc.

◆ import()

void import ( std::string  filename)

Load commands from existing text file.

Parameters
filenamePath to txt file to be loaded

Definition at line 39 of file PedeSteering.cc.

◆ make()

string make ( std::string  filename = "")

Compose and write out steering file.

Parameters
filenameOutput steering file name

Definition at line 16 of file PedeSteering.cc.


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