Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:21:59

0001 #ifndef __MvtxUnpackPRDFF__
0002 #define __MvtxUnpackPRDFF__
0003 
0004 //* Unpacks raw HCAL PRDF files *//
0005 //Abhisek Sen
0006 
0007 #include <fun4all/SubsysReco.h>
0008 #include <phool/PHObject.h>
0009 
0010 #define NCHIP 4
0011 #define NROW 512
0012 #define NREGION 32
0013 #define NCOL_PER_REGION 32
0014 
0015 class Event;
0016 class Packet;
0017 class Packet_hbd_fpgashort;
0018 class TrkrHitSetContainer;
0019 
0020 class MvtxUnpackPRDF : public SubsysReco
0021 {
0022 public:
0023   MvtxUnpackPRDF();
0024 
0025   int
0026   Init(PHCompositeNode *topNode);
0027 
0028   int
0029   InitRun(PHCompositeNode *topNode);
0030 
0031   int
0032   process_event(PHCompositeNode *topNode);
0033 
0034   int
0035   End(PHCompositeNode *topNode);
0036 
0037     void
0038     Verbosity(int v) {_verbosity = v;}
0039 
0040   void
0041   CreateNodeTree(PHCompositeNode *topNode);
0042 
0043     void MakeHits();
0044 
0045 private:
0046 
0047     PHCompositeNode* dstNode;
0048 
0049   Event* _event;
0050   Packet_hbd_fpgashort* _packet;
0051     TrkrHitSetContainer *_hitsetcon;
0052 
0053   int _nevents;
0054     int _verbosity;
0055     bool _first;
0056 
0057     int _nevent_per_chip[NCHIP];
0058     int _npixel_per_chip[NCHIP];
0059 
0060 };
0061 
0062 #endif //**MvtxUnpackPRDFF**//