Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:15:02

0001 #ifndef PJTRANSLATOR_H
0002 #define PJTRANSLATOR_H
0003 
0004 #include <fun4all/SubsysReco.h>
0005 #include "phool/PHObject.h"
0006 #include <fun4all/Fun4AllReturnCodes.h>
0007 
0008 #include <map>
0009 #include <set>
0010 #include <string>
0011 #include <vector>
0012 
0013 #ifndef __CINT__
0014 #include <fastjet/PseudoJet.hh>
0015 class PJContainer : public PHObject
0016 {
0017  public : 
0018   std::vector<fastjet::PseudoJet> data;
0019 };
0020 #endif // __CINT__
0021 
0022 
0023 class PHCompositeNode;
0024 class RawClusterContainer;
0025 class SvtxTrackMap;
0026 class TF1;
0027 
0028 class PJTranslator: public SubsysReco 
0029 {
0030  public:
0031 
0032   PJTranslator(const std::string &name = "PJTranslator");
0033 
0034   virtual ~PJTranslator();
0035 
0036   int Init(PHCompositeNode *);
0037 
0038   int process_event(PHCompositeNode *);
0039 
0040   int get_matched(double clus_energy, double track_energy);
0041 
0042   private:
0043 
0044 #ifndef __CINT__
0045   PJContainer *particles;
0046 #endif// __CINT__
0047              
0048   //Sampling Fractions
0049   static const float sfEMCAL = 0.03;
0050   static const float sfHCALIN = 0.071;
0051   static const float sfHCALOUT = 0.04;
0052              
0053   //Tolerance for cluster-track matching
0054   TF1 *match_tolerance_low;
0055   TF1 *match_tolerance_high;
0056 
0057 };
0058 
0059 
0060 #endif // PJTRANSLATOR_H