]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Add noti
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Oct 2010 20:31:26 +0000 (20:31 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Oct 2010 20:31:26 +0000 (20:31 +0000)
PWG4/TwoPartCorr/TreeClasses.C
PWG4/TwoPartCorr/TreeClasses.h

index 0d0826f8e2058db1102b6908b0b64b178283fa31..261a77863b6dcbb5685243c08ce706199b2b1035 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "TreeClasses.h"
 
+ClassImp(Noti)
 ClassImp(MyHeader)
 ClassImp(MyPart)
 ClassImp(MyTracklet)
index abeb81f3570d6d653f63aa40b0a0739b986fe3d5..4c133dcb0f75cedd386adaf2d2b16fa48c4ac8aa 100644 (file)
 #include <TH2F.h>
 #include <TMath.h>
 
+class Noti: public TObject
+{
+public:
+  Noti() : fc(0) {;}
+  virtual ~Noti() {;}
+  Bool_t Notify()         { fc=1; return 1; }
+  Bool_t Notified() const { return fc;      }
+  void   Reset()          { fc=0;           }
+protected:
+  Bool_t fc; //=1 when file changed
+  ClassDef (Noti,0) // Use to be notified when file in chain changes
+};
+
 class MyHeader
 {
 public: