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

Public Member Functions | |
| NtpSRRecord () | |
| NtpSRRecord (const RecCandHeader &header) | |
| virtual | ~NtpSRRecord () |
| virtual std::ostream & | Print (std::ostream &os) const |
| virtual void | Print (Option_t *option="") const |
| void | Clear (Option_t *option="") |
| void | ClearStrips (Option_t *option="") |
Public Attributes | |
| NtpSREventSummary | evthdr |
| NtpSRShieldSummary | vetohdr |
| NtpSRCosmicRay | crhdr |
| NtpSRDmxStatus | dmxstatus |
| NtpSRDetStatus | detstatus |
| NtpSRTimeStatus | timestatus |
| NtpSRCalStatus | calstatus |
| NtpSRDataQuality | dataquality |
| TClonesArray * | deadchips |
| TClonesArray * | vetostp |
| TClonesArray * | vetoexp |
| TClonesArray * | stp |
| TClonesArray * | slc |
| TClonesArray * | clu |
| TClonesArray * | shw |
| TClonesArray * | trk |
| TClonesArray * | evt |
Private Member Functions | |
| void | Init () |
|
|
Definition at line 27 of file NtpSRRecord.cxx. References MSG. 00027 : RecRecordImp<RecCandHeader>(),deadchips(0),vetostp(0),vetoexp(0),stp(0), 00028 slc(0),clu(0),shw(0),trk(0),evt(0) { 00029 // Purpose: Default constructor 00030 00031 MSG("NtpSR",Msg::kVerbose) << "NtpSRRecord def ctor at " << this << endl; 00032 this -> Init(); 00033 }
|
|
|
Definition at line 35 of file NtpSRRecord.cxx. 00035 : 00036 RecRecordImp<RecCandHeader>(hdr),deadchips(0),vetostp(0),vetoexp(0),stp(0),slc(0),clu(0),shw(0),trk(0), 00037 evt(0) { 00038 // Purpose: Normal constructor 00039 00040 MSG("NtpSR",Msg::kVerbose) << "NtpSRRecord normal ctor at " << this << endl; 00041 this -> Init(); 00042 }
|
|
|
Definition at line 44 of file NtpSRRecord.cxx. References clu, deadchips, evt, RecArrayAllocator::Instance(), MSG, RecArrayAllocator::ReleaseArray(), shw, slc, stp, trk, vetoexp, and vetostp. 00044 {
00045 // Purpose: Destructor
00046
00047 MSG("NtpSR",Msg::kVerbose) << "NtpSRRecord dtor at " << this << endl;
00048 // Release arrays back to TClonesArray pool for reuse
00049 // Allocated memory of stored objects is retrieved via object Clear call
00050 RecArrayAllocator& allocator = RecArrayAllocator::Instance();
00051 if ( deadchips ){ allocator.ReleaseArray(deadchips); deadchips = 0; }
00052 if ( vetostp ) { allocator.ReleaseArray(vetostp); vetostp = 0; }
00053 if ( vetoexp ) { allocator.ReleaseArray(vetoexp); vetoexp = 0; }
00054 if ( stp ) { allocator.ReleaseArray(stp); stp = 0; }
00055 if ( slc ) { allocator.ReleaseArray(slc); slc = 0; }
00056 if ( clu ) { allocator.ReleaseArray(clu); clu = 0; }
00057 if ( shw ) { allocator.ReleaseArray(shw); shw = 0; }
00058 if ( trk ) { allocator.ReleaseArray(trk); trk = 0; }
00059 if ( evt ) { allocator.ReleaseArray(evt); evt = 0; }
00060
00061 }
|
|
|
Definition at line 63 of file NtpSRRecord.cxx. References clu, deadchips, evt, shw, slc, stp, trk, vetoexp, and vetostp. Referenced by ClearStrips(). 00063 {
00064 // Purpose: Clear memory allocated to arrays so that record can
00065 // be reused.
00066
00067 if ( deadchips ) { deadchips->Clear("C"); }
00068 if ( vetostp ) { vetostp -> Clear("C"); }
00069 if ( vetoexp ) { vetoexp -> Clear("C"); }
00070 if ( stp ) { stp -> Clear("C"); }
00071 if ( slc ) { slc -> Clear("C"); }
00072 if ( clu ) { clu -> Clear("C"); }
00073 if ( shw ) { shw -> Clear("C"); }
00074 if ( trk ) { trk -> Clear("C"); }
00075 if ( evt ) { evt -> Clear("C"); }
00076
00077 }
|
|
|
Definition at line 79 of file NtpSRRecord.cxx. References Clear(), NtpSRCluster::ClearStrips(), stp, vetoexp, and vetostp. 00079 {
00080 // Purpose: Clear strip data from record to reduce size
00081
00082 if ( vetostp ) { vetostp -> Clear("C"); } // clear array and contents
00083 if ( vetoexp ) { vetoexp -> Clear("C"); } // clear array and contents
00084 if ( stp ) { stp -> Clear("C"); } // clear array and contents
00085
00086 if ( slc ) {
00087 TClonesArray& slicearray = *(slc);
00088 for ( int islc = 0; islc <= slicearray.GetLast(); islc++ ) {
00089 NtpSRSlice* ntpslice = dynamic_cast<NtpSRSlice*>(slicearray.At(islc));
00090 ntpslice -> ClearStrips();
00091 }
00092 }
00093
00094 if( clu ) {
00095 TClonesArray& clusterarray = *(clu);
00096 for ( int iclu = 0; iclu <= clusterarray.GetLast(); iclu++ ) {
00097 NtpSRCluster* ntpcluster =
00098 dynamic_cast<NtpSRCluster*>(clusterarray.At(iclu));
00099 ntpcluster->ClearStrips();
00100 }
00101 }
00102
00103 if ( shw ) {
00104 TClonesArray& showerarray = *(shw);
00105 for ( int ishw = 0; ishw <= showerarray.GetLast(); ishw++ ) {
00106 NtpSRShower* ntpshower=dynamic_cast<NtpSRShower*>(showerarray.At(ishw));
00107 ntpshower -> ClearStrips();
00108 }
00109 }
00110
00111 if ( trk ) {
00112 TClonesArray& trackarray = *(trk);
00113 for ( int itrk = 0; itrk <= trackarray.GetLast(); itrk++ ) {
00114 NtpSRTrack* ntptrack=dynamic_cast<NtpSRTrack*>(trackarray.At(itrk));
00115 ntptrack -> ClearStrips();
00116 }
00117 }
00118
00119 if ( evt ) {
00120 TClonesArray& eventarray = *(evt);
00121 for ( int ievt = 0; ievt <= eventarray.GetLast(); ievt++ ) {
00122 NtpSREvent* ntpevent=dynamic_cast<NtpSREvent*>(eventarray.At(ievt));
00123 ntpevent -> ClearStrips();
00124 }
00125 }
00126 }
|
|
|
Definition at line 128 of file NtpSRRecord.cxx. References clu, deadchips, evt, RecArrayAllocator::GetArray(), RecArrayAllocator::Instance(), RecRecordImp< RecCandHeader >::SetClearable(), shw, slc, stp, trk, vetoexp, and vetostp. Referenced by NtpSRRecord(). 00128 {
00129 //
00130 // Purpose: Initialize ntuple TClonesArrays
00131 //
00132
00133 // Set variable in record base class to indicate that it is possible
00134 // to recover dynamic memory using Clear() method for this record type
00135 SetClearable(true);
00136
00137 RecArrayAllocator& allocator = RecArrayAllocator::Instance();
00138 if ( !deadchips ) deadchips = allocator.GetArray("NtpSRDeadChip");
00139 if ( !vetostp ) vetostp = allocator.GetArray("NtpSRShieldStrip");
00140 if ( !vetoexp ) vetoexp = allocator.GetArray("NtpSRShieldExpected");
00141 if ( !stp ) stp = allocator.GetArray("NtpSRStrip");
00142 if ( !slc ) slc = allocator.GetArray("NtpSRSlice");
00143 if ( !clu ) clu = allocator.GetArray("NtpSRCluster");
00144 if ( !shw ) shw = allocator.GetArray("NtpSRShower");
00145 if ( !trk ) trk = allocator.GetArray("NtpSRTrack");
00146 if ( !evt ) evt = allocator.GetArray("NtpSREvent");
00147
00148 }
|
|
|
Reimplemented from RecRecordImp< RecCandHeader >. Definition at line 196 of file NtpSRRecord.cxx. References Print(). 00196 {
00197 //
00198 // Purpose: Print record in form supported by TObject::Print
00199 //
00200
00201 Print(std::cout);
00202 return;
00203
00204 }
|
|
|
Reimplemented from RecRecordImp< RecCandHeader >. Definition at line 150 of file NtpSRRecord.cxx. References evthdr, NtpSREventSummary::Print(), and RecRecordImp< T >::Print(). Referenced by Print(). 00150 {
00151 //
00152 // Purpose: Print status of ntuple record on ostream
00153 //
00154
00155 os << "NtpSRRecord::Print" << endl;
00156 RecRecordImp<RecCandHeader>::Print(os);
00157
00158 evthdr.Print(os);
00159
00160 if ( slc ) {
00161 TClonesArray& slicearray = *(slc);
00162 for ( int islc = 0; islc <= slicearray.GetLast(); islc++ ) {
00163 NtpSRSlice* ntpslice = dynamic_cast<NtpSRSlice*>(slicearray.At(islc));
00164 ntpslice -> Print(os);
00165 }
00166 }
00167
00168 if ( shw ) {
00169 TClonesArray& showerarray = *(shw);
00170 for ( int ishw = 0; ishw <= showerarray.GetLast(); ishw++ ) {
00171 NtpSRShower* ntpshower=dynamic_cast<NtpSRShower*>(showerarray.At(ishw));
00172 ntpshower -> Print(os);
00173 }
00174 }
00175
00176 if ( trk ) {
00177 TClonesArray& trackarray = *(trk);
00178 for ( int itrk = 0; itrk <= trackarray.GetLast(); itrk++ ) {
00179 NtpSRTrack* ntptrack=dynamic_cast<NtpSRTrack*>(trackarray.At(itrk));
00180 ntptrack -> Print(os);
00181 }
00182 }
00183
00184 if ( evt ) {
00185 TClonesArray& eventarray = *(evt);
00186 for ( int ievt = 0; ievt <= eventarray.GetLast(); ievt++ ) {
00187 NtpSREvent* ntpevent=dynamic_cast<NtpSREvent*>(eventarray.At(ievt));
00188 ntpevent -> Print(os);
00189 }
00190 }
00191
00192 return os;
00193
00194 }
|
|
|
Definition at line 61 of file NtpSRRecord.h. Referenced by NtpSRModule::Reco(). |
|
|
Definition at line 69 of file NtpSRRecord.h. Referenced by Clear(), SntpHelpers::GetCluster(), Init(), MadBase::LoadCluster(), ANtpRecoNtpManipulator::SetRecord(), and ~NtpSRRecord(). |
|
|
Definition at line 57 of file NtpSRRecord.h. Referenced by NtpSRModule::Reco(), and ANtpRecoNtpManipulator::SetRecord(). |
|
|
Definition at line 62 of file NtpSRRecord.h. Referenced by NtpSRModule::Reco(). |
|
|
Definition at line 64 of file NtpSRRecord.h. Referenced by Clear(), Init(), NtpSRModule::Reco(), and ~NtpSRRecord(). |
|
|
Definition at line 59 of file NtpSRRecord.h. Referenced by ANtpEventInfoAna::Analyze(), MadBase::GetEntry(), and NtpSRModule::Reco(). |
|
|
Definition at line 58 of file NtpSRRecord.h. Referenced by ANtpEventInfoAna::Analyze(), MadBase::GetEntry(), NtpSRModule::Reco(), and ANtpRecoNtpManipulator::SetRecord(). |
|
|
Definition at line 72 of file NtpSRRecord.h. Referenced by Clear(), SntpHelpers::GetEvent(), Init(), MoqBase::LoadEvent(), MadBase::LoadEvent(), MadScanDisplay::PrevFidNoTrk(), MadScanDisplay::PrevFidTrk(), MadScanDisplay::PrevPass(), MadEvDisplay::PrevPass(), ANtpRecoNtpManipulator::SetRecord(), and ~NtpSRRecord(). |
|
|
|
Definition at line 70 of file NtpSRRecord.h. Referenced by Clear(), MCMonitorCosmicHistograms::FillHistsReco(), SntpHelpers::GetShower(), Init(), MoqBase::LoadShower(), MadBase::LoadShower(), ANtpRecoNtpManipulator::SetRecord(), and ~NtpSRRecord(). |
|
|
Definition at line 68 of file NtpSRRecord.h. Referenced by Clear(), SntpHelpers::GetSlice(), Init(), MoqBase::LoadSlice(), MadBase::LoadSlice(), ANtpRecoNtpManipulator::SetRecord(), and ~NtpSRRecord(). |
|
|
|
Definition at line 60 of file NtpSRRecord.h. |
|
|
Definition at line 71 of file NtpSRRecord.h. Referenced by Clear(), MCMonitorCosmicHistograms::FillHistsReco(), MCMonitorCosmicHistograms::FillHistsReTr(), SntpHelpers::GetTrack(), Init(), MoqBase::LoadTrack(), MadBase::LoadTrack(), ANtpRecoNtpManipulator::SetRecord(), and ~NtpSRRecord(). |
|
|
Definition at line 66 of file NtpSRRecord.h. Referenced by Clear(), ClearStrips(), Init(), NtpSRModule::Reco(), and ~NtpSRRecord(). |
|
|
Definition at line 56 of file NtpSRRecord.h. Referenced by MoqBase::GetEntry(), MadBase::GetEntry(), SntpHelpers::GetShieldStrip(), NtpSRModule::Reco(), ANtpRecoNtpManipulator::SetRecord(), and SntpHelpers::shieldSummary(). |
|
|
Definition at line 65 of file NtpSRRecord.h. Referenced by Clear(), ClearStrips(), MadScanDisplay::Display(), MadEvDisplay::Display(), SntpHelpers::GetShieldStrip(), Init(), MoqBase::LoadShieldStrip(), MadBase::LoadShieldStrip(), NtpSRModule::Reco(), ANtpRecoNtpManipulator::SetRecord(), and ~NtpSRRecord(). |
1.3.9.1