HighLAND
CategoryClasses.cxx
1 #include "CategoryClasses.hxx"
2 
4 ClassImp(TrackTypeDefinition)
5 
6 
7 //********************************************************************
8 std::string* TrackCategoryDefinition::GetNames(std::string names[]){
9 //********************************************************************
10 
11 // std::string* names = new std::string[20];
12  for (UInt_t i=0;i<GetNTypes();i++){
13  names[i] = _types[i]._name;
14  }
15  return names;
16 }
17 
18 
19 //********************************************************************
20 Int_t* TrackCategoryDefinition::GetCodes(Int_t codes[]){
21 //********************************************************************
22 
23 // Int_t* codes = new Int_t[20];
24  for (UInt_t i=0;i<GetNTypes();i++){
25  codes[i] = _types[i]._code;
26  }
27  return codes;
28 }
29 
30 
31 //********************************************************************
32 Int_t* TrackCategoryDefinition::GetColors(Int_t colors[]){
33 //********************************************************************
34 
35 // Int_t* colors = new Int_t[20];
36  for (UInt_t i=0;i<GetNTypes();i++){
37  colors[i] = _types[i]._color;
38  }
39  return colors;
40 }
41 
42 
std::vector< TrackTypeDefinition > _types
The types defined for this category.
unsigned int GetNTypes()
Number of types defined for this category.
std::string _name
The name of this category (e.g. "particle").