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
StTriggerUtilities
Eemc
EEdsm0Tree.h
1
// -*- mode:c++ -*-
2
3
#ifndef EEdsm0Tree_h
4
#define EEdsm0Tree_h
5
/**************************************************************
6
* $Id: EEdsm0Tree.h,v 1.2 2009/11/18 15:50:59 pibero Exp $
7
* Emulates functionality of Endcap DSM0-tree
8
**************************************************************/
9
#include <stdlib.h>
10
#include <stdio.h>
11
#include <string.h>
12
class
EEdsm0
;
13
14
class
EEdsm0Tree
{
// DSM0 tree emulators
15
16
public
:
17
enum
{ Nee0=9,Nee0out=12, mxTxt=16};
18
19
private
:
20
EEdsm0
*ee0;
// Level-0 boards
21
int
ee0outTPsum[Nee0out];
// Level-0 emulated output
22
int
ee0outTP2bit[Nee0out];
// Level-0 emulated output
23
int
ee0outHT2bit[Nee0out];
// Level-0 emulated output
24
int
ee0outHTTP2bit[Nee0out];
// Level-0 emulated output
25
int
ee0out16bit[Nee0out];
// Level-0 emulated output
26
char
name[mxTxt];
27
28
29
public
:
30
31
EEdsm0Tree
(
const
char
*);
32
~
EEdsm0Tree
();
33
void
setYear(
int
y,
int
*HTth,
int
*TPth);
34
void
print(
int
k=0)
const
;
35
void
clear();
36
//... input
37
void
setInp12bit(
int
HankCh,
short
val);
// HT+TPsum from one FEE TP
38
int
getInp12bit(
int
HankCh)
const
;
// HT+TPsum from one FEE TP
39
int
getInpHT6bit(
int
HankCh)
const
{
return
getInp12bit(HankCh) & 0x3f; }
40
int
getInpTP6bit(
int
HankCh)
const
{
return
getInp12bit(HankCh) >>6; }
41
void
compute();
42
43
//... output
44
int
getOutTPsum(
int
ch
/*0...11*/
)
const
{
return
ee0outTPsum[ch];}
// halfPatches, for both DSM1 boards
45
int
getOutHT2bit(
int
ch
/*0...11*/
)
const
{
return
ee0outHT2bit[ch];}
// halfPatches, for both DSM1 boards
46
int
getOutTP2bit(
int
ch
/*0...11*/
)
const
{
return
ee0outTP2bit[ch];}
// halfPatches, for both DSM1 boards
47
int
getOutHTTP2bit(
int
ch
/*0...11*/
)
const
{
return
ee0outHTTP2bit[ch];}
// halfPatches, for both DSM1 boards
48
int
getOut16bit(
int
ch
/*0...11*/
)
const
{
return
ee0out16bit[ch];}
// halfPatches, for both DSM1 boards
49
50
};
51
52
#endif
53
54
/*
55
* $Log: EEdsm0Tree.h,v $
56
* Revision 1.2 2009/11/18 15:50:59 pibero
57
* Address several compiler warnings of the type:
58
*
59
* warning: deprecated conversion from string constant 'char*'
60
*
61
* Revision 1.1 2009/10/12 18:04:25 pibero
62
* Moved StEEmcUtil/EEdsm to StTriggerUtilities/Eemc
63
*
64
* Revision 1.2 2009/02/24 03:56:18 ogrebeny
65
* Corrected const-ness
66
*
67
* Revision 1.1 2007/08/17 01:15:36 balewski
68
* full blown Endcap trigger simu, by Xin
69
*
70
*
71
**************************************************************/
72
73
EEdsm0Tree
Definition:
EEdsm0Tree.h:14
EEdsm0
Definition:
EEdsm0.h:10
Generated by
1.8.5