File indexing completed on 2025-08-06 08:17:12
0001 #include "Gl1Check.h"
0002
0003 #include <fun4all/Fun4AllInputManager.h>
0004 #include <fun4all/Fun4AllReturnCodes.h>
0005 #include <fun4all/SubsysReco.h> // for SubsysReco
0006
0007 #include <ffarawobjects/Gl1Packet.h>
0008
0009 #include <phool/PHCompositeNode.h>
0010 #include <phool/PHDataNode.h>
0011 #include <phool/PHNode.h> // for PHNode
0012 #include <phool/PHNodeIterator.h> // for PHNodeIterator
0013 #include <phool/getClass.h>
0014
0015 #include <Event/packet.h>
0016
0017 #include <TSystem.h>
0018
0019 #include <iostream> // for operator<<, endl, basic_ost...
0020 #include <utility> // for pair
0021 #include <vector> // for vector
0022
0023
0024 Gl1Check::Gl1Check(const std::string &name)
0025 : SubsysReco(name)
0026 {
0027 }
0028
0029
0030 int Gl1Check::Init(PHCompositeNode * )
0031 {
0032 return Fun4AllReturnCodes::EVENT_OK;
0033 }
0034
0035
0036 int Gl1Check::process_event(PHCompositeNode *topNode)
0037 {
0038 Gl1Packet *gl1cont = findNode::getClass<Gl1Packet>(topNode, "GL1Packet");
0039 if (!gl1cont)
0040 {
0041 std::cout << "could not find Gl1Packet node" << std::endl;
0042 }
0043 else
0044 {
0045 if (ddump_enabled())
0046 {
0047 ddumppacket(gl1cont);
0048 }
0049 gl1cont->identify();
0050 }
0051 return Fun4AllReturnCodes::EVENT_OK;
0052 }