er  dev
ERSensPlane.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 
9 // -------------------------------------------------------------------------
10 // ----- SensPlane detector header file -----
11 // -------------------------------------------------------------------------
12 
13 #ifndef ERSENSPLANE_H
14 #define ERSENSPLANE_H
15 
16 #include "FairDetector.h"
17 
18 #include "TVector3.h"
19 
20 class TClonesArray;
21 class ERSensPlanePoint;
22 class TGeoCombiTrans;
23 
24 class ERSensPlane : public FairDetector
25 {
26 public:
27 
29  ERSensPlane();
30 
32  ERSensPlane(const char* name="SENSPLANE", Bool_t active=kTRUE);
33 
35  virtual ~ERSensPlane();
36 
37  void SetDetectorPosition(Double_t x, Double_t y, Double_t z);
38 
39  virtual Bool_t ProcessHits(FairVolume* vol = 0);
40 
41  virtual void BeginEvent();
42 
43  virtual void EndOfEvent();
44 
45  virtual void Register();
46 
47  virtual TClonesArray* GetCollection(Int_t iColl) const;
48 
49  virtual void Print(Option_t *option="") const;
50 
51  virtual void Reset();
52 
53  virtual void CopyClones(TClonesArray* cl1, TClonesArray* cl2, Int_t offset);
54 
55  virtual void ConstructGeometry();
56 
57  virtual void Initialize();
58 
59  virtual Bool_t CheckIfSensitive(std::string name);
60 
61 private:
62 
63  TClonesArray* fPoints;
64  ERSensPlanePoint* AddPoint(Int_t eventID,
65  Int_t trackID,
66  Int_t mot0trackID,
67  Double_t mass,
68  TVector3 posIn,
69  TVector3 pos_out,
70  TVector3 momIn,
71  TVector3 momOut,
72  Double_t time,
73  Double_t length,
74  Double_t eLoss);
75 
76  TGeoCombiTrans* fPositionRotation;
77 
78  ClassDef(ERSensPlane, 1);
79 };
80 
81 #endif // ERSENSPLANE_H
virtual Bool_t ProcessHits(FairVolume *vol=0)
Definition: ERSensPlane.cxx:77
virtual ~ERSensPlane()
Definition: ERSensPlane.cxx:48