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

CalDetCerenkovId.cxx

Go to the documentation of this file.
00001 
00002 //$Id: CalDetCerenkovId.cxx,v 1.2 2001/11/09 21:54:02 rhatcher Exp $
00003 //
00004 //CalDetCerenkovId.cxx
00005 //
00006 //CalDetCerenkovId is a class to id particles in the CalDet using time of
00007 //flight information 
00008 //
00009 //Author:  B. Rebel 7/2001
00011 
00012 #include "CalDetPIDSR/CalDetCerenkovId.h"
00013 #include "MessageService/MsgService.h"
00014 #include "RawData/RawTOFDigit.h"
00015 #include "TMath.h"
00016 #include "Conventions/Munits.h"
00017 
00018 ClassImp(CalDetCerenkovId)
00019 
00020 //______________________________________________________________________
00021 //CVSID("$Id: CalDetCerenkovId.cxx,v 1.2 2001/11/09 21:54:02 rhatcher Exp $");
00022 
00023 //----------------------------------------------------------------------
00024 CalDetCerenkovId::CalDetCerenkovId()
00025 {
00026 }
00027 
00028 //----------------------------------------------------------------------
00029 //  CalDetCerenkovId::CalDetCerenkovId(RawCerenkovDigit rcd) :
00030 //    fRawCerenkovDigit(rcd),
00031 //    fNpe(0.)
00032 //  {
00033 //    //insert code that takes the raw cerenkov digit and gets the 
00034 //    //npe values here.  
00035 
00036 //    //fNpe = fRawCerenkovDigit.GetNpe();
00037 //  }
00038 
00039 //----------------------------------------------------------------------
00040 CalDetCerenkovId::~CalDetCerenkovId()
00041 {
00042   //destructor
00043 }
00044 
00045 //----------------------------------------------------------------------
00046 Double_t CalDetCerenkovId::GetParticleMassSquared(Double_t beta, Double_t momentum) const
00047 {
00048   Double_t massSquared = -1.;
00049 
00050   Double_t energy = momentum / beta;
00051   massSquared = (energy*energy) - (momentum*momentum);
00052  
00053   return massSquared;
00054 
00055 }
00056 
00057 //----------------------------------------------------------------------
00058 Double_t CalDetCerenkovId::GetNpe() const
00059 {
00060   return fNpe;
00061 }
00062 
00063 
00064 

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