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
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to process
Definition of the Names Generator class.
static std::string getCCDBServer()
Definition NameConf.cxx:123
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 ...