StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StEvent
StEtrHit.cxx
1
/***************************************************************************
2
*
3
* $Id: StEtrHit.cxx,v 2.2 2012/03/22 00:07:32 perev Exp $
4
*
5
* Author: Ming Shao, Jan 2012
6
***************************************************************************
7
*
8
* Description:
9
*
10
***************************************************************************
11
*
12
* $Log: StEtrHit.cxx,v $
13
* Revision 2.2 2012/03/22 00:07:32 perev
14
* Section added
15
*
16
* Revision 2.1 2012/01/24 03:06:12 perev
17
* Add Etr
18
*
19
*
20
* Revision 1.0 2012/01/05 Ming
21
* Initial Version
22
*
23
**************************************************************************/
24
#include "StEtrHit.h"
25
#include "StTrack.h"
26
static
StThreeVectorF
zero3V(0,0,9);
27
28
ClassImp(
StEtrHit
)
29
30
//______________________________________________________________________________
31
StEtrHit
::
StEtrHit
()
32
{
33
}
34
35
//______________________________________________________________________________
36
StEtrHit::StEtrHit(
const
StThreeVectorF
& p,
37
int
sector,
int
layer,
int
section,
float
charge)
38
// volume_id = section + 100*layer + 10000*sector
39
:
StHit
(p, zero3V, section+100*(layer+100*sector), charge, 0)
40
{}
41
42
//______________________________________________________________________________
43
StEtrHit::~StEtrHit() {
/* noop */
}
44
//______________________________________________________________________________
45
int
StEtrHit::section()
const
{
return
(hardwarePosition() )%100;}
46
//______________________________________________________________________________
47
int
StEtrHit::layer()
const
{
return
(hardwarePosition()/100 )%100;}
48
//______________________________________________________________________________
49
int
StEtrHit::sector()
const
{
return
(hardwarePosition()/10000)%100;}
50
51
52
StEtrHit
Definition:
StEtrHit.h:36
StHit
Definition:
StHit.h:125
StThreeVector< float >
Generated by
1.8.5