#include "AliRun.h"
#include "AliVZERO.h"
+#include "AliVZEROLoader.h"
#include "AliVZEROdigit.h"
#include "AliVZEROhit.h"
gAlice->AddHitList(fHits);
-// fDigits = new TClonesArray("AliVZEROdigit",400) ;
-
fThickness = 4.1; // total thickness of the V0R box
fThickness1 = 0.7; // thickness of the thickest cell (2.5 in version 0)
{
fMaxDestepAlu = p1;
}
+
+//___________________________________________
+AliLoader* AliVZERO::MakeLoader(const char* topfoldername)
+{
+ // builds VZEROgetter (AliLoader type)
+ // if detector wants to use customized getter, it must overload this method
+
+ Info("MakeLoader","Creating AliVZEROLoader. Top folder is %s.",topfoldername);
+ fLoader = new AliVZEROLoader(GetName(),topfoldername);
+ return fLoader;
+}
+
+
+
//////////////////////////////////////////////////
// Manager and hits classes for set : VZERO //
//////////////////////////////////////////////////
-
+
+#include "AliRun.h"
+#include "AliLoader.h"
#include "AliDetector.h"
#include "AliHit.h"
#include "TNamed.h"
virtual Int_t DistanceToPrimitive(Int_t px, Int_t py);
virtual Int_t IsVersion() const = 0;
virtual void Init();
+ virtual AliLoader* MakeLoader(const char* topfoldername);
virtual void MakeBranch(Option_t *option) =0;
// virtual void MakeBranch(Option_t *option);
virtual void DrawModule() {};
--- /dev/null
+#include "AliVZEROLoader.h"
+
+const TString AliVZEROLoader::fgkDefaultHitsFileName = "VZERO.Hits.root";
+const TString AliVZEROLoader::fgkDefaultDigitsFileName = "VZERO.Digits.root";
+
+ClassImp(AliVZEROLoader)
+AliVZEROLoader::AliVZEROLoader()
+ {
+ }
+/*****************************************************************************/
+AliVZEROLoader::AliVZEROLoader(const Char_t *name,const Char_t *topfoldername)
+ :AliLoader(name,topfoldername)
+{
+ if (GetDebug())
+ Info("AliVZEROLoader"," name = %s; topfolder = %s",name,topfoldername);
+}
+/*****************************************************************************/
+
+AliVZEROLoader::AliVZEROLoader(const Char_t *name,TFolder *topfolder)
+ :AliLoader(name,topfolder)
+ {
+ }
+
--- /dev/null
+#ifndef ALIVZEROGETTER_H
+#define ALIVZEROGETTER_H
+
+//base class for loaders
+//loader is common for reading data for all detectors
+//Each detector has a loader data member
+//loader is accessible via folder structure as well
+
+#include <AliLoader.h>
+
+class AliVZEROLoader: public AliLoader
+ {
+ public:
+ AliVZEROLoader();
+ AliVZEROLoader(const Char_t *name,const Char_t *topfoldername);
+ AliVZEROLoader(const Char_t *name,TFolder *topfolder);
+
+ virtual ~AliVZEROLoader(){};//-----------------
+
+ protected:
+
+
+ private:
+ static const TString fgkDefaultHitsFileName;
+ static const TString fgkDefaultDigitsFileName;
+
+ public:
+ ClassDef(AliVZEROLoader,1)
+ };
+
+#endif
#pragma link C++ class AliVZEROv2+;
#pragma link C++ class AliVZEROhit+;
#pragma link C++ class AliVZEROdigit+;
+#pragma link C++ class AliVZEROLoader+;
#endif
SRCS= \
+AliVZEROLoader.cxx \
AliVZERO.cxx \
AliVZEROv0.cxx \
AliVZEROv2.cxx \
AliVZEROhit.cxx \
AliVZEROdigit.cxx
-HDRS= $(SRCS:.cxx=.h)
+HDRS:= $(SRCS:.cxx=.h)
-DHDR=VZEROLinkDef.h
+DHDR:=VZEROLinkDef.h
+
+EINCLUDE:= $(ALICE)/geant3/TGeant3 STRUCT STEER CONTAINERS
-EINCLUDE:= $(ALICE)/geant3/TGeant3 STRUCT STEER