GRUTinizer
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
include
TGretina.h
Go to the documentation of this file.
1
#ifndef TGRETINA_H
2
#define TGRETINA_H
3
4
#include <TObject.h>
5
#include <TMath.h>
6
7
#include <TClonesArray.h>
8
9
#include "
TDetector.h
"
10
#include "
TGretinaHit.h
"
11
12
class
TGretina
:
public
TDetector
{
13
14
public
:
15
TGretina
();
16
~TGretina
();
17
18
virtual
void
Copy
(TObject& obj)
const
;
19
virtual
void
Print
(Option_t *opt =
""
)
const
;
20
virtual
void
Clear
(Option_t *opt =
""
);
21
22
virtual
void
InsertHit
(
const
TDetectorHit
& hit);
23
virtual
TDetectorHit
&
GetHit
(
const
int
&i) {
return
*(
TGretinaHit
*)
gretina_hits
->At(i); }
24
25
const
TGretinaHit
&
GetGretinaHit
(
int
i) {
return
*(
TGretinaHit
*)
gretina_hits
->At(i); }
26
//const TGretinaHit& GetAddbackHit(int i) { return *(TGretinaHit*)addback_hits->At(i); }
27
void
PrintHit
(
int
i){
gretina_hits
->At(i)->Print(); }
28
29
static
TVector3
CrystalToGlobal
(
int
cryId,
30
Float_t localX=0,Float_t localY=0,Float_t localZ=0);
31
32
private
:
33
virtual
int
BuildHits
();
34
//void BuildAddbackHits();
35
36
TClonesArray*
gretina_hits
;
//("TGretinaHit");
37
//TClonesArray* addback_hits;//("TGretinaHit");
38
39
static
Float_t
crmat
[32][4][4][4];
40
static
void
SetCRMAT
();
41
static
bool
fCRMATSet
;
42
43
ClassDef
(
TGretina
,3);
44
};
45
46
47
48
49
50
#endif
Generated on Wed Nov 4 2015 17:27:53 for GRUTinizer by
1.8.1.2