00001 00002 // NtpSRFiducial 00003 // 00004 // NtpSRFiducial is an ntuple class to hold fiducial data. 00005 // 00006 // Based on Roy Lee's CandEventSR/FiducialInfoSR class. 00008 00009 #ifndef NTPSRFIDUCIAL_H 00010 #define NTPSRFIDUCIAL_H 00011 00012 #include <iosfwd> // ostream fwd decl' 00013 #include "TObject.h" // base class 00014 00015 class NtpSRFiducial; 00016 std::ostream& operator << (std::ostream& os, const NtpSRFiducial& ntp); 00017 00018 class NtpSRFiducial : public TObject { 00019 00020 public: 00021 // Constructors & Destructors 00022 NtpSRFiducial(): dr(0),dz(0),trace(0),tracez(0),nplane(0) {} // def const'r 00023 virtual ~NtpSRFiducial() {} 00024 00025 // State testing methods 00026 virtual std::ostream& Print(std::ostream& os) const; 00027 virtual void Print(Option_t* option = "") const; 00028 00029 public: 00030 // Ntuple is treated like a C-struct with public data members and 00031 // rule-breaking field data members not prefaced by "f" and all 00032 // lowercase, by popular demand. 00033 00034 Float_t dr; // minimum transverse distance to the detector edge (m) 00035 // positive => contained within the detector. 00036 Float_t dz; // minimum longitudinal distance to the detector edge (m) 00037 // If a magnetic track fitting package has been used, "trace" variables 00038 // represents swum values in the magnetic field 00039 Float_t trace; // path length (m) between the track vtx and detector edge 00040 Float_t tracez; // path length (m) between the track vtx and z-edge(m) 00041 Int_t nplane; // number of planes extrapolated to beg/end hit planes 00042 00043 ClassDef(NtpSRFiducial,2) 00044 }; 00045 00046 00047 #endif // NTPSRFIDUCIAL_H
1.3.9.1