Belle II Software  release-05-02-19
ECLCrystalLocalRunCalib.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 - Belle II Collaboration *
4  * *
5  * ECLCrystalLocalRunCalib *
6  * *
7  * This class is designed to store ECL local run calibration *
8  * results to database (separately for amplitude and time). *
9  * *
10  * Author: The Belle II Collaboration *
11  * Contributors: Gribanov Sergei (S.S.Gribanov@inp.nsk.su) *
12  * *
13  * This software is provided "as is" without any warranty. *
14  **************************************************************************/
15 // ECL
16 #include <ecl/dbobjects/ECLCrystalLocalRunCalib.h>
17 using namespace Belle2;
18 // Constructor.
21  c_isNegAmpl(isNegAmpl),
22  m_exp(0), m_run(0),
23  m_numberOfEvents(0)
24 {
25 }
26 // Destructor.
28 {
29 }
30 // Set total number of events.
31 void ECLCrystalLocalRunCalib::setNumberOfEvents(const int& numberOfEvents)
32 {
33  m_numberOfEvents = numberOfEvents;
34 }
35 // Set numbers of accepted events for each cell id.
37  const std::vector<int>& numberOfAcceptedEvents)
38 {
39  m_numberOfAcceptedEvs = numberOfAcceptedEvents;
40 }
41 // Get total number of events.
43 {
44  return m_numberOfEvents;
45 }
46 // Get numbers of accepted events.
48 {
49  return m_numberOfAcceptedEvs;
50 }
51 // Set experiment and run numbers.
52 void
53 ECLCrystalLocalRunCalib::setExpRun(const int& exp, const int& run)
54 {
55  m_exp = exp;
56  m_run = run;
57 }
58 // Get experiment number.
60 {
61  return m_exp;
62 }
63 // Get run number.
65 {
66  return m_run;
67 }
68 // Check presence of negative amplitudes.
70 {
71  return c_isNegAmpl;
72 }
Belle2::ECLCrystalLocalRunCalib::m_numberOfEvents
int m_numberOfEvents
Total number of events.
Definition: ECLCrystalLocalRunCalib.h:119
Belle2::ECLCrystalLocalRunCalib::m_exp
int m_exp
Experiment number.
Definition: ECLCrystalLocalRunCalib.h:111
Belle2::ECLCrystalLocalRunCalib::setNumbersOfAcceptedEvents
void setNumbersOfAcceptedEvents(const std::vector< int > &numberOfAcceptedEvents)
Set number of accepted events for each cell id.
Definition: ECLCrystalLocalRunCalib.cc:36
Belle2::ECLCrystalLocalRunCalib::getNumbersOfAcceptedEvents
const std::vector< int > & getNumbersOfAcceptedEvents() const
Get numbers of accepted events for each cell id.
Definition: ECLCrystalLocalRunCalib.cc:47
Belle2::ECLCrystalLocalRunCalib::isNegAmpl
bool isNegAmpl() const
In case if the amplitude payload: check is there are negative amplitudes.
Definition: ECLCrystalLocalRunCalib.cc:69
Belle2::ECLCrystalLocalRunCalib::setExpRun
void setExpRun(const int &exp, const int &run)
Set experiment number and run number.
Definition: ECLCrystalLocalRunCalib.cc:53
Belle2::ECLCrystalLocalRunCalib::setNumberOfEvents
void setNumberOfEvents(const int &numberOfEvents)
Set total number of events.
Definition: ECLCrystalLocalRunCalib.cc:31
Belle2::ECLCrystalLocalRunCalib::getExp
int getExp() const
Get experiment number.
Definition: ECLCrystalLocalRunCalib.cc:59
Belle2::ECLCrystalCalib
General DB object to store one calibration number per ECL crystal.
Definition: ECLCrystalCalib.h:34
Belle2::ECLCrystalLocalRunCalib::ECLCrystalLocalRunCalib
ECLCrystalLocalRunCalib(bool isNegAmpl=false)
Constructor.
Definition: ECLCrystalLocalRunCalib.cc:19
Belle2::ECLCrystalLocalRunCalib::c_isNegAmpl
bool c_isNegAmpl
In the case of time payload c_isNegAmpl is always false.
Definition: ECLCrystalLocalRunCalib.h:107
Belle2::ECLCrystalLocalRunCalib::m_run
int m_run
Run number.
Definition: ECLCrystalLocalRunCalib.h:115
Belle2::ECLCrystalLocalRunCalib::m_numberOfAcceptedEvs
std::vector< int > m_numberOfAcceptedEvs
Numbers of accepted events for each cell id.
Definition: ECLCrystalLocalRunCalib.h:124
Belle2::ECLCrystalLocalRunCalib::getNumberOfEvents
int getNumberOfEvents() const
Get number of events.
Definition: ECLCrystalLocalRunCalib.cc:42
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ECLCrystalLocalRunCalib::getRun
int getRun() const
Get run number.
Definition: ECLCrystalLocalRunCalib.cc:64
Belle2::ECLCrystalLocalRunCalib::~ECLCrystalLocalRunCalib
~ECLCrystalLocalRunCalib()
Destructor.
Definition: ECLCrystalLocalRunCalib.cc:27