FEDRA emulsion software from the OPERA Collaboration
EdbVertexSpace.h
Go to the documentation of this file.
1 #ifndef ROOT_EdbVertexSpace
2 #define ROOT_EdbVertexSpace
3 
5 // //
6 // EdbVertexSpace //
7 // //
8 // Class for fast vertex check //
9 // //
11 #include <TObject.h>
12 
13 //_________________________________________________________________________
14 class EdbVertexSpace: public TObject {
15 
16  private:
17 
18  // Volume limits:
19  Float_t eVmin[3]; // x,y,z of min point
20  Float_t eVmax[3]; // x,y,z of max point
21 
22  Float_t eBin[3]; // xyz bin sizes
23 
24  Int_t eNcell[3]; // number of cells in each dimension
25 
26  TObjArray *eCells;
27 
28  public:
29  EdbVertexSpace( float vmin[3], float vmax[3], float bin[3] );
30  virtual ~EdbVertexSpace() { if(eCells) delete eCells; }
31 
32  void AddTrackLine( float x1[3], float x2[3], int id);
33 
34  void Cycle();
35 
36  ClassDef(EdbVertexSpace,1) // vertex-track association
37 };
38 #endif /* ROOT_EdbVertexSpace */
Definition: EdbVertexSpace.h:14
void AddTrackLine(float x1[3], float x2[3], int id)
Definition: EdbVertexSpace.cxx:34
Int_t eNcell[3]
Definition: EdbVertexSpace.h:24
TObjArray * eCells
Definition: EdbVertexSpace.h:26
Float_t eVmin[3]
Definition: EdbVertexSpace.h:19
Float_t eVmax[3]
Definition: EdbVertexSpace.h:20
virtual ~EdbVertexSpace()
Definition: EdbVertexSpace.h:30
EdbVertexSpace(float vmin[3], float vmax[3], float bin[3])
Definition: EdbVertexSpace.cxx:16
void Cycle()
Definition: EdbVertexSpace.cxx:45
Float_t eBin[3]
Definition: EdbVertexSpace.h:22
float bin
Definition: emthickness.cpp:98