File indexing completed on 2026-04-06 08:08:20
0001 #ifndef __DST_PHOTON_SELECTION_H__
0002 #define __DST_PHOTON_SELECTION_H__
0003
0004 #include <fun4all/SubsysReco.h>
0005 #include <ffarawobjects/Gl1Packet.h>
0006
0007 #include <cmath>
0008 #include <cstdint>
0009 #include <algorithm>
0010 #include <vector>
0011 #include <map>
0012
0013
0014 class PHCompositeNode;
0015
0016 class DstPhotonSelection : public SubsysReco
0017 {
0018 public:
0019
0020 DstPhotonSelection(const std::string &name = "DstPhotonSelection",
0021 const int runnb = 48746);
0022
0023
0024 virtual ~DstPhotonSelection();
0025
0026
0027 int Init(PHCompositeNode *);
0028
0029 int InitRun(PHCompositeNode *);
0030
0031
0032 int process_event(PHCompositeNode *);
0033
0034
0035 int End(PHCompositeNode *);
0036
0037 private:
0038
0039
0040 int runnumber;
0041
0042
0043 uint64_t live_trigger;
0044 uint64_t scaled_trigger;
0045
0046
0047 bool triggerSelection = false;
0048 bool trigger_mbd_photon_3 = false;
0049 bool trigger_mbd_photon_4 = false;
0050 bool trigger_mbd_photon_5 = false;
0051
0052
0053 Gl1Packet *gl1packet = nullptr;
0054
0055
0056 int scaledown[64] = {0};
0057
0058
0059 std::string db_name = "daq";
0060 std::string user_name = "phnxrc";
0061 std::string table_name = "gl1_scaledown";
0062 };
0063
0064 #endif