Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DigiPhoton.cxx

Go to the documentation of this file.
00001 
00002 // $Id: DigiPhoton.cxx,v 1.3 2005/02/01 19:09:19 tagg Exp $
00003 //
00004 // A single photon in the scintillator system. The coordinate system
00005 // should always be the local coordinate frame. For example, in a
00006 // scintillator strip x should be the distance along the width of the
00007 // strip, y should be the the distance along the thickness of the
00008 // strip and z should be the distance along the length.
00009 //
00010 // messier@indiana.edu
00012 #include "Digitization/DigiPhoton.h"
00013 #include "Digitization/DigiScintHit.h"
00014 #include <iostream>
00015 
00016 ClassImp(DigiPhoton)
00017 
00018 using namespace std;
00019 
00020 //......................................................................
00021 
00022 DigiPhoton::DigiPhoton() :
00023   fHit(0),
00024   fWavelength(0),
00025   fT(0),
00026   fPos(0,0,0),
00027   fDir(0,0,0)
00028 { }
00029 
00030 //......................................................................
00031 
00032 DigiPhoton::DigiPhoton(const DigiScintHit* hit,
00033                        double wavelength, double t, 
00034                        double x, double y, double z,
00035                        double u, double v, double w) :
00036   fHit(hit),
00037   fWavelength(wavelength),
00038   fT(t),
00039   fPos(x,y,z),
00040   fDir(u,v,w)
00041 { }
00042 
00043 DigiPhoton::DigiPhoton(const DigiScintHit* hit,
00044                        double wavelength, double t,
00045                        const TVector3& pos,
00046                        const TVector3& dir ) :
00047   fHit(hit),
00048   fWavelength(wavelength),
00049   fT(t),
00050   fPos(pos),
00051   fDir(dir)
00052 {
00053 }
00054 
00055 
00056 void DigiPhoton::Print(Option_t*) const
00057 {
00058   cout << "DigiPhoton: " 
00059        << WaveLength()/Munits::nm << "nm  " 
00060        << T()/Munits::ns << "ns  " 
00061        << "(" << X() << "," << Y() << "," << Z() << ") "
00062        << "<" << U() << "," << V() << "," << W() << "> " 
00063        << endl;
00064 }
00065 
00067 
00068 
00069 
00070 
00071 
00072 
00073 
00074 

Generated on Mon Feb 15 11:06:37 2010 for loon by  doxygen 1.3.9.1