Belle II Software  release-08-01-10
PedeApplication.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <alignment/dataobjects/PedeSteering.h>
12 #include <alignment/PedeResult.h>
13 
14 #include <string>
15 
16 namespace Belle2 {
21  namespace alignment {
24  public:
29  bool run(PedeSteering& steering);
34  bool success() {return warnings() <= 1;}
36  int warnings() const;
38  bool aborted() const {return exitCode >= 10 || exitCode == -1;}
40  int getExitCode() const {return exitCode;}
42  std::string getExitMessage() const {return exitMessage;}
44  void readEndFile(std::string filename = "millepede.end");
46  int revision();
47 
48  private:
50  int exitCode;
52  std::string exitMessage;
53  };
54  }
56 }
Class representing Millepede steering.
Definition: PedeSteering.h:23
Class interfacing Millepede solver (Pede)
bool success()
Was Pede successfull (can the result be used)?
bool run(PedeSteering &steering)
Run Pede with given steering.
PedeResult calibrate(PedeSteering &steering)
Run Pede and return full result with parameter corrections.
int warnings() const
Level of warnings converted to int.
int getExitCode() const
Returns the Pede exit code (from millepede.end file)
std::string exitMessage
Pede exit message.
void readEndFile(std::string filename="millepede.end")
Reads the millepede.end file and sets this object retrieved state.
bool aborted() const
True if Pede was aborted (parameters not calculated)
int revision()
Return Pede revision number.
std::string getExitMessage() const
Returns the Pede exit message (from millepede.end file)
Class to process Pede result file(s)
Definition: PedeResult.h:22
Abstract base class for different kinds of events.