Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BbcPmtContainerV1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file BbcPmtContainerV1.h
1 #ifndef __BBC_BBCPMTCONTAINERV1_H__
2 #define __BBC_BBCPMTCONTAINERV1_H__
3 
4 #include "BbcPmtContainer.h"
5 
6 #include <iostream>
7 
8 #include <TClonesArray.h>
9 
12 {
13 public:
16 
18  virtual ~BbcPmtContainerV1();
19 
21  void Reset() override;
22 
26  void identify(std::ostream &os = std::cout) const override;
27 
29  int isValid() const override;
30 
34  void set_npmt(const Short_t ival) override
35  {
36  npmt = ival;
37  return;
38  }
39 
41  Short_t get_npmt() const override { return npmt; }
42 
46  BbcPmtHit *get_pmt(const int iPmt) const override { return (BbcPmtHit*)BbcPmtHits->ConstructedAt(iPmt); }
47 
48 private:
49  TClonesArray *GetBbcPmtHits() const { return BbcPmtHits; }
50 
51  Short_t npmt = 0;
52  TClonesArray *BbcPmtHits = nullptr;
53 
54  ClassDefOverride(BbcPmtContainerV1, 1)
55 };
56 
57 #endif