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
MbdPmtContainerV1.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file MbdPmtContainerV1.cc
1
#include "
MbdPmtContainerV1.h
"
2
#include "
MbdPmtHitV1.h
"
3
#include "
MbdReturnCodes.h
"
4
5
#include <TClonesArray.h>
6
7
#include <iostream>
8
9
static
const
int
NPMTMBDV1
= 128;
10
11
MbdPmtContainerV1::MbdPmtContainerV1
()
12
{
13
// MbdPmtHit is class for single hit (members: pmt,adc,tdc0,tdc1), do not mix
14
// with TClonesArray *MbdPmtHits
15
MbdPmtHits
=
new
TClonesArray(
"MbdPmtHitV1"
,
NPMTMBDV1
);
16
}
17
18
MbdPmtContainerV1::~MbdPmtContainerV1
()
19
{
20
delete
MbdPmtHits
;
21
}
22
23
int
MbdPmtContainerV1::isValid
()
const
24
{
25
if
(
npmt
<= 0)
26
{
27
return
0;
28
}
29
return
1;
30
}
31
32
void
MbdPmtContainerV1::Reset
()
33
{
34
MbdPmtHits
->Clear();
35
npmt
= 0;
36
}
37
38
void
MbdPmtContainerV1::identify
(std::ostream &
out
)
const
39
{
40
out <<
"identify yourself: I am a MbdPmtContainerV1 object"
<< std::endl;
41
}
coresoftware
blob
master
offline
packages
mbd
MbdPmtContainerV1.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:07
using
1.8.2 with
sPHENIX GitHub integration