Project
Loading...
Searching...
No Matches
DumpRaw.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 <TH1.h>
13#include <TH2.h>
14#include "ZDCBase/Constants.h"
17
18#ifndef ALICEO2_ZDC_DUMPRAW_H_
19#define ALICEO2_ZDC_DUMPRAW_H_
20
21namespace o2
22{
23namespace zdc
24{
26{
27 public:
28 DumpRaw() = default;
29 void init();
30 int process(const EventData& ev);
31 int process(const EventChData& ch);
32 int processWord(const uint32_t* word);
33 int getHPos(uint32_t board, uint32_t ch);
34 void write();
35 void setVerbosity(int v)
36 {
37 mVerbosity = v;
38 }
39 int getVerbosity() const { return mVerbosity; }
40
41 private:
42 void setStat(TH1* h);
43 void setModuleLabel(TH1* h);
44 void setTriggerYLabel(TH2* h);
45 int mVerbosity = 1;
46 std::unique_ptr<TH2> mTransmitted = nullptr;
47 std::unique_ptr<TH2> mFired = nullptr;
48 std::unique_ptr<TH2> mBits = nullptr;
49 std::unique_ptr<TH2> mBitsH = nullptr;
50 std::unique_ptr<TH1> mLoss = nullptr;
51 std::unique_ptr<TH1> mError = nullptr;
52 std::unique_ptr<TH1> mOve = nullptr;
53 std::unique_ptr<TH1> mBaseline[NDigiChannels] = {nullptr};
54 std::unique_ptr<TH1> mCounts[NDigiChannels] = {nullptr};
55 std::unique_ptr<TH2> mSignalA[NDigiChannels] = {nullptr};
56 std::unique_ptr<TH2> mSignalT[NDigiChannels] = {nullptr};
57 std::unique_ptr<TH2> mSignalTH[NDigiChannels] = {nullptr};
58 std::unique_ptr<TH2> mBunchA[NDigiChannels] = {nullptr}; // Bunch pattern ALICE
59 std::unique_ptr<TH2> mBunchT[NDigiChannels] = {nullptr}; // Bunch pattern Autotrigger
60 std::unique_ptr<TH2> mBunchH[NDigiChannels] = {nullptr}; // Bunch pattern Hit
61 EventChData mCh;
62};
63} // namespace zdc
64} // namespace o2
65#endif
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
Container of ZDC raw data.
Class for time synchronization of RawReader instances.
DumpRaw()=default
int getHPos(uint32_t board, uint32_t ch)
Definition DumpRaw.cxx:226
int processWord(const uint32_t *word)
Definition DumpRaw.cxx:237
void setVerbosity(int v)
Definition DumpRaw.h:35
int getVerbosity() const
Definition DumpRaw.h:39
const GLdouble * v
Definition glcorearb.h:832
struct o2::upgrades_utils::@482 zdc
structure to keep FT0 information
constexpr int NDigiChannels
Definition Constants.h:71
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...