Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GenericUnpackPRDF.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file GenericUnpackPRDF.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef PROTOTYPE4_GENERICUNPACKPRDF_H
4 #define PROTOTYPE4_GENERICUNPACKPRDF_H
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <map>
9 #include <string>
10 #include <utility> // for pair
11 
12 class PHCompositeNode;
13 class RawTowerContainer;
14 
16 {
17  public:
19 
20  int InitRun(PHCompositeNode *topNode);
21 
22  int process_event(PHCompositeNode *topNode);
23 
24  void CreateNodeTree(PHCompositeNode *topNode);
25 
27  void add_channel(const int packet_id,
28  const int channel,
29  const int tower_id
30  );
31 
32  private:
34 
36  typedef std::pair<int, int> channel_typ;
37 
39  typedef std::map<channel_typ, int> channel_map;
40 
42 
43  // output -> Towers
45 };
46 
47 #endif