Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
BbcPmtContainerV1.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file BbcPmtContainerV1.cc
1
#include "
BbcPmtContainerV1.h
"
2
#include "
BbcPmtHitV1.h
"
3
#include "
BbcReturnCodes.h
"
4
5
#include <TClonesArray.h>
6
7
#include <iostream>
8
9
static
const
int
NPMTBBCV1
= 128;
10
11
BbcPmtContainerV1::BbcPmtContainerV1
()
12
{
13
// BbcPmtHit is class for single hit (members: pmt,adc,tdc0,tdc1), do not mix
14
// with TClonesArray *BbcPmtHits
15
BbcPmtHits
=
new
TClonesArray(
"BbcPmtHitV1"
,
NPMTBBCV1
);
16
}
17
18
BbcPmtContainerV1::~BbcPmtContainerV1
()
19
{
20
delete
BbcPmtHits
;
21
}
22
23
int
BbcPmtContainerV1::isValid
()
const
24
{
25
if
(
npmt
<= 0)
26
{
27
return
0;
28
}
29
return
1;
30
}
31
32
void
BbcPmtContainerV1::Reset
()
33
{
34
BbcPmtHits
->Clear();
35
npmt
= 0;
36
}
37
38
void
BbcPmtContainerV1::identify
(std::ostream &
out
)
const
39
{
40
out <<
"identify yourself: I am a BbcPmtContainerV1 object"
<< std::endl;
41
}
coresoftware
blob
master
offline
packages
mbd
BbcPmtContainerV1.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:07
using
1.8.2 with
sPHENIX GitHub integration