R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BPaddleTamexMappedData.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#ifndef R3BPADDLETAMEXMAPPEDITEM_H
15#define R3BPADDLETAMEXMAPPEDITEM_H
16
17#include "TObject.h"
18
19class R3BPaddleTamexMappedData : public TObject
20{
21 public:
23 R3BPaddleTamexMappedData(Int_t planeId, Int_t barId);
24
25 // Getters
26 inline const Int_t& GetPlaneId() const { return fPlane; }
27 inline const Int_t& GetBarId() const { return fBar; }
28 inline const Int_t& GetSideId() const { return fSide; }
29 inline const Int_t& GetEdgeId() const { return fEdge; }
30
31 inline const Int_t& GetCoarseTime1LE() const { return fCoarseTime1LE; }
32 inline const Int_t& GetFineTime1LE() const { return fFineTime1LE; }
33 inline const Int_t& GetCoarseTime1TE() const { return fCoarseTime1TE; }
34 inline const Int_t& GetFineTime1TE() const { return fFineTime1TE; }
35
36 inline const Int_t& GetCoarseTime2LE() const { return fCoarseTime2LE; }
37 inline const Int_t& GetFineTime2LE() const { return fFineTime2LE; }
38 inline const Int_t& GetCoarseTime2TE() const { return fCoarseTime2TE; }
39 inline const Int_t& GetFineTime2TE() const { return fFineTime2TE; }
40
41 inline const Int_t& GetFineTime(int t, int e) const
42 {
43 return t ? (e ? fFineTime2TE : fFineTime2LE) : (e ? fFineTime1TE : fFineTime1LE);
44 }
45
46 inline const Int_t& GetCoarseTime(int t, int e) const
47 {
49 }
50
51 // To be compatible with Tacquila data:
52 inline Bool_t Is17() const { return false; }
53
54 public:
55 Int_t fSide; //... number of side 1/2
56 Int_t fEdge; //... number of edge 1/2
57
58 protected:
59 Int_t fPlane; //... number of plane 1..n
60 Int_t fBar; //... number of bar 1..n
61
62 public:
63 // PM1:
64 Int_t fCoarseTime1LE; //... coarse time of leading edge
65 Int_t fFineTime1LE; //... fine time of leading edge
66 Int_t fCoarseTime1TE; //... coarse time of trailing edge
67 Int_t fFineTime1TE; //... fine time of trailing edge
68 // PM2:
69 Int_t fCoarseTime2LE; //... coarse time of leading edge
70 Int_t fFineTime2LE; //... fine time of leading edge
71 Int_t fCoarseTime2TE; //... coarse time of trailing edge
72 Int_t fFineTime2TE; //... fine time of trailing edge
73
74 public:
75 ClassDef(R3BPaddleTamexMappedData, 1)
76};
77
78#endif
const Int_t & GetFineTime2LE() const
const Int_t & GetFineTime(int t, int e) const
const Int_t & GetCoarseTime2TE() const
const Int_t & GetFineTime1LE() const
const Int_t & GetFineTime2TE() const
const Int_t & GetFineTime1TE() const
const Int_t & GetCoarseTime(int t, int e) const
const Int_t & GetCoarseTime2LE() const
const Int_t & GetCoarseTime1LE() const
const Int_t & GetCoarseTime1TE() const