PandaRoot
PndSdsApvHit.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // --------------------------------------------------------
14 // ---- PndSdsApvHit header file ---
15 // ---- Created 07.01.09 HGZ by Lars Ackermann ---
16 // ---- on the basic of the ana tool of dts ---
17 // --------------------------------------------------------
18 
23 #ifndef PNDSDSAPV_H
24 #define PNDSDSAPV_H
25 #include "TObject.h"
26 #include <iostream>
27 
29 
30 class PndSdsApvHit : public TObject {
31  public:
45  PndSdsApvHit(long int eventID, Int_t moduleID, Int_t fe, Int_t triggerID, Int_t timestamp, Int_t frame, Int_t channel, Double_t adc, Int_t length)
46  : fEventID(eventID), fModuleID(moduleID), fFeID(fe), fTriggerID(triggerID), fChannel(channel), fTimestamp(timestamp), fFrameID(frame), fADC(adc), fLength(length)
47  {
48  }
50 
56  Int_t GetChannel() const { return fChannel; }
57 
63  Int_t GetTimestamp() const { return fTimestamp; }
64 
69  Int_t GetFrameID() const { return fFrameID; }
70 
75  Double_t GetADC() const { return fADC; }
76 
81  Int_t GetLength() const { return fLength; }
82 
87  Int_t GetFeID() const { return fFeID; }
88 
94  void SetFeID(Int_t new_FE)
95  {
96  fFeID = new_FE;
97  return;
98  }
99 
104  long int GetEventID() const { return fEventID; }
105 
110  Int_t GetModuleID() const { return fModuleID; }
111 
116  Int_t GetTriggerID() const { return fTriggerID; }
117 
118  private:
119  long int fEventID;
120  Int_t fModuleID;
121  Int_t fFeID;
122  Int_t fTriggerID;
123  Int_t fChannel;
124  Int_t fTimestamp;
125  Int_t fFrameID;
126  Double_t fADC;
127  Int_t fLength;
128 
129  ClassDef(PndSdsApvHit, 1);
130 };
132 #endif
void SetFeID(Int_t new_FE)
Definition: PndSdsApvHit.h:94
Int_t GetFrameID() const
Definition: PndSdsApvHit.h:69
Int_t GetTimestamp() const
Definition: PndSdsApvHit.h:63
Double_t GetADC() const
Definition: PndSdsApvHit.h:75
Int_t GetChannel() const
Definition: PndSdsApvHit.h:56
Class to store data of Apv-Sensors.
Definition: PndSdsApvHit.h:30
Int_t GetTriggerID() const
Definition: PndSdsApvHit.h:116
ClassImp(PndSdsApvHit)
Int_t GetModuleID() const
Definition: PndSdsApvHit.h:110
long int GetEventID() const
Definition: PndSdsApvHit.h:104
Int_t GetFeID() const
Definition: PndSdsApvHit.h:87
Int_t GetLength() const
Definition: PndSdsApvHit.h:81
PndSdsApvHit(long int eventID, Int_t moduleID, Int_t fe, Int_t triggerID, Int_t timestamp, Int_t frame, Int_t channel, Double_t adc, Int_t length)
Definition: PndSdsApvHit.h:45