SND@LHC Software
Loading...
Searching...
No Matches
sndCluster.h
Go to the documentation of this file.
1#ifndef SNDCLUSTER_H
2#define SNDCLUSTER_H 1
3
4#include "TObject.h" //
5#include <stdlib.h>
6
7#include "Rtypes.h" // for Double_t, Int_t, Double32_t, etc
8#include "TVector3.h"
9#include "TArrayF.h"
10#include "sndScifiHit.h"
11#include "MuFilterHit.h"
12#include "Scifi.h"
13#include "MuFilter.h"
14
15#ifndef __CINT__
16#include <boost/serialization/access.hpp>
17#include <boost/serialization/base_object.hpp>
18#endif //__CINT__
19
23class sndCluster : public TObject
24{
25
26 public:
27
29 sndCluster();
30
31
33 sndCluster(Int_t first, Int_t N,std::vector<sndScifiHit*> hitlist,Scifi* ScifiDet,Bool_t withQDC=kFALSE);
34 sndCluster(Int_t first, Int_t N,std::vector<MuFilterHit*> hitlist,MuFilter* MuDet,Bool_t withQDC=kFALSE);
35
37 virtual ~sndCluster();
38
40 Int_t GetType() const { return fType; };
41 Int_t GetFirst() const { return fFirst; };
42 Int_t GetN() const { return fN; };
43 /*** Get total energy */
44 Double_t GetEnergy() const { return fEnergy; };
45 /*** Get time in ns, use fastest TDC of cluster*/
46 Double_t GetTime() const { return fTime; };
47 /*** Get position */
48 virtual void GetPosition(TVector3& L,TVector3& R) {
51 }
52
53 /*** Output to screen */
54 void Print() const;
55
56 template<class Archive>
57 void serialize(Archive& ar, const unsigned int version)
58 {
59 ar& boost::serialization::base_object<TObject>(*this);
60 ar& fFirst;
61 ar& fN;
62 ar& fEnergy;
65 }
66
67 protected:
68#ifndef __CINT__ // for BOOST serialization
70#endif // for BOOST serialization
71 Int_t fType;
72 Int_t fFirst;
73 Int_t fN;
74 TVector3 fMeanPositionA;
75 TVector3 fMeanPositionB;
76 Double_t fEnergy;
77 Double_t fTime;
79};
80
81#endif
Definition Scifi.h:20
Double_t fTime
total energy
Definition sndCluster.h:77
virtual ~sndCluster()
void Print() const
TVector3 fMeanPositionA
number of hits
Definition sndCluster.h:74
Double_t fEnergy
mean position
Definition sndCluster.h:76
Int_t fType
Definition sndCluster.h:71
Int_t fFirst
Scifi or MuFilter.
Definition sndCluster.h:72
Int_t GetFirst() const
Definition sndCluster.h:41
Int_t GetN() const
Definition sndCluster.h:42
virtual void GetPosition(TVector3 &L, TVector3 &R)
Definition sndCluster.h:48
ClassDef(sndCluster, 2)
Time from fastest hit TDC.
Double_t GetEnergy() const
Definition sndCluster.h:44
void serialize(Archive &ar, const unsigned int version)
Definition sndCluster.h:57
TVector3 fMeanPositionB
mean position
Definition sndCluster.h:75
Int_t GetType() const
Definition sndCluster.h:40
friend class boost::serialization::access
Definition sndCluster.h:69
Double_t GetTime() const
Definition sndCluster.h:46
Int_t fN
first hit channel ID of cluster
Definition sndCluster.h:73