File indexing completed on 2025-08-06 08:17:52
0001 #include "MbdPmtSimContainerV1.h"
0002 #include "MbdPmtHitV1.h"
0003 #include "MbdReturnCodes.h"
0004
0005 #include <TClonesArray.h>
0006
0007 #include <iostream>
0008
0009 static const int NPMTMBDV1 = 128;
0010
0011 MbdPmtSimContainerV1::MbdPmtSimContainerV1()
0012 : MbdPmtHits(new TClonesArray("MbdPmtSimHitV1", NPMTMBDV1))
0013 {
0014
0015
0016
0017 }
0018
0019 MbdPmtSimContainerV1::~MbdPmtSimContainerV1()
0020 {
0021 delete MbdPmtHits;
0022 }
0023
0024 int MbdPmtSimContainerV1::isValid() const
0025 {
0026 if (npmt <= 0)
0027 {
0028 return 0;
0029 }
0030 return 1;
0031 }
0032
0033 void MbdPmtSimContainerV1::Reset()
0034 {
0035 MbdPmtHits->Clear();
0036 npmt = 0;
0037 }
0038
0039 void MbdPmtSimContainerV1::identify(std::ostream &out) const
0040 {
0041 out << "identify yourself: I am a MbdPmtSimContainerV1 object" << std::endl;
0042 }