ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MCGIDI_map.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MCGIDI_map.h
1 /*
2 # <<BEGIN-copyright>>
3 # <<END-copyright>>
4 */
5 #ifndef MCGIDI_map_h_included
6 #define MCGIDI_map_h_included
7 
9 
10 #if defined __cplusplus
11  extern "C" {
12  namespace GIDI {
13 #endif
14 
18 
19 typedef struct MCGIDI_map_s MCGIDI_map;
22 
26 };
27 
32  char *schema;
33  char *path;
34  char *evaluation;
35  char *projectile;
36  char *targetName;
37  int globalPoPsIndexProjectile, globalPoPsIndexTarget;
39 };
40 
41 struct MCGIDI_map_s {
44  char *path;
45  char *mapFileName;
48 };
49 
52 MCGIDI_map *MCGIDI_map_readFile( statusMessageReporting *smr, const char *basePath, const char *mapFileName );
57 int MCGIDI_map_addTarget( statusMessageReporting *smr, MCGIDI_map *map, const char *method, const char *path, const char *evaluation, const char *projectile, const char *targetName );
58 int MCGIDI_map_addPath( statusMessageReporting *smr, MCGIDI_map *map, const char *path );
59 char *MCGIDI_map_findTargetViaPoPIDs( statusMessageReporting *smr, MCGIDI_map *map, const char *evaluation, int projectile_PoPID, int target_PoPID );
60 char *MCGIDI_map_findTarget( statusMessageReporting *smr, MCGIDI_map *map, const char *evaluation, const char *projectile, const char *targetName );
61 MCGIDI_map *MCGIDI_map_findAllOfTargetViaPoPIDs( statusMessageReporting *smr, MCGIDI_map *map, int projectile_PoPID, int target_PoPID );
62 MCGIDI_map *MCGIDI_map_findAllOfTarget( statusMessageReporting *smr, MCGIDI_map *map, const char *projectile, const char *targetName );
63 char *MCGIDI_map_getFullPath( statusMessageReporting *smr, MCGIDI_map *map, const char *endPath );
65 int MCGIDI_map_walkTree( statusMessageReporting *smr, MCGIDI_map *map, int (*handler)( MCGIDI_mapEntry *entry, int level, void *userData), void *userData );
67 void MCGIDI_map_simpleWrite( FILE *f, MCGIDI_map *map );
68 
69 #if defined __cplusplus
70  }
71  }
72 #endif
73 
74 #endif /* End of MCGIDI_map_h_included. */