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
StMuDSTMaker
EZTREE
EztFpdBlob.cxx
1
/*********************************************************************
2
* $Id: EztFpdBlob.cxx,v 1.1 2004/11/29 15:55:55 mvl Exp $
3
*********************************************************************
4
* container for FPD raw data
5
*/
6
7
#include <TArrayS.h>
8
#include <TObjArray.h>
9
10
#include "EztFpdBlob.h"
11
ClassImp(
EztFpdBlob
)
12
13
14
//--------------------------------------------------
15
//
16
//--------------------------------------------------
17
EztFpdBlob
::
EztFpdBlob
() {
18
smd=
new
TArrayS ;
19
clear();
20
}
21
22
//--------------------------------------------------
23
//
24
//--------------------------------------------------
25
EztFpdBlob :: ~EztFpdBlob() {
26
delete
smd;
27
}
28
29
30
//--------------------------------------------------
31
//
32
//--------------------------------------------------
33
void
EztFpdBlob :: clear() {
34
smd->Reset();
35
}
36
37
38
//--------------------------------------------------
39
//--------------------------------------------------
40
void
EztFpdBlob :: print(
int
k, FILE *fd)
const
{
41
fprintf(fd,
"EztFpdBlob:: print() "
);
42
fprintf(fd,
" EztFpd size of bank smd=%d\n"
,smd->GetSize());
43
if
(k<=0)
return
;
44
unsigned
short
*d=(
unsigned
short
*)smd->GetArray();
45
printf(
" decymal dump of FPD smd:"
);
46
int
i;
47
for
(i=0;i<smd->GetSize();i++) {
48
if
((i%8)==0) printf(
" "
);
49
if
((i%24)==0) printf(
"\n"
);
50
printf(
"%4d "
,d[i]);
51
}
52
printf(
"\n"
);
53
}
54
55
EztFpdBlob
Definition:
EztFpdBlob.h:12
Generated by
1.8.5