Geometry.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file Geometry.h
3 /// \brief Encapsulate the geometry of one entire detector (near, far,
4 /// ndos)
5 ///
6 /// \version $Id: Geometry.h,v 1.39 2012-11-14 19:40:46 bckhouse Exp $
7 /// \author messier@indiana.edu
8 ////////////////////////////////////////////////////////////////////////
9 #ifndef GEO_GEOMETRY_H
10 #define GEO_GEOMETRY_H
11 
13 
18 #include "TVector3.h"
19 
20 /// Detector geometry information
21 namespace geo {
22  /// The geometry of one entire detector (near, far, ipnd)
23  class Geometry : public GeometryBase
24  {
25  public:
26  // Allows 'nova --print-description' to work
28 
29  Geometry(const Parameters& params, art::ActivityRegistry& reg);
30  ~Geometry();
31 
32  void preBeginRun(art::Run const& run);
33 
34  bool calculateMassesLong(const unsigned int number_of_points) const;
35 
36  /// Get direction of the Prong in the beam coordinates
37  TVector3 getDirectionInBeamCoordinates(TVector3 const& startPos,
38  TVector3 const& dir) const;
39 
40  protected:
41  virtual void setDetectorID(novadaq::cnv::DetId) override;
42 
44  };
45 }
47 #endif // GEO_GEOMETRY_H
48 ////////////////////////////////////////////////////////////////////////
#define DECLARE_ART_SERVICE(svc, scope)
Definition: ServiceMacros.h:91
void preBeginRun(art::Run const &run)
Definition: Run.h:31
Encapsulate the geometry of one entire detector (near, far, ndos)
TVector3 getDirectionInBeamCoordinates(TVector3 const &startPos, TVector3 const &dir) const
Get direction of the Prong in the beam coordinates.
The geometry of one entire detector (near, far, ipnd)
Definition: Geometry.h:23
Definition: run.py:1
Geometry(const Parameters &params, art::ActivityRegistry &reg)
virtual void setDetectorID(novadaq::cnv::DetId) override
Method to set DetectorID.
bool calculateMassesLong(const unsigned int number_of_points) const
TDirectory * dir
Definition: macro.C:5
std::string fLoadedGDMLInfo
Definition: Geometry.h:43
The geometry of one entire detector (near, far, ipnd)
Definition: GeometryBase.h:49
Helper for AttenCurve.
Definition: Path.h:10
enum BeamMode string