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