#include <NtpFitSARecord.h>
Inheritance diagram for NtpFitSARecord:

Public Member Functions | |
| NtpFitSARecord () | |
| NtpFitSARecord (const RecCandHeader &header) | |
| virtual | ~NtpFitSARecord () |
| virtual std::ostream & | Print (std::ostream &os) const |
| virtual void | Print (const Option_t *option="") const |
| ClassDef (NtpFitSARecord, 2) | |
Public Attributes | |
| Int_t | ntrack |
| TClonesArray * | fitsa |
Private Member Functions | |
| void | Init () |
|
|
Definition at line 28 of file NtpFitSARecord.cxx. 00028 : 00029 RecRecordImp<RecCandHeader>(),fitsa(0) 00030 { 00031 // Purpose: Default constructor 00032 this -> Init(); 00033 }
|
|
|
Definition at line 35 of file NtpFitSARecord.cxx. References Init(). 00035 : 00036 RecRecordImp<RecCandHeader>(hdr),fitsa(0) 00037 { 00038 // Purpose: Normal constructor 00039 00040 this -> Init(); 00041 }
|
|
|
Definition at line 43 of file NtpFitSARecord.cxx. References fitsa, RecArrayAllocator::Instance(), and RecArrayAllocator::ReleaseArray(). 00044 {
00045 // Purpose: Destructor
00046
00047 // Release arrays back to TClonesArray pool for reuse
00048 // Allocated memory of stored objects is retrieved via object Clear call
00049 RecArrayAllocator& allocator = RecArrayAllocator::Instance();
00050 if ( fitsa ) { allocator.ReleaseArray(fitsa); fitsa = 0; }
00051 }
|
|
||||||||||||
|
|
|
|
Definition at line 53 of file NtpFitSARecord.cxx. References fitsa, RecArrayAllocator::GetArray(), RecArrayAllocator::Instance(), and ntrack. Referenced by NtpFitSARecord(). 00053 {
00054 //
00055 // Purpose: Initialize ntuple TClonesArrays
00056 //
00057
00058 ntrack = 0;
00059 if ( !fitsa )
00060 {
00061 RecArrayAllocator& allocator = RecArrayAllocator::Instance();
00062 fitsa = allocator.GetArray("NtpFitSA");
00063 }
00064 }
|
|
|
Definition at line 103 of file NtpFitSARecord.cxx. References Print(). 00103 {
00104 //
00105 // Purpose: Print record in form supported by TObject::Print
00106 //
00107
00108 Print(std::cout);
00109 return;
00110
00111 }
|
|
|
Reimplemented from RecRecordImp< RecCandHeader >. Definition at line 66 of file NtpFitSARecord.cxx. References fitsa, and RecRecordImp< T >::Print(). Referenced by Print(). 00066 {
00067 //
00068 // Purpose: Print status of ntuple record on ostream
00069 //
00070
00071 os << "----------------------------------------------------------------" << std::endl;
00072 os << "NtpFitSARecord::Print" << endl;
00073 RecRecordImp<RecCandHeader>::Print(os);
00074
00075 if(!fitsa)
00076 {
00077 return os;
00078 }
00079
00080
00081 const int nfit = fitsa -> GetEntries();
00082
00083 os << "Printing " << nfit << " NtpFitSA records" << std::endl;
00084
00085 for(int i = 0; i < nfit; ++i)
00086 {
00087 NtpFitSA* fit = dynamic_cast<NtpFitSA *> (fitsa -> At(i));
00088 if(!fit)
00089 {
00090 os << "No NtpFitSA found at index " << i << std::endl;
00091 continue;
00092 }
00093
00094 fit -> Print(os);
00095 }
00096
00097 os << "----------------------------------------------------------------" << std::endl;
00098
00099 return os;
00100
00101 }
|
|
|
Definition at line 42 of file NtpFitSARecord.h. Referenced by NuExtraction::ExtractSAFitInfo(), NtpFitSAModule::FillNtpFitSA(), Init(), Print(), and ~NtpFitSARecord(). |
|
|
Definition at line 41 of file NtpFitSARecord.h. Referenced by NtpFitSAModule::FillNtpFitSA(), and Init(). |
1.3.9.1