Belle II Software  release-05-02-19
EKLMAlignmentAlongStripsAlgorithm.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Kirill Chilikin *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 /* Belle 2 headers. */
14 #include <calibration/CalibrationAlgorithm.h>
15 
16 namespace Belle2 {
25  class EKLMAlignmentAlongStripsAlgorithm : public CalibrationAlgorithm {
26 
27  public:
28 
32  struct Event {
33  int section;
34  int layer;
35  int sector;
36  int plane;
37  int strip;
38  int stripGlobal;
39  int segmentGlobal;
40  float x;
41  float y;
42  float z;
43  float distSiPM;
44  float distFarEnd;
45  };
46 
51 
56 
61 
65  void setOutputFile(const char* outputFile);
66 
67  private:
68 
74  int getAveragedPlane(int sector, int plane) const;
75 
77  std::string m_OutputFile;
78 
79  };
80 
82 }
Belle2::EKLMAlignmentAlongStripsAlgorithm::getAveragedPlane
int getAveragedPlane(int sector, int plane) const
Get plane number for average values (0-based).
Definition: EKLMAlignmentAlongStripsAlgorithm.cc:186
Belle2::EKLMAlignmentAlongStripsAlgorithm::Event::plane
int plane
Plane number.
Definition: EKLMAlignmentAlongStripsAlgorithm.h:44
Belle2::EKLMAlignmentAlongStripsAlgorithm::Event::x
float x
Hit X coordinate.
Definition: EKLMAlignmentAlongStripsAlgorithm.h:48
Belle2::EKLMAlignmentAlongStripsAlgorithm::Event::segmentGlobal
int segmentGlobal
Segment global number.
Definition: EKLMAlignmentAlongStripsAlgorithm.h:47
Belle2::EKLMAlignmentAlongStripsAlgorithm::Event::z
float z
Hit Z coordinate.
Definition: EKLMAlignmentAlongStripsAlgorithm.h:50
Belle2::EKLMAlignmentAlongStripsAlgorithm::~EKLMAlignmentAlongStripsAlgorithm
~EKLMAlignmentAlongStripsAlgorithm()
Destructor.
Definition: EKLMAlignmentAlongStripsAlgorithm.cc:35
Belle2::EKLMAlignmentAlongStripsAlgorithm::setOutputFile
void setOutputFile(const char *outputFile)
Set output file name.
Definition: EKLMAlignmentAlongStripsAlgorithm.cc:180
Belle2::EKLMAlignmentAlongStripsAlgorithm::Event::strip
int strip
Strip number.
Definition: EKLMAlignmentAlongStripsAlgorithm.h:45
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::EKLMAlignmentAlongStripsAlgorithm::Event::layer
int layer
Layer number.
Definition: EKLMAlignmentAlongStripsAlgorithm.h:42
Belle2::EKLMAlignmentAlongStripsAlgorithm::Event::section
int section
Section number.
Definition: EKLMAlignmentAlongStripsAlgorithm.h:41
Belle2::EKLMAlignmentAlongStripsAlgorithm::calibrate
CalibrationAlgorithm::EResult calibrate() override
Calibration.
Definition: EKLMAlignmentAlongStripsAlgorithm.cc:39
Belle2::EKLMAlignmentAlongStripsAlgorithm::Event::sector
int sector
Sector number.
Definition: EKLMAlignmentAlongStripsAlgorithm.h:43
Belle2::CalibrationAlgorithm::EResult
EResult
The result of calibration.
Definition: CalibrationAlgorithm.h:50
Belle2::EKLMAlignmentAlongStripsAlgorithm::Event::distSiPM
float distSiPM
Distance from hit to the SiPM.
Definition: EKLMAlignmentAlongStripsAlgorithm.h:51
Belle2::EKLMAlignmentAlongStripsAlgorithm::m_OutputFile
std::string m_OutputFile
Output file name.
Definition: EKLMAlignmentAlongStripsAlgorithm.h:85
Belle2::EKLMAlignmentAlongStripsAlgorithm::Event::y
float y
Hit Y coordinate.
Definition: EKLMAlignmentAlongStripsAlgorithm.h:49
Belle2::EKLMAlignmentAlongStripsAlgorithm::Event::distFarEnd
float distFarEnd
Distance from hit to the far end of the strip.
Definition: EKLMAlignmentAlongStripsAlgorithm.h:52
Belle2::EKLMAlignmentAlongStripsAlgorithm::EKLMAlignmentAlongStripsAlgorithm
EKLMAlignmentAlongStripsAlgorithm()
Constructor.
Definition: EKLMAlignmentAlongStripsAlgorithm.cc:29
Belle2::EKLMAlignmentAlongStripsAlgorithm::Event::stripGlobal
int stripGlobal
Strip global number.
Definition: EKLMAlignmentAlongStripsAlgorithm.h:46