36 #ifndef STAR_StEmcHitCollection
37 #define STAR_StEmcHitCollection
38 #include "St_DataSet.h"
39 #include "St_DataSetIter.h"
41 #include "St_TableSorter.h"
43 #include "StEmcUtil/geometry/StEmcGeom.h"
47 #include "tables/St_emc_hits_Table.h"
48 #include "tables/St_emc_pedestal_Table.h"
49 #include "tables/St_emc_adcslope_Table.h"
50 #include "tables/St_emc_calib_header_Table.h"
75 TArrayS mIndexFirstLast;
77 Int_t ADCtoEnergy(St_emc_hits*);
85 Float_t EnergySum()
const;
86 Float_t EtSum()
const;
87 Float_t HitEnergy(Int_t );
93 TArrayS* NumsModule();
94 TArrayS* IndexFirstLast();
97 St_emc_hits *copyToTable(
const Char_t*);
98 void printHits(Int_t n=10, Int_t start=0);
103 void printNameTable();
105 Int_t fill(St_emc_hits*);
109 inline void StEmcHitCollection::setEmcCalib(
St_DataSet *var) {mEmcCalib = var;}
111 inline Int_t StEmcHitCollection::NHit()
const {
return mNHit;}
112 inline Float_t StEmcHitCollection::EnergySum()
const {
return mEnergySum;}
113 inline Float_t StEmcHitCollection::EtSum()
const {
return mEtSum;}
115 inline Float_t StEmcHitCollection::HitEnergy(Int_t i) {
return mEnergy[i];}
116 inline Int_t StEmcHitCollection::HitId(Int_t i) {
return mId[i];}
117 inline TArrayF* StEmcHitCollection::Energy() {
return &mEnergy;}
118 inline TArrayS* StEmcHitCollection::Id() {
return &mId;}
120 inline Int_t StEmcHitCollection::Module() {
return mModule;}
121 inline TArrayS* StEmcHitCollection::NumsModule() {
return &mNumsModule;}
122 inline TArrayS* StEmcHitCollection::IndexFirstLast() {
return &mIndexFirstLast;}
void Browse(TBrowser *b)
Browse this dataset (called by TBrowser).