BmnRoot
Loading...
Searching...
No Matches
BmnTof1Digit.h
Go to the documentation of this file.
1//------------------------------------------------------------------------------------------------------------------------
2#ifndef __BMNTOF1DIGIT_H
3#define __BMNTOF1DIGIT_H 1
4
5#include "TObject.h"
6
7#include <iostream>
8//------------------------------------------------------------------------------------------------------------------------
9class BmnTof1Digit : public TObject
10{
11 Float_t fAmplitude;
12 Float_t fTime;
13 Short_t fPlane;
14 Short_t fStrip;
15 Short_t fSide;
16
17 public:
19 BmnTof1Digit(Short_t plane, Short_t strip, Short_t side, Float_t t, Float_t a);
20 BmnTof1Digit(const BmnTof1Digit*, Float_t t, Float_t a);
21 virtual ~BmnTof1Digit();
22
23 Short_t GetPlane() const { return fPlane; }
24 Short_t GetStrip() const { return fStrip; }
25 Short_t GetSide() const { return fSide; }
26 Float_t GetAmplitude() const { return fAmplitude; }
27 Float_t GetTime() const { return fTime; }
28
29 void print(const char* comment = nullptr, std::ostream& os = std::cout) const;
30
31 private:
32 void SetPlane(Short_t v) { fPlane = v; }
33 void SetStrip(Short_t v) { fStrip = v; }
34 void SetSide(Short_t v) { fSide = v; }
35 void SetAmplitude(Float_t v) { fAmplitude = v; }
36 void SetTime(Float_t v) { fTime = v; }
37
38 ClassDef(BmnTof1Digit, 3);
39};
40//------------------------------------------------------------------------------------------------------------------------
41#endif
__m128 v
Definition P4_F32vec4.h:1
virtual ~BmnTof1Digit()
Short_t GetPlane() const
Short_t GetSide() const
Short_t GetStrip() const
Float_t GetTime() const
Float_t GetAmplitude() const
void print(const char *comment=nullptr, std::ostream &os=std::cout) const