Skip to content

Commit

Permalink
TTT10: reader
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhiteheadyork authored and jose-luis-rs committed Jan 4, 2024
1 parent 9d05d93 commit 494f869
Show file tree
Hide file tree
Showing 10 changed files with 699 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Syndikus, Ina
Taniuchi, Ryo
Tscheuschner, Joachim
Wang, Yanzhao
Whitehead, Matthew
Wongel, Alicia
Xarepe, Manuel
Zanetti, Lorenzo

2 changes: 2 additions & 0 deletions r3bdata/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ ${R3BROOT_SOURCE_DIR}/r3bdata/frsData
${R3BROOT_SOURCE_DIR}/r3bdata/rpcData
${R3BROOT_SOURCE_DIR}/r3bdata/mwpcData
${R3BROOT_SOURCE_DIR}/r3bdata/twimData
${R3BROOT_SOURCE_DIR}/r3bdata/ttt10Data
${R3BROOT_SOURCE_DIR}/r3bdata/musliData
${R3BROOT_SOURCE_DIR}/r3bdata/synccheckData
)
Expand Down Expand Up @@ -207,6 +208,7 @@ twimData/R3BTwimPoint.cxx
twimData/R3BTwimMappedData.cxx
twimData/R3BTwimCalData.cxx
twimData/R3BTwimHitData.cxx
ttt10Data/R3BTTTXMappedData.cxx
musliData/R3BMusliMappedData.cxx
musliData/R3BMusliCalData.cxx
musliData/R3BMusliHitData.cxx
Expand Down
2 changes: 2 additions & 0 deletions r3bdata/DataLinkDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
#pragma link C++ class R3BTwimHitData+;
#pragma link C++ class R3BTwimPoint+;

#pragma link C++ class R3BTTTXMappedData+;

#pragma link C++ class R3BMusliMappedData+;
#pragma link C++ class R3BMusliCalData+;
#pragma link C++ class R3BMusliHitData+;
Expand Down
44 changes: 44 additions & 0 deletions r3bdata/ttt10Data/R3BTTTXMappedData.cxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/******************************************************************************
* Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
* Copyright (C) 2019-2023 Members of R3B Collaboration *
* *
* This software is distributed under the terms of the *
* GNU General Public Licence (GPL) version 3, *
* copied verbatim in the file "LICENSE". *
* *
* In applying this license GSI does not waive the privileges and immunities *
* granted to it by virtue of its status as an Intergovernmental Organization *
* or submit itself to any jurisdiction. *
******************************************************************************/

// -------------------------------------------------------------------------
// ----- R3BTTTXMappedData source file -----
// -------------------------------------------------------------------------

#include "R3BTTTXMappedData.h"

// ----- Default constructor -------------------------------------------
R3BTTTXMappedData::R3BTTTXMappedData()
: fDetID(0)
, fStripID(0)
, fTime(0)
, fEnergy(0)
, fPileup(kFALSE)
, fOverflow(kFALSE)
{
}
// -------------------------------------------------------------------------

// ----- Standard constructor ------------------------------------------
R3BTTTXMappedData::R3BTTTXMappedData(UInt_t DetID, UInt_t StripID, Int_t time, Int_t energy, Bool_t pu, Bool_t ov)
: fDetID(DetID)
, fStripID(StripID)
, fTime(time)
, fEnergy(energy)
, fPileup(pu)
, fOverflow(ov)
{
}
// -------------------------------------------------------------------------

ClassImp(R3BTTTXMappedData);
69 changes: 69 additions & 0 deletions r3bdata/ttt10Data/R3BTTTXMappedData.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/******************************************************************************
* Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
* Copyright (C) 2019-2023 Members of R3B Collaboration *
* *
* This software is distributed under the terms of the *
* GNU General Public Licence (GPL) version 3, *
* copied verbatim in the file "LICENSE". *
* *
* In applying this license GSI does not waive the privileges and immunities *
* granted to it by virtue of its status as an Intergovernmental Organization *
* or submit itself to any jurisdiction. *
******************************************************************************/

// -------------------------------------------------------------------
// ----- R3BTTTXMappedData header file -----
// ----- Created 01/12/2023 by M. Whitehead -----
// -------------------------------------------------------------------

#ifndef R3BTTTXMappedData_H
#define R3BTTTXMappedData_H 1

