File indexing completed on 2025-08-06 08:17:50
0001 #ifndef __BBCPMTINFOCONTAINERV1_H__
0002 #define __BBCPMTINFOCONTAINERV1_H__
0003
0004 #include "BbcPmtInfoV1.h"
0005
0006 #include <calobase/TowerInfoContainer.h>
0007
0008 #include <phool/PHObject.h>
0009
0010 #include <TClonesArray.h>
0011
0012 class BbcPmtInfoContainerV1 : public TowerInfoContainer
0013 {
0014 public:
0015
0016 BbcPmtInfoContainerV1();
0017
0018 ~BbcPmtInfoContainerV1() override;
0019
0020 void Reset() override;
0021
0022 BbcPmtInfoV1 *get_tower_at_channel(int pos) override;
0023
0024 BbcPmtInfoV1 *get_pmt(int ich) { return (BbcPmtInfoV1*) _clones->ConstructedAt(ich); }
0025 TClonesArray *getarray() const { return _clones; }
0026
0027 size_t size() const override { return _clones->GetEntries(); }
0028
0029
0030
0031 protected:
0032 TClonesArray *_clones = nullptr;
0033 DETECTOR _detector = DETECTOR_INVALID;
0034
0035 private:
0036 ClassDefOverride(BbcPmtInfoContainerV1, 1);
0037 };
0038
0039 #endif