00001 00002 // 00003 // CandTrackSRNtuple 00004 // 00005 // CandTrackSRNtuple is a demo class for how to write a specialized track 00006 // ntuple class deriving from base class NtupleBase/NtpCandTrack. The 00007 // CandTrackSRNtuple class would reside in package CandTrackSR. 00008 // 00009 // Author: S. Kasahara 12/02 00010 // 00012 00013 #ifndef CANDTRACKSRNTUPLE_H 00014 #define CANDTRACKSRNTUPLE_H 00015 00016 #include <iosfwd> 00017 00018 #ifndef NTPCANDTRACK_H 00019 #include "NtupleBase/NtpCandTrack.h" // base class 00020 #endif 00021 00022 class CandTrackSRHandle; 00023 00024 class CandTrackSRNtuple : public NtpCandTrack { 00025 00026 public: 00027 00028 CandTrackSRNtuple() : fNTimeFitDigit(-1) {} // def const'r 00029 CandTrackSRNtuple(const CandTrackSRHandle& track); 00030 00031 virtual ~CandTrackSRNtuple() {} 00032 00033 // State testing methods 00034 virtual std::ostream& Print(std::ostream& os) const; 00035 virtual void Print(const Option_t* option = "") const; 00036 00037 // State changing methods 00038 virtual void Clear(Option_t* option="") { NtpCandTrack::Clear(option); } 00039 00040 protected: 00041 00042 private: 00043 00044 Int_t fNTimeFitDigit; // # of digits used to determine timing 00045 00046 00047 ClassDef(CandTrackSRNtuple,1) 00048 }; 00049 00050 #endif // CANDTRACKSRNTUPLE_H 00051 00052 00053