simple-tof-analysis
 All Classes Namespaces Functions Variables Groups Pages
TSCategory.h
1 /*
2  * TSCategory.h
3  *
4  * Created on: Sep 24, 2014
5  * Author: Silvestro di Luise
6  * Silvestro.Di.Luise@cern.ch
7  *
8  * Create a Category Sample, i.e.: a subset of the category
9  *
10  * Category
11  * Members
12  *
13  *
14  *
15  */
16 
17 #ifndef TSCATEGORY_H_
18 #define TSCATEGORY_H_
19 
20 #include <TString.h>
21 
22 
23 #include "TSCategoryDef.h"
24 
25 /*
26  *
27  */
28 class TSCategory: public TSCategoryDef {
29 
30 public:
31 
32  TSCategory();
33  TSCategory(const TSCategoryDef &, TString members="");
34  TSCategory(const TSCategory &);
35  virtual ~TSCategory();
36 
37  int Compare(const TSCategory &, int opt=0) const;
38 
39 
40  void Copy(const TSCategory &);
41 
42  const TSCategoryDef& GetMotherCategory() const {return fMotherCateg;}
43 
44  bool SameMember(int,const TSCategory&, int) const;
45  bool SameType(const TSCategory &) const;
46  void Set(const TSCategoryDef &, TString list="");
47 
48 private:
49 
50  TSCategoryDef fMotherCateg;
51 
52 };
53 
54 #endif /* TSCATEGORY_H_ */
int Compare(const TSCategory &, int opt=0) const
Definition: TSCategory.cc:113
Definition: TSCategoryDef.h:40
Definition: TSCategory.h:28