er  dev
ERNeuRadDigi.cxx
1 // -------------------------------------------------------------------------
2 // ----- ERNeuRadDigi source file -----
3 // ----- Created 11/12/15 by V.Schetinin -----
4 // -------------------------------------------------------------------------
5 
6 #include "ERNeuRadDigi.h"
7 
8 #include <iostream>
9 
10 // ----- Default constructor -------------------------------------------
12  :fID(-1),
13  fFrontTDC(0.),
14  fBackTDC(0.),
15  fTDC(0.),
16  fQDC(0.),
17  fModuleIndex(-1),
18  fFiberIndex(-1),
19  fSide(-1)
20 {
21 }
22 
24  Double_t frontTDC,
25  Double_t backTDC,
26  Double_t tdc,
27  Double_t qdc,
28  Int_t bundle,
29  Int_t fiber,
30  Int_t side)
31  :fID(id),
32  fFrontTDC(frontTDC),
33  fBackTDC(backTDC),
34  fTDC(tdc),
35  fQDC(qdc),
36  fModuleIndex(bundle),
37  fFiberIndex(fiber),
38  fSide(side)
39 {
40 }
41 
43  :fID(right.fID),
44  fFrontTDC(right.fFrontTDC),
45  fBackTDC(right.fBackTDC),
46  fTDC(right.fTDC),
47  fQDC(right.fQDC),
48  fModuleIndex(right.fModuleIndex),
49  fFiberIndex(right.fFiberIndex),
50  fSide(right.fSide)
51 {
52 }
53 
54 // ----- Destructor ----------------------------------------------------
56 {
57 }
58 
59 // ----- Public method Print -------------------------------------------
60 void ERNeuRadDigi::Print(const Option_t* opt /* = 0 */) const
61 {
62  std::cout << "-I- ERNeuRadDigi: " << std::endl;
63  std::cout << " Fiber : " << fFiberIndex << std::endl;
64  std::cout << " Module : " << fModuleIndex << std::endl;
65  std::cout << " FrontTDC: " << fFrontTDC << " BackTDC " << fBackTDC << " TDC " << fTDC << std::endl;
66  std::cout << " QDC: " << fQDC << std::endl;
67 }
68 // -------------------------------------------------------------------------
69 
70 ClassImp(ERNeuRadDigi)
virtual ~ERNeuRadDigi()
virtual void Print(const Option_t *opt=0) const