Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:17:55

0001 #include "DumpCaloTriggerInfo.h"
0002 
0003 #include <calotrigger/CaloTriggerInfo.h>
0004 
0005 #include <phool/PHIODataNode.h>
0006 
0007 #include <ostream>
0008 #include <string>
0009 
0010 using MyNode_t = PHIODataNode<CaloTriggerInfo>;
0011 
0012 DumpCaloTriggerInfo::DumpCaloTriggerInfo(const std::string &NodeName)
0013   : DumpObject(NodeName)
0014 {
0015   return;
0016 }
0017 
0018 int DumpCaloTriggerInfo::process_Node(PHNode *myNode)
0019 {
0020   CaloTriggerInfo *calotriggerinfo = nullptr;
0021   MyNode_t *thisNode = static_cast<MyNode_t *>(myNode);  // NOLINT(cppcoreguidelines-pro-type-static-cast-downcast)
0022   if (thisNode)
0023   {
0024     calotriggerinfo = thisNode->getData();
0025   }
0026   if (calotriggerinfo)
0027   {
0028     *fout << " get_best_EMCal_2x2_E: " << calotriggerinfo->get_best_EMCal_2x2_E() << std::endl;
0029     *fout << " get_best_EMCal_2x2_eta: " << calotriggerinfo->get_best_EMCal_2x2_eta() << std::endl;
0030     *fout << " get_best_EMCal_2x2_phi: " << calotriggerinfo->get_best_EMCal_2x2_phi() << std::endl;
0031     *fout << " get_best_EMCal_4x4_E: " << calotriggerinfo->get_best_EMCal_4x4_E() << std::endl;
0032     *fout << " get_best_EMCal_4x4_eta: " << calotriggerinfo->get_best_EMCal_4x4_eta() << std::endl;
0033     *fout << " get_best_EMCal_4x4_phi: " << calotriggerinfo->get_best_EMCal_4x4_phi() << std::endl;
0034     *fout << " get_best2_EMCal_4x4_E: " << calotriggerinfo->get_best2_EMCal_4x4_E() << std::endl;
0035     *fout << " get_best2_EMCal_4x4_eta: " << calotriggerinfo->get_best2_EMCal_4x4_eta() << std::endl;
0036     *fout << " get_best2_EMCal_4x4_phi: " << calotriggerinfo->get_best2_EMCal_4x4_phi() << std::endl;
0037     *fout << " get_best_FullCalo_0p2x0p2_E: " << calotriggerinfo->get_best_FullCalo_0p2x0p2_E() << std::endl;
0038     *fout << " get_best_FullCalo_0p2x0p2_eta: " << calotriggerinfo->get_best_FullCalo_0p2x0p2_eta() << std::endl;
0039     *fout << " get_best_FullCalo_0p2x0p2_phi: " << calotriggerinfo->get_best_FullCalo_0p2x0p2_phi() << std::endl;
0040     *fout << " get_best_FullCalo_0p4x0p4_E: " << calotriggerinfo->get_best_FullCalo_0p4x0p4_E() << std::endl;
0041     *fout << " get_best_FullCalo_0p4x0p4_eta: " << calotriggerinfo->get_best_FullCalo_0p4x0p4_eta() << std::endl;
0042     *fout << " get_best_FullCalo_0p4x0p4_phi: " << calotriggerinfo->get_best_FullCalo_0p4x0p4_phi() << std::endl;
0043     *fout << " get_best_FullCalo_0p6x0p6_E: " << calotriggerinfo->get_best_FullCalo_0p6x0p6_E() << std::endl;
0044     *fout << " get_best_FullCalo_0p6x0p6_eta: " << calotriggerinfo->get_best_FullCalo_0p6x0p6_eta() << std::endl;
0045     *fout << " get_best_FullCalo_0p6x0p6_phi: " << calotriggerinfo->get_best_FullCalo_0p6x0p6_phi() << std::endl;
0046     *fout << " get_best_FullCalo_0p8x0p8_E: " << calotriggerinfo->get_best_FullCalo_0p8x0p8_E() << std::endl;
0047     *fout << " get_best_FullCalo_0p8x0p8_eta: " << calotriggerinfo->get_best_FullCalo_0p8x0p8_eta() << std::endl;
0048     *fout << " get_best_FullCalo_0p8x0p8_phi: " << calotriggerinfo->get_best_FullCalo_0p8x0p8_phi() << std::endl;
0049     *fout << " get_best_FullCalo_1p0x1p0_E: " << calotriggerinfo->get_best_FullCalo_1p0x1p0_E() << std::endl;
0050     *fout << " get_best_FullCalo_1p0x1p0_eta: " << calotriggerinfo->get_best_FullCalo_1p0x1p0_eta() << std::endl;
0051     *fout << " get_best_FullCalo_1p0x1p0_phi: " << calotriggerinfo->get_best_FullCalo_1p0x1p0_phi() << std::endl;
0052   }
0053   return 0;
0054 }