Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:12:42

0001 // $Id: $                                                                                             
0002 
0003 /*!
0004  * \file EMCalTrk.h
0005  * \brief 
0006  * \author Jin Huang <jhuang@bnl.gov>
0007  * \version $Revision:   $
0008  * \date $Date: $
0009  */
0010 
0011 #ifndef EMCALTRK_H_
0012 #define EMCALTRK_H_
0013 
0014 #include <phool/PHObject.h>
0015 #include <phool/phool.h>
0016 
0017 /*!
0018  * \brief EMCalTrk
0019  */
0020 class EMCalTrk : public PHObject
0021 {
0022 public:
0023   EMCalTrk();
0024   virtual
0025   ~EMCalTrk();
0026 
0027   virtual void
0028   Clear(Option_t *option = "");
0029 
0030   virtual void
0031   Reset();
0032 
0033   int trackID;
0034   int charge;
0035   float quality;
0036   float chisq;
0037   float ndf;
0038   float nhits;
0039   unsigned int layers;
0040 
0041   float dca;
0042   float dca2d;
0043   float dca2dsigma;
0044   float px;
0045   float py;
0046   float pz;
0047   float pcax;
0048   float pcay;
0049   float pcaz;
0050 
0051   float presdphi;
0052   float presdeta;
0053   float prese3x3;
0054   float prese;
0055 
0056   float cemcdphi;
0057   float cemcdeta;
0058   float cemce3x3;
0059   float cemce;
0060 
0061   float hcalindphi;
0062   float hcalindeta;
0063   float hcaline3x3;
0064   float hcaline;
0065 
0066   float hcaloutdphi;
0067   float hcaloutdeta;
0068   float hcaloute3x3;
0069   float hcaloute;
0070 
0071   int gtrackID;
0072   int gflavor;
0073   int ng4hits;
0074 
0075   float gpx;
0076   float gpy;
0077   float gpz;
0078   float gvx;
0079   float gvy;
0080   float gvz;
0081   float gfpx;
0082   float gfpy;
0083   float gfpz;
0084   float gfx;
0085   float gfy;
0086   float gfz;
0087   int gembed;
0088 
0089   int nfromtruth;
0090 
0091   enum
0092   {
0093     Max_N_Tower = 11
0094   };
0095 
0096   float cemc_ieta[Max_N_Tower][Max_N_Tower];
0097   float cemc_iphi[Max_N_Tower][Max_N_Tower];
0098   float cemc_energy[Max_N_Tower][Max_N_Tower];
0099   float cemc_radius[Max_N_Tower][Max_N_Tower];
0100 
0101   float hcalin_ieta[Max_N_Tower][Max_N_Tower];
0102   float hcalin_iphi[Max_N_Tower][Max_N_Tower];
0103   float hcalin_energy[Max_N_Tower][Max_N_Tower];
0104   float hcalin_radius[Max_N_Tower][Max_N_Tower];
0105 
0106   float cemc_sum_energy;
0107   int cemc_sum_n_tower;
0108   float hcalin_sum_energy;
0109   int hcalin_sum_n_tower;
0110 
0111   //! e/p based on CEMC and tracking
0112   double
0113   get_ep() const;
0114 
0115   //! log-likelihood electron - ep matching
0116   float ll_ep_e;
0117 
0118   //! log-likelihood hadron - ep matching
0119   float ll_ep_h;
0120 
0121   //! log-likelihood electron - emcal + inner HCal energy deposition
0122   float ll_edep_e;
0123 
0124   //! log-likelihood hadron - emcal + inner HCal energy deposition
0125   float ll_edep_h;
0126 
0127   //! log-likelihood electron - shower shape
0128   float ll_shape_e;
0129 
0130   //! log-likelihood hadron - shower shape
0131   float ll_shape_h;
0132 
0133 ClassDef(EMCalTrk,10)
0134 };
0135 
0136 #endif /* EMCALTRK_H_ */