R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandTamexReader.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2019-2025 Members of R3B Collaboration *
4 * *
5 * This software is distributed under the terms of the *
6 * GNU General Public Licence (GPL) version 3, *
7 * copied verbatim in the file "LICENSE". *
8 * *
9 * In applying this license GSI does not waive the privileges and immunities *
10 * granted to it by virtue of its status as an Intergovernmental Organization *
11 * or submit itself to any jurisdiction. *
12 ******************************************************************************/
13
14#pragma once
15
16#include "R3BReader.h"
17#include <Rtypes.h>
18
19class TClonesArray;
20
24class ext_data_struct_info;
25
27{
28 public:
29 // Standard constructor
31
32 // Destructor
33 virtual ~R3BNeulandTamexReader() override;
34
35 // Setup structure information
36 auto Init(ext_data_struct_info* /*unused*/) -> Bool_t override;
37
38 // Read data from full event structure
39 auto R3BRead() -> Bool_t override;
40
41 // Reset
42 void Reset() override;
43
44 // Accessor to select online mode
45 inline void SetOnline(Bool_t option) { fOnline = option; }
46
47 // Set the maximum number of planes
48 inline void SetMaxNbPlanes(UInt_t max) { fNofPlanes = max; }
49
50 // Accessor to skip trigger times
51 inline void SetSkipTriggerTimes() { fSkiptriggertimes = kTRUE; }
52
53 private:
54 EXT_STR_h101_raw_nnp_tamex_onion* fData; // Reader specific data structure from ucesb
55 size_t fOffset; // Data offset
56 TClonesArray* fArray = nullptr; // Output array
57 TClonesArray* fArrayTrigger = nullptr; // Output array, cards' trigger
58 UInt_t fNofPlanes; // Number of planes
59 Bool_t fOnline; // Don't store data for online
60 Bool_t fSkiptriggertimes; // Skip trigger times
61
62 public:
64};
R3BNeulandTamexReader(EXT_STR_h101_raw_nnp_tamex_onion *, size_t)
ext_h101_raw_nnp_tamex.h was created by running $unpacker –ntuple=STRUCT_HH,RAW:NN,...
auto R3BRead() -> Bool_t override
auto Init(ext_data_struct_info *) -> Bool_t override
virtual ~R3BNeulandTamexReader() override
ClassDefOverride(R3BNeulandTamexReader, 0)
void SetOnline(Bool_t option)
void SetMaxNbPlanes(UInt_t max)
R3BReader(TString const &)
Definition R3BReader.cxx:16
struct EXT_STR_h101_raw_nnp_tamex_onion_t EXT_STR_h101_raw_nnp_tamex_onion
struct EXT_STR_h101_raw_nnp_tamex_t EXT_STR_h101_raw_nnp_tamex