PandaRoot
PndMvdApvHit.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 // ---- PndMvdApvHit 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 PNDMVDAPV_H
24 #define PNDMVDAPV_H
25 #include "TObject.h"
26 #include <iostream>
27 
29 
30 class PndMvdApvHit : public TObject {
31  public:
32  PndMvdApvHit() : fEventID(-1), fModuleID(-1), fFeID(-1), fTriggerID(-1.), fChannel(-1), fTimestamp(-1.), fFrameID(-1), fADC(-1.), fLength(0) {}
45  PndMvdApvHit(long int eventID, Int_t moduleID, Int_t fe, Double_t triggerID, Double_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  Double_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  Double_t GetTriggerID() const { return fTriggerID; }
117 
118  private:
119  long int fEventID;
120  Int_t fModuleID;
121  Int_t fFeID;
122  Double_t fTriggerID;
123  Int_t fChannel;
124  Double_t fTimestamp;
125  Int_t fFrameID;
126  Double_t fADC;
127  Int_t fLength;
128 
129  ClassDef(PndMvdApvHit, 1);
130 };
132 #endif
Int_t GetFrameID() const
Definition: PndMvdApvHit.h:69
Int_t GetModuleID() const
Definition: PndMvdApvHit.h:110
long int GetEventID() const
Definition: PndMvdApvHit.h:104
Double_t GetTriggerID() const
Definition: PndMvdApvHit.h:116
ClassImp(PndMvdApvHit)
Int_t GetLength() const
Definition: PndMvdApvHit.h:81
Double_t GetTimestamp() const
Definition: PndMvdApvHit.h:63
Double_t GetADC() const
Definition: PndMvdApvHit.h:75
Int_t GetChannel() const
Definition: PndMvdApvHit.h:56
Class to store data of Apv-Sensors.
Definition: PndMvdApvHit.h:30
void SetFeID(Int_t new_FE)
Definition: PndMvdApvHit.h:94
PndMvdApvHit(long int eventID, Int_t moduleID, Int_t fe, Double_t triggerID, Double_t timestamp, Int_t frame, Int_t channel, Double_t adc, Int_t length)
Definition: PndMvdApvHit.h:45
Int_t GetFeID() const
Definition: PndMvdApvHit.h:87