File indexing completed on 2025-08-06 08:12:31
0001 #ifndef __INTTEVENT_H__
0002 #define __INTTEVENT_H__
0003
0004
0005
0006 #include "TClonesArray.h"
0007
0008
0009 class InttHit : public TObject {
0010 public:
0011 InttHit();
0012 virtual ~InttHit(){};
0013
0014
0015 void copy(InttHit& hit);
0016 void show(bool explanation_flag=false);
0017
0018 virtual Bool_t IsEqual(const TObject *obj) const;
0019 virtual Bool_t IsSortable() const;
0020 virtual Int_t Compare(const TObject* obj) const;
0021
0022 public:
0023 int pid;
0024
0025 int adc;
0026 int ampl;
0027 int chip_id;
0028
0029 int module;
0030
0031 int chan_id;
0032
0033
0034 int bco;
0035 Long64_t bco_full;
0036
0037 int evt;
0038
0039 int roc;
0040 int barrel;
0041 int layer;
0042 int ladder;
0043 int arm;
0044
0045 int full_fphx;
0046 int full_roc;
0047
0048
0049 ClassDef(InttHit, 1)
0050 };
0051
0052 class InttEvent : public TObject {
0053 public:
0054 InttEvent();
0055 virtual ~InttEvent();
0056
0057 InttHit* addHit();
0058 void clear();
0059 void copy(InttEvent* org);
0060
0061 int getNHits();
0062 InttHit* getHit(const int ihit);
0063
0064 void show();
0065 void sort();
0066
0067
0068 int evtSeq;
0069 Long64_t bco;
0070 int fNhits;
0071 TClonesArray* fhitArray;
0072
0073 ClassDef(InttEvent, 2)
0074
0075 };
0076
0077 #endif