Analysis Software
Documentation for sPHENIX simulation software
 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 
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 
19 {
20  delete MbdPmtHits;
21 }
22 
24 {
25  if (npmt <= 0)
26  {
27  return 0;
28  }
29  return 1;
30 }
31 
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 }