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
StSvtClassLibrary
StSvtHybridPixelsD.hh
1
/***************************************************************************
2
*
3
* $Id: StSvtHybridPixelsD.hh,v 1.2 2005/07/23 03:37:33 perev Exp $
4
*
5
* Author: Petr Chaloupka
6
***************************************************************************
7
*
8
* Description: SVT Hybrid Array of Pixels with double precision
9
*
10
***************************************************************************/
11
12
13
#ifndef STSVTHYBRIDPIXELSD_HH
14
#define STSVTHYBRIDPIXELSD_HH
15
16
#include "TArrayD.h"
17
#include "TArrayI.h"
18
#include "StMCTruth.h"
19
#include "StSvtHybridObject.hh"
20
class
StSvtHybridPixelsD
:
public
StSvtHybridObject
,
public
TArrayD
21
{
22
public
:
23
StSvtHybridPixelsD
();
24
StSvtHybridPixelsD
(
int
barrel,
int
ladder,
int
wafer,
int
hybrid,
int
size = 0,
double
* x = 0);
25
virtual
~
StSvtHybridPixelsD
();
26
27
StSvtHybridPixelsD
& operator = (
StSvtHybridPixelsD
&);
28
StSvtHybridPixelsD
& operator + (
StSvtHybridPixelsD
&);
29
30
double
getPixelContent(
int
anode,
int
time);
31
void
addToPixel(
int
anode,
int
time,
double
x,
int
trackId);
32
void
addToPixel(
int
index,
double
x,
int
trackId);
33
34
int
getNumberOfAnodes() {
return
mNumberOfAnodes;}
35
int
getNumberOfTimeBins() {
return
mNumberOfTimeBins;}
36
int
getTotalNumberOfPixels() {
return
mTotalNumberOfPixels;}
37
int
getPixelIndex(
int
anode,
int
time);
38
39
StMCTruth
getTrackId(
int
index);
40
41
void
setPedOffset(
int
offset) {mPedOffset = offset;}
42
int
getPedOffset() {
return
mPedOffset;}
43
44
void
reset();
45
void
updateTruth();
46
protected
:
47
TArrayI mTrackId;
48
int
mNumberOfAnodes;
// Number of Anodes in one hybrid (= 240)
49
int
mNumberOfTimeBins;
// Number of Time Bins in one hybrid (= 128)
50
51
int
mTotalNumberOfPixels;
// Total Number of Pixels (= 240*128)
52
53
int
mPedOffset;
54
55
StMCPivotTruthMap
*mTruthTmp;
56
57
ClassDef(
StSvtHybridPixelsD
,1)
58
};
59
60
#endif
StMCPivotTruthMap
Definition:
StMCTruth.h:65
StSvtHybridObject
Definition:
StSvtHybridObject.hh:27
StMCTruth
Definition:
StMCTruth.h:32
StSvtHybridPixelsD
Definition:
StSvtHybridPixelsD.hh:20
Generated by
1.8.5