#include "TObject.h"

class R3BTTTXMappedData : public TObject
{
public:
/** Default constructor **/
R3BTTTXMappedData();

/** Constructor with arguments
*@param DetID Detector ID
*@param StripID Strip ID attention 1-based !
*@param time Time [channels]
*@param energy Energy deposited on strip [channels]
**/
R3BTTTXMappedData(UInt_t DetID, UInt_t StripID, Int_t time, Int_t energy, Bool_t pu, Bool_t ov);

/** Destructor **/
virtual ~R3BTTTXMappedData() {}

/** Accessors **/
inline const UInt_t& GetDetID() const { return fDetID; }
inline const UInt_t& GetStripID() const { return fStripID; }
inline const Int_t& GetTime() const { return fTime; }
inline const Int_t& GetEnergy() const { return fEnergy; }
inline const Bool_t& GetPileupStatus() const { return fPileup; }
inline const Bool_t& GetOverflowStatus() const { return fOverflow; }

/** Modifiers **/
void SetDetID(UInt_t id) { fDetID = id; };
void SetStripID(UInt_t id) { fStripID = id; };
void SetTime(Int_t time) { fTime = time; };
void SetEnergy(Int_t energy) { fEnergy = energy; };
void SetPileup(Bool_t pu) { fPileup = pu; }
void SetOverflow(Bool_t ov) { fOverflow = ov; }

protected:
UInt_t fDetID;
UInt_t fStripID;
Int_t fTime;
Int_t fEnergy;
Bool_t fPileup;
Bool_t fOverflow;

public:
ClassDef(R3BTTTXMappedData, 1)
};

#endif
3 changes: 3 additions & 0 deletions r3bsource/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ ${R3BROOT_SOURCE_DIR}/r3bdata/rpcData
${R3BROOT_SOURCE_DIR}/r3bdata/trloiiData
${R3BROOT_SOURCE_DIR}/r3bdata/musicData
${R3BROOT_SOURCE_DIR}/r3bdata/twimData
${R3BROOT_SOURCE_DIR}/r3bdata/ttt10Data
${R3BROOT_SOURCE_DIR}/r3bdata/musliData
${R3BROOT_SOURCE_DIR}/r3bdata/mwpcData
${R3BROOT_SOURCE_DIR}/r3bdata/sampData
Expand Down Expand Up @@ -146,6 +147,7 @@ set(SRCS
./music/R3BMusicReader.cxx
./rpc/R3BRpcReader.cxx
./twim/R3BTwimReader.cxx
./ttt10/R3BTTTXReader.cxx
./musli/R3BMusliReader.cxx
./mwpc/R3BMwpcReader.cxx
./sync_check/R3BSyncCheckReader.cxx
Expand Down Expand Up @@ -209,6 +211,7 @@ Set(STRUCT_HEADERS
./alpide/ext_h101_alpide.h
./music/ext_h101_music.h
./twim/ext_h101_twim.h
./ttt10/ext_h101_ttt10.h
./musli/ext_h101_musli.h
./mwpc/ext_h101_mwpc.h
./trloii/ext_h101_samp.h
Expand Down
2 changes: 2 additions & 0 deletions r3bsource/SourceLinkDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
#pragma link C++ class R3BCalifaJulichReader+;
#pragma link C++ class R3BRpcReader+;
#pragma link C++ class R3BTwimReader+;
#pragma link C++ class R3BTTTXReader+;
#pragma link C++ class R3BMusliReader+;
#pragma link C++ class R3BMwpcReader+;
#pragma link C++ class R3BSyncCheckReader+;
Expand Down Expand Up @@ -134,6 +135,7 @@
#pragma link C++ class EXT_STR_h101_TIMESTAMP_PSPX_onion_t;
#pragma link C++ class EXT_STR_h101_MUSIC_onion_t;
#pragma link C++ class EXT_STR_h101_SOFTWIM_onion_t;
#pragma link C++ class EXT_STR_h101_TTTX_onion_t;
#pragma link C++ class EXT_STR_h101_SOFMWPC_onion_t;
#pragma link C++ class EXT_STR_h101_MUSLI_onion_t;
#pragma link C++ class EXT_STR_h101_SAMP_onion_t;
Expand Down
Loading

0 comments on commit 494f869

Please sign in to comment.