Belle II Software  release-05-01-25
PedeSteering.h
1 #pragma once
2 
3 #include <TObject.h>
4 
5 #include <string>
6 #include <vector>
7 
8 namespace Belle2 {
16  class PedeSteering : public TObject {
17  public:
19  PedeSteering() : commands(), files(), name("PedeSteering.txt") {}
22  explicit PedeSteering(const std::string& filename) : commands(), files(), name(filename) {}
24  virtual ~PedeSteering() {}
27  void import(std::string filename);
30  void command(std::string line);
33  std::string make(std::string filename = "");
38  void fixParameters(std::vector<int> labels, std::vector<double> values = {}, std::vector<double> presigmas = {});
39 
40  //void addConstraint(double constraint, vector<int> labels, vector<double> coefficients);
41 
43  void addFile(std::string filename, double weight = 1.);
44 
46  void clearFiles() {files.clear();}
47 
48  private:
50  std::vector<std::string> commands;
52  std::vector<std::string> files;
54  std::string name;
55 
56  ClassDef(PedeSteering, 1)
58  };
59 
61 }
Belle2::PedeSteering::addFile
void addFile(std::string filename, double weight=1.)
Add a file (optionally with weight) to list of binary files.
Definition: PedeSteering.cc:62
Belle2::PedeSteering::PedeSteering
PedeSteering()
Default constructor.
Definition: PedeSteering.h:19
Belle2::PedeSteering::~PedeSteering
virtual ~PedeSteering()
Destructor.
Definition: PedeSteering.h:24
Belle2::PedeSteering::commands
std::vector< std::string > commands
list command lines
Definition: PedeSteering.h:50
Belle2::PedeSteering::fixParameters
void fixParameters(std::vector< int > labels, std::vector< double > values={}, std::vector< double > presigmas={})
Fix parameter values and set presigmas.
Definition: PedeSteering.cc:44
Belle2::PedeSteering::name
std::string name
Name of steering (used as default filename)
Definition: PedeSteering.h:54
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::PedeSteering
Class representing Millepede steering.
Definition: PedeSteering.h:16
Belle2::PedeSteering::files
std::vector< std::string > files
list of binary files
Definition: PedeSteering.h:52
Belle2::PedeSteering::PedeSteering
PedeSteering(const std::string &filename)
Constructor to directly import command from file.
Definition: PedeSteering.h:22
Belle2::PedeSteering::make
std::string make(std::string filename="")
Compose and write out steering file.
Definition: PedeSteering.cc:9
Belle2::PedeSteering::clearFiles
void clearFiles()
Clear list of files.
Definition: PedeSteering.h:46
Belle2::PedeSteering::command
void command(std::string line)
Add command to the steering.
Definition: PedeSteering.cc:28