Belle II Software development
ECLCrystalLocalRunCalib.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// ECL
12#include <ecl/dbobjects/ECLCrystalCalib.h>
13
14namespace Belle2 {
25 public:
31 explicit ECLCrystalLocalRunCalib(bool isNegAmpl = false);
41 void setNumberOfEvents(const int& numberOfEvents);
47 void setNumbersOfAcceptedEvents(const std::vector<int>&
48 numberOfAcceptedEvents);
52 int getNumberOfEvents() const;
58 void setExpRun(const int& exp, const int& run);
62 int getExp() const;
66 int getRun() const;
71 const std::vector<int>& getNumbersOfAcceptedEvents() const;
77 bool isNegAmpl() const;
78 private:
91 int m_exp;
95 int m_run;
104 std::vector<int> m_numberOfAcceptedEvs;
106 };
108}
General DB object to store one calibration number per ECL crystal.
ECLCrystalLocalRunCalib is designed to store results of the ECL local run calibration to database.
std::vector< int > m_numberOfAcceptedEvs
Numbers of accepted events for each cell id.
ClassDef(ECLCrystalLocalRunCalib, 1)
ClassDef.
const std::vector< int > & getNumbersOfAcceptedEvents() const
Get numbers of accepted events for each cell id.
void setNumberOfEvents(const int &numberOfEvents)
Set total number of events.
bool c_isNegAmpl
In the case of time payload c_isNegAmpl is always false.
int getNumberOfEvents() const
Get number of events.
void setExpRun(const int &exp, const int &run)
Set experiment number and run number.
int m_numberOfEvents
Total number of events.
int getExp() const
Get experiment number.
void setNumbersOfAcceptedEvents(const std::vector< int > &numberOfAcceptedEvents)
Set number of accepted events for each cell id.
bool isNegAmpl() const
In case if the amplitude payload: check is there are negative amplitudes.
Abstract base class for different kinds of events.