er  dev
ERDigi.h
1 /********************************************************************************
2  * Copyright (C) Joint Institute for Nuclear Research *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #ifndef ERDigi_H
9 #define ERDigi_H
10 
11 #include "TObject.h"
12 
13 #include "ERSupport.h"
14 
15 class ERDigi : public TObject {
16  public:
17  ERDigi() = default;
18  ERDigi(float edep, float time, ERChannel channel);
20  void Print() const;
21  /* Accessors */
22  float Edep() const {return fEdep;}
23  float Time() const {return fTime;}
24  ERChannel Channel() const {return fChannel;}
25  /* Modifiers */
26  void SetTime(const float time) {fTime = time;}
27  void SetEdep (const float edep) {fEdep = edep;}
28  void SetChannel (const int channel) {fChannel = channel;}
29  protected:
30  ERChannel fChannel = consts::undefined_channel;
31  float fTime = -1.;
32  float fEdep = -1.;
33  ClassDef(ERDigi,1)
34 };
35 
36 #endif
Definition: ERDigi.h:15
void Print() const
Definition: ERDigi.cxx:17