CellUniqueId.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file CellUniqueId.h
3 /// \brief Give every cell in the geometry a unique ID number based on
4 /// the TGeo path to the node
5 ///
6 /// \version $Id: CellUniqueId.h,v 1.1 2012-08-21 23:10:42 bckhouse Exp $
7 /// \author messier@indiana.edu
8 ////////////////////////////////////////////////////////////////////////
9 #ifndef GEO_CELLUNIQUEID_H
10 #define GEO_CELLUNIQUEID_H
11 #include <vector>
12 class TGeoNode;
13 
14 namespace geo {
15  typedef unsigned long long int CellUniqueId;
16 
17 #ifndef __GCCXML__
18 
19  CellUniqueId NodesToUniqueId(const std::vector<const TGeoNode*>& n,
20  unsigned int depth);
21  // Comment out all of these functions. Now that paths can't be relied upon
22  // (after the root6 upgrade) these are all just foot-guns
23  // CellUniqueId PathToUniqueId(const char* path);
24  // CellUniqueId IdsToUniqueId(const std::vector<int>& ids);
25  // void GetNodeNumbers(const char* nm, std::vector<int>& id);
26 
27 #endif
28 
29 }
30 #endif // GEO_CELLUNIQUEID_H
CellUniqueId NodesToUniqueId(const std::vector< const TGeoNode * > &n, unsigned int depth)
unsigned long long int CellUniqueId
Definition: CellUniqueId.h:15
Helper for AttenCurve.
Definition: Path.h:10