StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiSvtHitLoader.h
1 #ifndef StiSvtHitLoader_H
2 #define StiSvtHitLoader_H
3 
4 #include "Sti/StiHitLoader.h"
5 class StEvent;
7 
19 class StiSvtHitLoader : public StiHitLoader<StEvent,StiDetectorBuilder>
20 {
21 public:
22 
24  StiSvtHitLoader(StiHitContainer * hitContainer,
25  Factory<StiHit> * hitFactory,
26  StiDetectorBuilder * detector);
27  virtual ~StiSvtHitLoader();
28  virtual void loadHits(StEvent* source,
29  Filter<StiTrack> * trackFilter,
30  Filter<StiHit> * hitFilter);
31  static Int_t getSvtBarrel(Int_t svtLayer) {return (((svtLayer)-1)/2+1);}
32  static Int_t getLayer(Int_t svtLayer) {return ((svtLayer)-1);}
33  static Int_t getLadder(Int_t /* svtLayer */, Int_t svtLadder) {return (((svtLadder)-1)/2);}
34 };
35 
36 #endif