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

CandTrackSRNtuple.cxx

Go to the documentation of this file.
00001 
00002 //
00003 // CandTrackSRNtuple
00004 //
00005 // CandTrackSRNtuple is a demo class for a MINOS CandTrackSR ntuple that
00006 // derives from NtupleBase/NtpCandTrack.  This class would reside in the
00007 // CandTrackSR package.
00008 //
00009 // Author:  S. Kasahara   12/02
00010 //
00012 
00013 #include <iostream>
00014 using std::endl;
00015 
00016 #include "CandTrackSR/CandTrackSRHandle.h"
00017 #include "NtupleBase/test/CandTrackSRNtuple.h"
00018 
00019 ClassImp(CandTrackSRNtuple)
00020 
00021 ostream& operator << (ostream& os, const CandTrackSRNtuple& trk) 
00022                                                { return trk.Print(os); }
00023 
00024 // Definition of methods (alphabetical order)
00025 // ***************************************************
00026 
00027 CandTrackSRNtuple::CandTrackSRNtuple(const CandTrackSRHandle& track) : 
00028               NtpCandTrack(track),fNTimeFitDigit(-1) {
00029   //
00030   //  Purpose:  Constructor creates an ntuple from an existing 
00031   //            CandTrackSRHandle.
00032   //
00033   //  Arguments: reference to CandTrackSRHandle (or derived class) object.
00034   //
00035   //  Return:  n/a.
00036   //
00037   //  Contact:   S. Kasahara
00038   // 
00039 
00040   fNTimeFitDigit = track.GetNTimeFitDigit();
00041 
00042 }
00043 
00044 std::ostream& CandTrackSRNtuple::Print(std::ostream& os) const {
00045   //
00046   //  Purpose:  Print status of ntuple record on ostream.
00047   //
00048   //  Arguments: os ostream to display on.
00049   //
00050   //  Return:  ostream reference.
00051   //
00052   //  Contact:   S. Kasahara
00053   // 
00054 
00055   NtpCandTrack::Print(os);
00056   os << "NTimeFitDigit " << fNTimeFitDigit << "." << endl;
00057   
00058   return os;
00059 
00060 }
00061 
00062 void CandTrackSRNtuple::Print(const Option_t* /* option */) const {
00063   //
00064   //  Purpose:  Print track in form supported by TObject::Print.
00065   //
00066   //  Arguments: option (not used).
00067   //
00068   //  Return:  none.
00069   //
00070   //  Contact:   S. Kasahara
00071   // 
00072 
00073   Print(std::cout);
00074   return;
00075 
00076 }
00077 
00078 
00079 
00080 
00081 
00082 
00083 
00084 
00085 
00086 
00087 

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