Project
Loading...
Searching...
No Matches
Digitizer.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
14
15#ifndef ALICEO2_CTP_DIGITIZER_H
16#define ALICEO2_CTP_DIGITIZER_H
17
23#include <gsl/span>
24
25namespace o2
26{
27namespace ctp
28{
30{
31 public:
32 Digitizer() = default;
33 ~Digitizer() = default;
34 void setCCDBServer(const std::string& server) { mCCDBServer = server; }
35 std::vector<CTPDigit> process(const gsl::span<o2::ctp::CTPInputDigit> detinputs);
36 void calculateClassMask(const std::bitset<CTP_NINPUTS> ctpinpmask, std::bitset<CTP_NCLASSES>& classmask);
39 void init();
40
41 private:
42 // CTP configuration
43 std::string mCCDBServer = o2::base::NameConf::getCCDBServer();
44 CTPConfiguration* mCTPConfiguration = nullptr;
45 ClassDefNV(Digitizer, 2);
46};
47} // namespace ctp
48} // namespace o2
49#endif // ALICEO2_CTP_DIGITIZER_H
definition of CTPConfiguration and related CTP structures
definition of CTPDigit, CTPInputDigit
Definition of the Names Generator class.
static std::string getCCDBServer()
Definition NameConf.cxx:110
o2::ctp::CTPConfiguration * getDefaultCTPConfiguration()
void setCTPConfiguration(o2::ctp::CTPConfiguration *config)
~Digitizer()=default
void calculateClassMask(const std::bitset< CTP_NINPUTS > ctpinpmask, std::bitset< CTP_NCLASSES > &classmask)
void setCCDBServer(const std::string &server)
Definition Digitizer.h:34
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...