Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:14:40

0001 #ifndef __HCALLABTREE_H__
0002 #define __HCALLABTREE_H__
0003 
0004 class hcalLabTree
0005 {
0006 
0007 public:
0008 
0009   hcalLabTree() {
0010     runnumber   = 0;
0011     eventnumber = 0;
0012   } 
0013   hcalLabTree(int rn){
0014     runnumber = rn;
0015   }
0016 
0017   ~hcalLabTree() {
0018     ;
0019   } 
0020 
0021   void clean(){
0022     for(int ch = 0; ch<NCH; ch++) {
0023       pedestal[ch] = 0.;
0024       fpeak[ch]    = 0.;
0025       ftime[ch]    = 0.;
0026     }
0027   };
0028   void init(int rn);
0029 public:
0030   int runnumber;
0031   int eventnumber;
0032   TString             hcLTFName;
0033   TFile             * fhcl;
0034   TTree             * thcl;
0035 
0036   //  EK:  reject codes
0037   //           reject[0] - Calorimeter
0038   //   1      overflows in calorimeter amplitudes
0039   //   10     tags outside range
0040   //   100    HCal time is unreliable
0041   //   1000   
0042   //   10000  Total energy in event is consistent with ZERO
0043   int reject;
0044 
0045   // timing
0046   float hitsample;
0047   float hittime;
0048 
0049   
0050   int   adc     [NCH][NSAMPLES];
0051   float pedestal[NCH];
0052   float fpeak   [NCH];
0053   float ftime   [NCH];
0054 
0055   float fsum    [NCH/2];    //  uncalibrated ADC sum from two fiber ends
0056   float fcsum   [NCH/2];    //  calibrated ASDC sum from two fiber ends
0057   float asym    [NCH/2];
0058   float ly      [NCH];      //  light yield from fiber ends
0059   float fly     [NCH/2];    //  light yield per fiber
0060   float tly                 //  total light yield per tile per event
0061 
0062   float tileXCG, tileYCG;
0063 
0064 
0065   int summary;
0066 };
0067 
0068 #endif /* __HCALLABTREE_H__ */