Project
Loading...
Searching...
No Matches
RecoParam.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11// or submit itself to any jurisdiction.
12#ifndef ALICEO2_EMCAL_RECOPARAM_H_
13#define ALICEO2_EMCAL_RECOPARAM_H_
14
15#include <iosfwd>
18#include "Rtypes.h"
19
20namespace o2
21{
22namespace emcal
23{
28{
29 public:
31 ~RecoParam() override = default;
32
35 double getCellTimeShiftNanoSec() const { return mCellTimeShiftNanoSec; }
36
39 double getNoiseThresholdLGnoHG() const { return mNoiseThresholdLGnoHG; }
40
43 int getPhaseBCmod4() const { return mPhaseBCmod4; }
44
50 int getMaxAllowedBunchLength() const { return mMaxBunchLength; }
51
54 void PrintStream(std::ostream& stream) const;
55
56 private:
57 double mNoiseThresholdLGnoHG = 10.;
58 double mCellTimeShiftNanoSec = 470.;
59 int mPhaseBCmod4 = 1;
60 unsigned int mMaxBunchLength = 15;
61
62 O2ParamDef(RecoParam, "EMCRecoParam");
63};
64
69std::ostream& operator<<(std::ostream& stream, const RecoParam& par);
70} // namespace emcal
71
72namespace framework
73{
74template <typename T>
75struct is_messageable;
76template <>
77struct is_messageable<o2::emcal::RecoParam> : std::true_type {
78};
79} // namespace framework
80
81} // namespace o2
82#endif
#define O2ParamDef(classname, key)
EMCal reconstruction parameters.
Definition RecoParam.h:28
double getNoiseThresholdLGnoHG() const
Get noise threshold for LGnoHG error.
Definition RecoParam.h:39
~RecoParam() override=default
Destructor.
int getPhaseBCmod4() const
Get the BC phase.
Definition RecoParam.h:43
double getCellTimeShiftNanoSec() const
Get the average cell time shift.
Definition RecoParam.h:35
void PrintStream(std::ostream &stream) const
Print current reconstruction parameters to stream.
Definition RecoParam.cxx:25
int getMaxAllowedBunchLength() const
Get the max. allowed bunch length.
Definition RecoParam.h:50
GLuint GLuint stream
Definition glcorearb.h:1806
std::ostream & operator<<(std::ostream &stream, const Cell &cell)
Stream operator for EMCAL cell.
Definition Cell.cxx:355
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...