BmnRoot
Loading...
Searching...
No Matches
BmnTof1Digit.cxx
Go to the documentation of this file.
1#include "BmnTof1Digit.h"
2
4: fAmplitude(-1),
5 fTime(-1),
6 fPlane(-1),
7 fStrip(-1),
8 fSide(-1)
9{}
10
11BmnTof1Digit::BmnTof1Digit(Short_t plane, Short_t strip, Short_t side,Float_t t,Float_t a)
12: fAmplitude(a),
13 fTime(t),
14 fPlane(plane),
15 fStrip(strip),
16 fSide(side)
17{}
18
19BmnTof1Digit::BmnTof1Digit(const BmnTof1Digit *ptr, Float_t t, Float_t a)
20: fAmplitude(a),
21 fTime(t),
22 fPlane(ptr->fPlane),
23 fStrip(ptr->fStrip),
24 fSide(ptr->fSide)
25{}
26
29
30void BmnTof1Digit::print(const char* comment, std::ostream& os)const
31{
32 os<<" [BmnTof1Digit] "; if(nullptr != comment) os<<comment;
33 os<<" detID: "<<fPlane<<", stripID: "<<fStrip<<", stripSide: "<<fSide<<", time: "<<fTime<<", ampl.: "<<fAmplitude<<std::endl;
34}
virtual ~BmnTof1Digit()
void print(const char *comment=nullptr, std::ostream &os=std::cout) const