Project
Loading...
Searching...
No Matches
DigiRecoTest.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
12#include "ZDCBase/Constants.h"
17
18#ifndef ALICEO2_ZDC_DIGI_RECO_TEST_H
19#define ALICEO2_ZDC_DIGI_RECO_TEST_H
20namespace o2
21{
22namespace zdc
23{
25{
26 public:
27 DigiRecoTest() = default;
28 ~DigiRecoTest() = default;
29 void setCCDBServer(const std::string& s) { mCCDBServer = s; }
30 void setVerbosity(int v) { mVerbosity = v; }
31 int getVerbosity() const { return mVerbosity; }
32 void setDebugOutput(bool state = true) { mDR.setDebugOutput(state); }
33 void setAlpha(double v) { mDR.setAlpha(v); }
34 double getAlpha() { return mDR.getAlpha(); }
35 uint8_t getTriggerCondition() { return mDR.getTriggerCondition(); }
39 DigiReco* getDigiReco() { return &mDR; }
40 void init();
45 double add(int ic, float myAmp, const o2::InteractionRecord irpk, float myShift, bool hasJitter = true)
46 {
47 return mDigi.add(ic, myAmp, irpk, myShift, hasJitter);
48 }
49 // Digitization and reconstruction of cached data
50 void process()
51 {
52 mDigi.digitize();
53 mDR.process(mDigi.getZDCOrbitData(), mDigi.getZDCBCData(), mDigi.getZDCChannelData());
54 }
55 void clear()
56 {
57 mDigi.clear();
58 }
59 const std::vector<o2::zdc::RecEventAux>& getReco() { return mDR.getReco(); }
60 const DigitizerTest& getDigi() { return mDigi; }
61 const uint32_t* getTDCMask() const { return mDR.getTDCMask(); }
62 const uint32_t* getChMask() const { return mDR.getChMask(); }
63
64 private:
65 std::string mCCDBServer = "";
66 int32_t mVerbosity = DbgMinimal;
67 DigitizerTest mDigi;
68 DigiReco mDR;
69};
70} // namespace zdc
71} // namespace o2
72#endif
benchmark::State & state
Fast digitization of a signal of given amplitude and time in pre-allocated bunch containers....
uint8_t getTriggerCondition()
o2::zdc::Digitizer::BCCache & getCreateBCCache(const o2::InteractionRecord &ir)
const uint32_t * getChMask() const
const DigitizerTest & getDigi()
void setDebugOutput(bool state=true)
const uint32_t * getTDCMask() const
int getVerbosity() const
void setCCDBServer(const std::string &s)
void setVerbosity(int v)
void setAlpha(double v)
double add(int ic, float myAmp, const o2::InteractionRecord irpk, float myShift, bool hasJitter=true)
DigiReco * getDigiReco()
const std::vector< o2::zdc::RecEventAux > & getReco()
void setAlpha(double v)
Definition DigiReco.h:89
void setDebugOutput(bool state=true)
Definition DigiReco.h:79
uint8_t getTriggerCondition()
Definition DigiReco.h:84
double getAlpha()
Definition DigiReco.h:90
void setTripleTrigger()
Definition DigiReco.h:85
const uint32_t * getChMask() const
Definition DigiReco.h:142
const uint32_t * getTDCMask() const
Definition DigiReco.h:141
void setSingleTrigger()
Definition DigiReco.h:87
const std::vector< o2::zdc::RecEventAux > & getReco()
Definition DigiReco.h:143
void setDoubleTrigger()
Definition DigiReco.h:86
int process(const gsl::span< const o2::zdc::OrbitData > &orbitdata, const gsl::span< const o2::zdc::BCData > &bcdata, const gsl::span< const o2::zdc::ChannelData > &chdata)
Definition DigiReco.cxx:493
double add(int ic, float myAmp, const o2::InteractionRecord irpk, float myShift, bool hasJitter=true)
const std::vector< o2::zdc::OrbitData > & getZDCOrbitData() const
const std::vector< o2::zdc::ChannelData > & getZDCChannelData() const
o2::zdc::Digitizer::BCCache & getCreateBCCache(const o2::InteractionRecord &ir)
const std::vector< o2::zdc::BCData > & getZDCBCData() const
const GLdouble * v
Definition glcorearb.h:832
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
constexpr int DbgMinimal
Definition Constants.h:208
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
o2::InteractionRecord ir(0, 0)