Belle II Software  release-05-02-19
ECLCrystalLocalRunCalib.h
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) (BINP) *
12  * *
13  * This software is provided "as is" without any warranty. *
14  **************************************************************************/
15 
16 #pragma once
17 
18 // ECL
19 #include <ecl/dbobjects/ECLCrystalCalib.h>
20 
21 namespace Belle2 {
31  class ECLCrystalLocalRunCalib: public Belle2::ECLCrystalCalib {
32  public:
38  explicit ECLCrystalLocalRunCalib(bool isNegAmpl = false);
48  void setNumberOfEvents(const int& numberOfEvents);
54  void setNumbersOfAcceptedEvents(const std::vector<int>&
55  numberOfAcceptedEvents);
59  int getNumberOfEvents() const;
65  void setExpRun(const int& exp, const int& run);
69  int getExp() const;
73  int getRun() const;
78  const std::vector<int>& getNumbersOfAcceptedEvents() const;
84  bool isNegAmpl() const;
85  private:
94  bool c_isNegAmpl;
98  int m_exp;
102  int m_run;
106  int m_numberOfEvents;
111  std::vector<int> m_numberOfAcceptedEvs;
112  ClassDef(ECLCrystalLocalRunCalib, 1);
113  };
115 }
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
Belle2::ECLCrystalLocalRunCalib
ECLCrystalLocalRunCalib is designed to store results of the ECL local run calibration to database.
Definition: ECLCrystalLocalRunCalib.h:44