AliBCMLoader added.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Jun 2007 09:13:45 +0000 (09:13 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Jun 2007 09:13:45 +0000 (09:13 +0000)
BCM/AliBCMLoader.cxx [new file with mode: 0644]
BCM/AliBCMLoader.h [new file with mode: 0644]
BCM/BCMLinkDef.h
BCM/libBCM.pkg

diff --git a/BCM/AliBCMLoader.cxx b/BCM/AliBCMLoader.cxx
new file mode 100644 (file)
index 0000000..2cf4d2b
--- /dev/null
@@ -0,0 +1,37 @@
+/////////////////////////////////////////////////////////////////////
+//                                                                 //
+//  Class AliBCMLoader                                             //
+//                                                                 //
+//  Base class for BCMLoaders.                                     //
+//  Loader provides base I/O facilities for standard data.         //
+//  Each detector has a loader data member.                        //
+//  Loader is accessible via folder structure as well.             //
+//                                                                 //
+/////////////////////////////////////////////////////////////////////
+
+#include "AliBCMLoader.h"
+#include "AliLog.h"
+
+const TString AliBCMLoader::fgkDefaultHitsFileName      = "BCM.Hits.root";
+const TString AliBCMLoader::fgkDefaultDigitsFileName    = "BCM.Digits.root";
+
+ClassImp(AliBCMLoader)
+
+//_____________________________________________________________________________
+AliBCMLoader::AliBCMLoader()
+ { 
+ // Default constructor
+ }
+
+//_____________________________________________________________________________
+AliBCMLoader::AliBCMLoader(const Char_t *name,const Char_t *topfoldername)
+ :AliLoader(name,topfoldername)
+{
+  AliDebug(1,Form("Name = %s; topfolder = %s",name,topfoldername));
+}
+
+//_____________________________________________________________________________
+AliBCMLoader::AliBCMLoader(const Char_t *name,TFolder *topfolder)
+ :AliLoader(name,topfolder)
+ {
+ }
diff --git a/BCM/AliBCMLoader.h b/BCM/AliBCMLoader.h
new file mode 100644 (file)
index 0000000..9f9cb10
--- /dev/null
@@ -0,0 +1,33 @@
+#ifndef ALIBCMLOADER_H
+#define ALIBCMLOADER_H
+
+/////////////////////////////////////////////////////////////////////
+//                                                                 //
+// Base class for BCMloaders.                                      //
+// Loader provides base I/O facilities for standard data.          //
+// Each detector has a loader data member.                         //
+// Loader is always accessible via folder structure as well.       // 
+//                                                                 //
+/////////////////////////////////////////////////////////////////////
+
+#include "AliLoader.h"
+
+class AliBCMLoader: public AliLoader
+ {
+   public:
+    AliBCMLoader();
+    AliBCMLoader(const Char_t *name,const Char_t *topfoldername);
+    AliBCMLoader(const Char_t *name,TFolder *topfolder);    
+    virtual ~AliBCMLoader() {};
+    
+    AliBCMLoader & operator = (const AliBCMLoader & ) {return *this;}
+    
+   private:
+    static const TString fgkDefaultHitsFileName;  // Default Name for hit file
+    static const TString fgkDefaultDigitsFileName;// Default Name for digit file
+
+   ClassDef(AliBCMLoader,1)
+      
+ };
+#endif
index 71d38ac..d7cdb70 100644 (file)
@@ -10,4 +10,5 @@
  
 #pragma link C++ class  AliBCM+;
 #pragma link C++ class  AliBCMHit+;
+#pragma link C++ class  AliBCMLoader+;
 #endif
index fc94b4f..84e2fe9 100644 (file)
@@ -1,4 +1,4 @@
-SRCS=          AliBCM.cxx AliBCMHit.cxx
+SRCS=          AliBCM.cxx AliBCMHit.cxx AliBCMLoader.cxx
 
 HDRS= $(SRCS:.cxx=.h)