10 #ifndef StStrangeCuts_hh
11 #define StStrangeCuts_hh
12 #include "TOrdCollection.h"
26 TCut* CutAt(Int_t idx)
const;
27 TCut* GetCut(
const char* name)
const;
28 const char* GetValue(
const char* name)
const;
30 Bool_t Contains(
const TObject*);
35 void Add(
const char* name,
const char* value);
36 void Add(
const TCut&);
37 void Add(
const TCut*);
38 void Add(TObject *to){TSeqCollection::Add(to);}
45 void Append(
const TOrdCollection*);
46 void Reset(
const TSeqCollection&);
47 void Reset(
const TSeqCollection*);
48 void UpdateArray(TClonesArray*);
49 void ForceUpdateArray();
55 void AddIfNew(TCut*, Bool_t reverse=kFALSE);
56 Bool_t NewCut(
const TObject*);
63 inline TCut* StStrangeCuts::CutAt(Int_t idx)
const
64 {
return (TCut*) At(idx); }
65 inline TCut* StStrangeCuts::GetCut(
const char* name)
const
66 {
return (TCut*) FindObject(name); }
67 inline const char* StStrangeCuts::GetValue(
const char* name)
const
68 {
return GetCut(name)->GetTitle(); }
69 inline void StStrangeCuts::Add(
const char* name,
const char* value)
70 { AddIfNew(
new TCut(name,value)); }
71 inline void StStrangeCuts::Add(
const TCut& newCut)
72 { AddIfNew(
new TCut(newCut)); }
73 inline void StStrangeCuts::Add(
const TCut* newCut)
75 inline void StStrangeCuts::List()
77 inline void StStrangeCuts::Store()
78 { Write(
"StrangeCuts",TObject::kSingleKey); }
79 inline void StStrangeCuts::Reset(
const TSeqCollection& oldCuts)
81 inline void StStrangeCuts::ForceUpdateArray()
83 inline Bool_t StStrangeCuts::NewCut(
const TObject* obj)
84 {
return (!(Contains(obj))); }