R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandCalData.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 "TObject.h"
17#include <Rtypes.h>
18#include <RtypesCore.h>
19#include <iostream>
20
21class R3BNeulandCalData : public TObject
22{
23 public:
24 R3BNeulandCalData() = default;
25 R3BNeulandCalData(int barId, int side, double time, double triggertime, double qdc);
26
27 [[nodiscard]] auto GetBarId() const -> int { return fBarId; }
28 [[nodiscard]] auto GetSide() const -> int { return fSide; }
29 [[nodiscard]] auto GetTime() const -> double { return fTime; }
30 [[nodiscard]] auto GetTriggerTime() const -> double { return fTriggerTime; }
31 [[nodiscard]] auto GetQdc() const -> double { return fQdc; }
32
33 void Print(const Option_t* /*option*/) const override;
34
35 private:
36 int fBarId = 0;
37 int fSide = 0;
38 double fTime = 0.;
39 double fTriggerTime = 0.;
40 double fQdc = 0.;
41
42 ClassDefOverride(R3BNeulandCalData, 2)
43};
44
45auto operator<<(std::ostream&, const R3BNeulandCalData&) -> std::ostream&; // Support easy printing
auto operator<<(std::ostream &, const R3BNeulandCalData &) -> std::ostream &
R3BNeulandCalData()=default
auto GetTriggerTime() const -> double
auto GetSide() const -> int
void Print(const Option_t *) const override
auto GetBarId() const -> int
auto GetTime() const -> double
auto GetQdc() const -> double
R3BNeulandCalData(int barId, int side, double time, double triggertime, double qdc)