Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MvtxPrototype2UnpackPRDF.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MvtxPrototype2UnpackPRDF.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef MVTX_P2_UnpackPRDF_H
4 #define MVTX_P2_UnpackPRDF_H
5 
6 #include "MvtxPrototype2Geom.h"
7 
8 #include <fun4all/SubsysReco.h>
9 #include <phool/PHObject.h>
10 
11 #include <map>
12 
13 class Event;
14 class Packet;
17 
19 {
20 public:
22 
23  int
24  Init(PHCompositeNode *topNode);
25 
26  int
27  InitRun(PHCompositeNode *topNode);
28 
29  int
31 
32  int
33  End(PHCompositeNode *topNode);
34 
35  void
37 
38  void MakeHits();
39 
40  int DecodeRow(int val) const;
41  int DecodeCol(int val) const;
42 
43 private:
44 
46 
50 
51  static std::map <std::pair<int,int>,std::pair<int,int>> s_map_chips; //<ruid, ruchn> to <stave, chipID>
52  static std::map <int, int> s_map_layers;
53 
54  int _nevents;
56  bool _first;
57 
60 
61 };
62 
63 #endif //**MvtxPrototype2UnpackPRDFF**//