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

CellHit.h

Go to the documentation of this file.
00001 
00002 // $Id: CellHit.h,v 1.18 2009/10/06 19:49:28 rbpatter Exp $
00003 //
00004 // A CellHit has all the calibrated information about a hit that
00005 // doesn't require any event context (e.g., reconstruction location).
00006 //
00008 
00009 #ifndef CELLHIT_H
00010 #define CELLHIT_H
00011 
00012 #include "TObject.h"
00013 #include "Geometry/PlaneGeo.h"
00014 #include "RawData/RawDigit.h"
00015 
00016 namespace recobase {
00017   
00018   class CellHit : public rawdata::RawDigit
00019     {
00020 
00021     public:
00022       CellHit(); // Default constructor
00023       ~CellHit();
00024 
00025       virtual void Print(const Option_t*) const; //print out the important bits of this cellhit
00026 
00027       // Getters
00028       unsigned short Status() const { return fStatus; }
00029       unsigned short Plane () const { return fPlane;  }
00030       unsigned short Cell  () const { return fCell;   }
00031       geo::View_t    View  () const { return fView;   }
00032       float          PE    () const { return fPE;     }
00033       float          PECorr() const { return fPECorr; }
00034       float          TNS   () const { return fTNS;    }
00035 
00036       // Setters
00037       void SetStatus     (unsigned short status ) { fStatus  = status; }
00038       void SetStatusBits (unsigned short bits   ) { fStatus |= bits;   }
00039       void SetCell       (unsigned short cell   ) { fCell    = cell;   }
00040       void SetPlane      (unsigned short plane  ) { fPlane   = plane;  }
00041       void SetView       (geo::View_t    view   ) { fView    = view;   }
00042       void SetPE         (float          pe     ) { fPE      = pe;     }
00043       void SetPECorr     (float          pecorr ) { fPECorr  = pecorr; } 
00044       void SetTNS        (float          tns    ) { fTNS     = tns;    }
00045 
00046       // data members
00047       unsigned short fStatus; 
00048       unsigned short fPlane;  
00049       unsigned short fCell;   
00050       geo::View_t    fView;   
00051       float          fPE;     
00052       float          fPECorr; 
00053       float          fTNS;    
00054        
00055       ClassDef(CellHit, 4) // Calibrated Cell Hit
00056     };
00057 }
00058 
00059 #endif // CELLHIT_H
00060 

Generated on Mon Nov 23 04:45:24 2009 for NOvA Offline by  doxygen 1.3.9.1