ANtpRecoNtpManipulator Class Reference

#include <ANtpRecoNtpManipulator.h>

List of all members.

Public Member Functions

 ANtpRecoNtpManipulator ()
 ANtpRecoNtpManipulator (NtpSRRecord *record, NtpMCRecord *mcRecord=0, NtpTHRecord *thRecord=0)
 ANtpRecoNtpManipulator (NtpStRecord *record)
virtual ~ANtpRecoNtpManipulator ()
ANtpEventManipulatorGetEventManipulator () const
ANtpSnarlManipulatorGetSnarlManipulator () const
ANtpSliceManipulatorGetSliceManipulator () const
ANtpMCManipulatorGetMCManipulator () const
NtpSREventSummary GetSnarlEventSummary () const
NtpSRShieldStripGetShieldStrip (Int_t index)
NtpSRShieldSummary GetSnarlShieldSummary () const
NtpSRCosmicRay GetCosmicRayInfo () const
NtpSRDmxStatus GetDmxStatusInfo () const
NtpSRDataQuality GetDataQuality () const
Int_t GetRun () const
Int_t GetSubRun () const
Int_t GetSnarl () const
Int_t GetTriggerSource () const
Int_t GetSpillType () const
TString GetReleaseType () const
TString GetMCType () const
TString GetReleaseMCType () const
NtpStRecordGetNtpStRecord () const
TClonesArray * GetStripArray () const
TClonesArray * GetVetoStripArray () const
TClonesArray * GetEventArray () const
TClonesArray * GetShowerArray () const
TClonesArray * GetClusterArray () const
TClonesArray * GetTrackArray () const
TClonesArray * GetSliceArray () const
TClonesArray * GetStdHepArray () const
TClonesArray * GetMCArray () const
TClonesArray * GetTHStpArray () const
TClonesArray * GetTHShwArray () const
TClonesArray * GetTHEvtArray () const
TClonesArray * GetTHTrkArray () const
void SetPrimaryTrackCriteria (Int_t useNPlanes, Int_t useLength, Int_t usePH)
void SetPrimaryShowerCriteria (Int_t useNPlanes, Int_t usePH)
void SetRecord (NtpStRecord *record)
void SetRecord (NtpSRRecord *record, NtpMCRecord *mcRecord=0, NtpTHRecord *thRecord=0)

Private Attributes

ANtpEventManipulatorfEventManipulator
ANtpSnarlManipulatorfSnarlManipulator
ANtpSliceManipulatorfSliceManipulator
ANtpMCManipulatorfMCManipulator
NtpMCRecordfNtpMCRecord
NtpSRRecordfNtpSRRecord
NtpSRCosmicRay fNtpSRCosmicRay
NtpSRDmxStatus fNtpSRDmxStatus
NtpSRDataQuality fNtpSRDataQuality
NtpSREventSummary fNtpSREventSummary
NtpSRShieldStripfNtpSRShieldStrip
NtpSRShieldSummary fNtpSRShieldSummary
NtpTHRecordfNtpTHRecord
NtpStRecordfNtpStRecord
Int_t fRun
Int_t fSubRun
Int_t fSnarl
Int_t fTriggerSource
Int_t fSpillType
TString fReleaseType
TString fMCType
TString fReleaseMCType
TClonesArray * fEventArray
TClonesArray * fTrackArray
TClonesArray * fShowerArray
TClonesArray * fClusterArray
TClonesArray * fStripArray
TClonesArray * fVetoStripArray
TClonesArray * fSliceArray
TClonesArray * fMCArray
TClonesArray * fStdArray
TClonesArray * fTHShwArray
TClonesArray * fTHTrkArray
TClonesArray * fTHStpArray
TClonesArray * fTHEvtArray

Detailed Description

Definition at line 36 of file ANtpRecoNtpManipulator.h.


Constructor & Destructor Documentation

ANtpRecoNtpManipulator::ANtpRecoNtpManipulator (  ) 

Definition at line 32 of file ANtpRecoNtpManipulator.cxx.

References Msg::kDebug, and MSG.

00032                                                :
00033   fEventManipulator(0),
00034   fSnarlManipulator(0),
00035   fSliceManipulator(0),
00036   fMCManipulator(0),
00037   fNtpMCRecord(0),
00038   fNtpSRRecord(0),
00039   fNtpSRShieldStrip(0),
00040   fNtpTHRecord(0)
00041 {
00042   fEventManipulator = new ANtpEventManipulator();
00043   fSnarlManipulator = new ANtpSnarlManipulator();
00044   fSliceManipulator = new ANtpSliceManipulator();
00045   fMCManipulator = new ANtpMCManipulator();
00046     
00047   MSG("ANtpRecoNtpManipulator", Msg::kDebug) << "ANtpRecoNtpManipulator::Constructor" << endl;
00048   
00049 }

ANtpRecoNtpManipulator::ANtpRecoNtpManipulator ( NtpSRRecord record,
NtpMCRecord mcRecord = 0,
NtpTHRecord thRecord = 0 
)

Definition at line 52 of file ANtpRecoNtpManipulator.cxx.

References fEventArray, fEventManipulator, fMCArray, fMCManipulator, fNtpMCRecord, fNtpSRRecord, fNtpTHRecord, fRun, fShowerArray, fSliceArray, fSliceManipulator, fSnarl, fSnarlManipulator, fSpillType, fStdArray, fStripArray, fSubRun, fTHEvtArray, fTHShwArray, fTHStpArray, fTHTrkArray, fTrackArray, fTriggerSource, RecRecordImp< T >::GetHeader(), RecPhysicsHeader::GetRemoteSpillType(), RecDataHeader::GetRun(), RecPhysicsHeader::GetSnarl(), RecDataHeader::GetSubRun(), RecPhysicsHeader::GetTrigSrc(), header, ANtpMCManipulator::Initialize(), ANtpEventManipulator::Initialize(), ANtpSliceManipulator::Initialize(), ANtpSnarlManipulator::Initialize(), Msg::kDebug, NtpMCRecord::mc, MSG, NtpMCRecord::stdhep, NtpTHRecord::thevt, NtpTHRecord::thshw, NtpTHRecord::thstp, and NtpTHRecord::thtrk.

00054                                                                       :
00055   fEventManipulator(0),
00056   fSnarlManipulator(0),
00057   fSliceManipulator(0),
00058   fMCManipulator(0),
00059   fNtpMCRecord(mcRecord),
00060   fNtpSRRecord(record),
00061   fNtpSRCosmicRay(record->crhdr),
00062   fNtpSRDmxStatus(record->dmxstatus),
00063   fNtpSREventSummary(record->evthdr),
00064   fNtpSRShieldStrip(0),
00065   fNtpSRShieldSummary(record->vetohdr),
00066   fNtpTHRecord(thRecord),
00067   fNtpStRecord(0),
00068   fEventArray(record->evt),
00069   fTrackArray(record->trk),
00070   fShowerArray(record->shw),
00071   fStripArray(record->stp),
00072   fVetoStripArray(record->vetostp),
00073   fSliceArray(record->slc),
00074   fMCArray(0),
00075   fStdArray(0),
00076   fTHShwArray(0),
00077   fTHTrkArray(0),
00078   fTHStpArray(0),
00079   fTHEvtArray(0)
00080 {
00081   if(fNtpSRRecord){
00082     //get a RecCandHeader to access the run and snarl info
00083     const RecCandHeader &header = record->GetHeader();
00084     
00085     fRun = header.GetRun();
00086     fSubRun = header.GetSubRun();
00087     fSnarl = header.GetSnarl();
00088     fTriggerSource = header.GetTrigSrc();
00089     fSpillType = header.GetRemoteSpillType();
00090   }
00091   
00092   if(fNtpMCRecord){
00093     fMCArray = mcRecord->mc;
00094     fStdArray = mcRecord->stdhep;
00095   }
00096   if(fNtpTHRecord){
00097     fTHShwArray = thRecord->thshw;
00098     fTHStpArray = thRecord->thstp;
00099     fTHTrkArray = thRecord->thtrk;
00100     fTHEvtArray = thRecord->thevt;
00101   }
00102 
00103   fEventManipulator = new ANtpEventManipulator();
00104   fSnarlManipulator = new ANtpSnarlManipulator();
00105   fSliceManipulator = new ANtpSliceManipulator();
00106   fMCManipulator = new ANtpMCManipulator();
00107 
00108   fEventManipulator->Initialize(fEventArray, fTrackArray, fShowerArray, fStripArray);
00109   fSnarlManipulator->Initialize(fEventArray, fTrackArray, fShowerArray, fStripArray);
00110   fSliceManipulator->Initialize(fSliceArray, fStripArray);
00111   fMCManipulator->Initialize(fMCArray, fStdArray, fTHEvtArray, fTHTrkArray, fTHShwArray, 
00112                              fTHStpArray);
00113 
00114   MSG("ANtpRecoNtpManipulator", Msg::kDebug) << "ANtpRecoNtpManipulator::Constructor" << endl;    
00115 }

ANtpRecoNtpManipulator::ANtpRecoNtpManipulator ( NtpStRecord record  ) 

Definition at line 118 of file ANtpRecoNtpManipulator.cxx.

References bfld::AsString(), NtpMCGenInfo::codename, fEventArray, fEventManipulator, fMCArray, fMCManipulator, fNtpStRecord, fReleaseMCType, fRun, fShowerArray, fSliceArray, fSliceManipulator, fSnarl, fSnarlManipulator, fSpillType, fStdArray, fStripArray, fSubRun, fTHEvtArray, fTHShwArray, fTHStpArray, fTHTrkArray, fTrackArray, fTriggerSource, NtpMCSummary::geninfo, RecRecordImp< T >::GetHeader(), NtpStRecord::GetRelease(), RecPhysicsHeader::GetRemoteSpillType(), RecDataHeader::GetRun(), VldContext::GetSimFlag(), RecPhysicsHeader::GetSnarl(), RecDataHeader::GetSubRun(), RecPhysicsHeader::GetTrigSrc(), RecRecordImp< T >::GetVldContext(), header, ANtpMCManipulator::Initialize(), ANtpEventManipulator::Initialize(), ANtpSliceManipulator::Initialize(), ANtpSnarlManipulator::Initialize(), Msg::kDebug, SimFlag::kMC, NtpStRecord::mchdr, and MSG.

00118                                                                   :
00119   fEventManipulator(0),
00120   fSnarlManipulator(0),
00121   fSliceManipulator(0),
00122   fMCManipulator(0),
00123   fNtpMCRecord(0),
00124   fNtpSRRecord(0),
00125   fNtpSRCosmicRay(record->crhdr),
00126   fNtpSRDmxStatus(record->dmxstatus),
00127   fNtpSRDataQuality(record->dataquality),
00128   fNtpSREventSummary(record->evthdr),
00129   fNtpSRShieldStrip(0),
00130   fNtpSRShieldSummary(record->vetohdr),
00131   fNtpTHRecord(0),
00132   fNtpStRecord(record),
00133   fEventArray(record->evt),
00134   fTrackArray(record->trk),
00135   fShowerArray(record->shw),
00136   fClusterArray(record->clu),
00137   fStripArray(record->stp),
00138   fVetoStripArray(record->vetostp),
00139   fSliceArray(record->slc),
00140   fMCArray(record->mc),
00141   fStdArray(record->stdhep),
00142   fTHShwArray(record->thshw),
00143   fTHTrkArray(record->thtrk),
00144   fTHStpArray(record->thstp),
00145   fTHEvtArray(record->thevt)  
00146 {
00147     if(fNtpStRecord){
00148         //get a RecCandHeader to access the run and snarl info
00149         const RecCandHeader &header = record->GetHeader();
00150         
00151         fRun = header.GetRun();
00152         fSubRun = header.GetSubRun();
00153         fSnarl = header.GetSnarl();
00154         fTriggerSource = header.GetTrigSrc();
00155         fSpillType = header.GetRemoteSpillType();
00156         
00157         string relName = record->GetTitle();
00158         string mcinfo = "";
00159         if(record->GetVldContext()->GetSimFlag() == SimFlag::kMC){
00160           mcinfo = "Daikon";
00161           string temp = record->mchdr.geninfo.codename;
00162           if(temp.size() != 0)   mcinfo = temp;
00163         }
00164         ReleaseType::Release_t release = record->GetRelease();
00165         //Determine Reco Release type member
00166         string relMCName = ReleaseType::AsString(release);
00167         fReleaseMCType = relMCName.c_str();
00168         
00169     }//if(fNtpStRecord)
00170     
00171     
00172     fEventManipulator = new ANtpEventManipulator();
00173     fSnarlManipulator = new ANtpSnarlManipulator();
00174     fSliceManipulator = new ANtpSliceManipulator();
00175     fMCManipulator = new ANtpMCManipulator();
00176     
00177     fEventManipulator->Initialize(fEventArray, 
00178                                   fTrackArray, 
00179                                   fShowerArray, 
00180                                   fStripArray);
00181     fSnarlManipulator->Initialize(fEventArray, 
00182                                   fTrackArray, 
00183                                   fShowerArray, 
00184                                   fStripArray);
00185     fSliceManipulator->Initialize(fSliceArray, 
00186                                   fStripArray);
00187     fMCManipulator->Initialize(fMCArray, 
00188                                fStdArray, 
00189                                fTHEvtArray, 
00190                                fTHTrkArray, 
00191                                fTHShwArray, 
00192                                fTHStpArray);
00193     
00194     MSG("ANtpRecoNtpManipulator", Msg::kDebug) << "ANtpRecoNtpManipulator::Constructor" << endl;    
00195 }

ANtpRecoNtpManipulator::~ANtpRecoNtpManipulator (  )  [virtual]

Definition at line 198 of file ANtpRecoNtpManipulator.cxx.

References fEventManipulator, fMCManipulator, fSliceManipulator, fSnarlManipulator, Msg::kDebug, and MSG.

00199 {
00200   if(fEventManipulator) delete fEventManipulator;
00201   if(fSnarlManipulator) delete fSnarlManipulator;
00202   if(fSliceManipulator) delete fSliceManipulator;
00203   if(fMCManipulator) delete fMCManipulator;
00204 
00205   MSG("ANtpRecoNtpManipulator", Msg::kDebug) << "ANtpRecoNtpManipulator::Destructor" << endl;
00206   
00207 }


Member Function Documentation

TClonesArray * ANtpRecoNtpManipulator::GetClusterArray (  )  const

Definition at line 352 of file ANtpRecoNtpManipulator.cxx.

References fClusterArray.

Referenced by CondensedNtpModuleNC::Ana(), and NuExtraction::ExtractNCInfo().

00353 {
00354   return fClusterArray;
00355 }

NtpSRCosmicRay ANtpRecoNtpManipulator::GetCosmicRayInfo (  )  const

Definition at line 256 of file ANtpRecoNtpManipulator.cxx.

References fNtpSRCosmicRay.

Referenced by CondensedNtpModuleAtm::Ana().

00257 {
00258   return fNtpSRCosmicRay;
00259 }

NtpSRDataQuality ANtpRecoNtpManipulator::GetDataQuality (  )  const

Definition at line 268 of file ANtpRecoNtpManipulator.cxx.

References fNtpSRDataQuality.

Referenced by ANtpInfoObjectFiller::FillHeaderInformation().

00269 {
00270   return fNtpSRDataQuality;
00271 }

NtpSRDmxStatus ANtpRecoNtpManipulator::GetDmxStatusInfo (  )  const

Definition at line 262 of file ANtpRecoNtpManipulator.cxx.

References fNtpSRDmxStatus.

Referenced by CondensedNtpModuleAtm::Ana(), and ANtpInfoObjectFiller::FillHeaderInformation().

00263 {
00264   return fNtpSRDmxStatus;
00265 }

TClonesArray * ANtpRecoNtpManipulator::GetEventArray (  )  const

Definition at line 340 of file ANtpRecoNtpManipulator.cxx.

References fEventArray.

Referenced by ANtpInfoObjectFillerNC::FillEventTimingAndActivityInformation().

00341 {
00342   return fEventArray;
00343 }

ANtpEventManipulator * ANtpRecoNtpManipulator::GetEventManipulator (  )  const
TClonesArray * ANtpRecoNtpManipulator::GetMCArray (  )  const

Definition at line 376 of file ANtpRecoNtpManipulator.cxx.

References fMCArray.

Referenced by CondensedNtpModule::Ana().

00377 {
00378   return fMCArray;
00379 }

ANtpMCManipulator * ANtpRecoNtpManipulator::GetMCManipulator (  )  const
TString ANtpRecoNtpManipulator::GetMCType (  )  const

Definition at line 310 of file ANtpRecoNtpManipulator.cxx.

References fMCType.

00311 {
00312   return fMCType;
00313 }

NtpStRecord * ANtpRecoNtpManipulator::GetNtpStRecord (  )  const
TString ANtpRecoNtpManipulator::GetReleaseMCType (  )  const
TString ANtpRecoNtpManipulator::GetReleaseType (  )  const

Definition at line 304 of file ANtpRecoNtpManipulator.cxx.

References fReleaseType.

00305 {
00306   return fReleaseType;
00307 }

Int_t ANtpRecoNtpManipulator::GetRun (  )  const

Definition at line 274 of file ANtpRecoNtpManipulator.cxx.

References fRun.

Referenced by ANtpInfoObjectFiller::FillHeaderInformation().

00275 {
00276   return fRun;
00277 }

NtpSRShieldStrip * ANtpRecoNtpManipulator::GetShieldStrip ( Int_t  index  ) 

Definition at line 240 of file ANtpRecoNtpManipulator.cxx.

References fNtpSRShieldStrip, and fVetoStripArray.

00241 {
00242   fNtpSRShieldStrip = 0;
00243 
00244   fNtpSRShieldStrip = dynamic_cast<NtpSRShieldStrip *>(fVetoStripArray->At(index));
00245   
00246   return fNtpSRShieldStrip;
00247 }

TClonesArray * ANtpRecoNtpManipulator::GetShowerArray (  )  const

Definition at line 346 of file ANtpRecoNtpManipulator.cxx.

References fShowerArray.

00347 {
00348   return fShowerArray;
00349 }

TClonesArray * ANtpRecoNtpManipulator::GetSliceArray (  )  const

Definition at line 364 of file ANtpRecoNtpManipulator.cxx.

References fSliceArray.

00365 {
00366   return fSliceArray;
00367 }

ANtpSliceManipulator * ANtpRecoNtpManipulator::GetSliceManipulator (  )  const

Definition at line 222 of file ANtpRecoNtpManipulator.cxx.

References fSliceManipulator.

Referenced by ANtpInfoObjectFillerNC::FillEventTimingAndActivityInformation().

00223 {
00224   return fSliceManipulator;
00225 }

Int_t ANtpRecoNtpManipulator::GetSnarl (  )  const

Definition at line 286 of file ANtpRecoNtpManipulator.cxx.

References fSnarl.

Referenced by ANtpInfoObjectFiller::FillHeaderInformation().

00287 {
00288   return fSnarl;
00289 }

NtpSREventSummary ANtpRecoNtpManipulator::GetSnarlEventSummary (  )  const
ANtpSnarlManipulator * ANtpRecoNtpManipulator::GetSnarlManipulator (  )  const

Definition at line 216 of file ANtpRecoNtpManipulator.cxx.

References fSnarlManipulator.

00217 {
00218   return fSnarlManipulator;
00219 }

NtpSRShieldSummary ANtpRecoNtpManipulator::GetSnarlShieldSummary (  )  const

Definition at line 250 of file ANtpRecoNtpManipulator.cxx.

References fNtpSRShieldSummary.

00251 {
00252   return fNtpSRShieldSummary;
00253 }

Int_t ANtpRecoNtpManipulator::GetSpillType (  )  const

Definition at line 298 of file ANtpRecoNtpManipulator.cxx.

References fSpillType.

Referenced by ANtpInfoObjectFiller::FillHeaderInformation().

00299 {
00300   return fSpillType;
00301 }

TClonesArray * ANtpRecoNtpManipulator::GetStdHepArray (  )  const

Definition at line 370 of file ANtpRecoNtpManipulator.cxx.

References fStdArray.

Referenced by CondensedNtpModule::Ana(), ANtpTruthInfoBeamAna::Analyze(), and ANtpInfoObjectFillerNC::FillInformation().

00371 {
00372   return fStdArray;
00373 }

TClonesArray * ANtpRecoNtpManipulator::GetStripArray (  )  const
Int_t ANtpRecoNtpManipulator::GetSubRun (  )  const

Definition at line 280 of file ANtpRecoNtpManipulator.cxx.

References fSubRun.

Referenced by ANtpInfoObjectFiller::FillHeaderInformation().

00281 {
00282   return fSubRun;
00283 }

TClonesArray * ANtpRecoNtpManipulator::GetTHEvtArray (  )  const

Definition at line 394 of file ANtpRecoNtpManipulator.cxx.

References fTHEvtArray.

00395 {
00396   return fTHEvtArray;
00397 }

TClonesArray * ANtpRecoNtpManipulator::GetTHShwArray (  )  const

Definition at line 388 of file ANtpRecoNtpManipulator.cxx.

References fTHShwArray.

00389 {
00390   return fTHShwArray;
00391 }

TClonesArray * ANtpRecoNtpManipulator::GetTHStpArray (  )  const

Definition at line 382 of file ANtpRecoNtpManipulator.cxx.

References fTHStpArray.

00383 {
00384   return fTHStpArray;
00385 }

TClonesArray * ANtpRecoNtpManipulator::GetTHTrkArray (  )  const

Definition at line 400 of file ANtpRecoNtpManipulator.cxx.

References fTHTrkArray.

00401 {
00402   return fTHTrkArray;
00403 }

TClonesArray * ANtpRecoNtpManipulator::GetTrackArray (  )  const

Definition at line 358 of file ANtpRecoNtpManipulator.cxx.

References fTrackArray.

00359 {
00360   return fTrackArray;
00361 }

Int_t ANtpRecoNtpManipulator::GetTriggerSource (  )  const

Definition at line 292 of file ANtpRecoNtpManipulator.cxx.

References fTriggerSource.

Referenced by ANtpInfoObjectFiller::FillHeaderInformation().

00293 {
00294   return fTriggerSource;
00295 }

TClonesArray * ANtpRecoNtpManipulator::GetVetoStripArray (  )  const

Definition at line 334 of file ANtpRecoNtpManipulator.cxx.

References fVetoStripArray.

00335 {
00336   return fVetoStripArray;
00337 }

void ANtpRecoNtpManipulator::SetPrimaryShowerCriteria ( Int_t  useNPlanes,
Int_t  usePH 
)
void ANtpRecoNtpManipulator::SetPrimaryTrackCriteria ( Int_t  useNPlanes,
Int_t  useLength,
Int_t  usePH 
)
void ANtpRecoNtpManipulator::SetRecord ( NtpSRRecord record,
NtpMCRecord mcRecord = 0,
NtpTHRecord thRecord = 0 
)

Definition at line 425 of file ANtpRecoNtpManipulator.cxx.

References NtpSRRecord::clu, NtpSRRecord::crhdr, NtpSRRecord::dmxstatus, NtpSRRecord::evt, NtpSRRecord::evthdr, fClusterArray, fEventArray, fEventManipulator, fMCArray, fMCManipulator, fNtpMCRecord, fNtpSRCosmicRay, fNtpSRDmxStatus, fNtpSREventSummary, fNtpSRRecord, fNtpSRShieldStrip, fNtpSRShieldSummary, fNtpStRecord, fNtpTHRecord, fShowerArray, fSliceArray, fSliceManipulator, fSnarlManipulator, fStdArray, fStripArray, fTHEvtArray, fTHShwArray, fTHStpArray, fTHTrkArray, fTrackArray, fVetoStripArray, ANtpMCManipulator::Initialize(), ANtpEventManipulator::Initialize(), ANtpSliceManipulator::Initialize(), ANtpSnarlManipulator::Initialize(), NtpMCRecord::mc, NtpSRRecord::shw, NtpSRRecord::slc, NtpMCRecord::stdhep, NtpSRRecord::stp, NtpTHRecord::thevt, NtpTHRecord::thshw, NtpTHRecord::thstp, NtpTHRecord::thtrk, NtpSRRecord::trk, NtpSRRecord::vetohdr, and NtpSRRecord::vetostp.

00427 {
00428 
00429   fNtpMCRecord = mcRecord;
00430   fNtpSRRecord = record;
00431   fNtpSRCosmicRay = record->crhdr;
00432   fNtpSRDmxStatus = record->dmxstatus;
00433   fNtpSREventSummary = record->evthdr;
00434   fNtpSRShieldStrip = 0;
00435   fNtpSRShieldSummary = record->vetohdr;
00436   fNtpTHRecord = thRecord;
00437   fNtpStRecord = 0;
00438   fEventArray = record->evt;
00439   fTrackArray = record->trk;
00440   fShowerArray = record->shw;
00441   fClusterArray = record->clu;
00442   fStripArray = record->stp;
00443   fVetoStripArray = record->vetostp;
00444   fSliceArray = record->slc;
00445   fMCArray = 0;
00446   fStdArray = 0;
00447   fTHShwArray = 0;
00448   fTHStpArray = 0;
00449   fTHTrkArray = 0;
00450   fTHEvtArray = 0;
00451   
00452   if(fNtpMCRecord){
00453     fMCArray = mcRecord->mc;
00454     fStdArray = mcRecord->stdhep;
00455   }
00456   if(fNtpTHRecord){
00457     fTHShwArray = thRecord->thshw;
00458     fTHStpArray = thRecord->thstp;
00459     fTHTrkArray = thRecord->thtrk;
00460     fTHEvtArray = thRecord->thevt;
00461   }
00462 
00463   fEventManipulator->Initialize(fEventArray, fTrackArray, fShowerArray, fStripArray);
00464   fSnarlManipulator->Initialize(fEventArray, fTrackArray, fShowerArray, fStripArray);
00465   fSliceManipulator->Initialize(fSliceArray, fStripArray);
00466   fMCManipulator->Initialize(fMCArray, fStdArray, fTHShwArray, fTHStpArray, fTHEvtArray, 
00467                              fTHTrkArray);
00468 
00469   return;
00470 }

void ANtpRecoNtpManipulator::SetRecord ( NtpStRecord record  ) 

Definition at line 473 of file ANtpRecoNtpManipulator.cxx.

References NtpStRecord::clu, NtpStRecord::crhdr, NtpStRecord::dmxstatus, NtpStRecord::evt, NtpStRecord::evthdr, fClusterArray, fEventArray, fEventManipulator, fMCArray, fMCManipulator, fNtpMCRecord, fNtpSRCosmicRay, fNtpSRDmxStatus, fNtpSREventSummary, fNtpSRRecord, fNtpSRShieldStrip, fNtpSRShieldSummary, fNtpStRecord, fNtpTHRecord, fShowerArray, fSliceArray, fSliceManipulator, fSnarlManipulator, fStdArray, fStripArray, fTHEvtArray, fTHShwArray, fTHStpArray, fTHTrkArray, fTrackArray, fVetoStripArray, ANtpMCManipulator::Initialize(), ANtpEventManipulator::Initialize(), ANtpSliceManipulator::Initialize(), ANtpSnarlManipulator::Initialize(), NtpStRecord::mc, NtpStRecord::shw, NtpStRecord::slc, NtpStRecord::stdhep, NtpStRecord::stp, NtpStRecord::thevt, NtpStRecord::thshw, NtpStRecord::thstp, NtpStRecord::thtrk, NtpStRecord::trk, NtpStRecord::vetohdr, and NtpStRecord::vetostp.

Referenced by MadAnalysis::CreateANtpPAN(), NuExtraction::ExtractNCInfo(), and NueAnalysisCuts::SetInfoObject().

00474 {
00475   fNtpMCRecord = 0;
00476   fNtpSRRecord = 0;
00477   fNtpSRCosmicRay = record->crhdr;
00478   fNtpSRDmxStatus = record->dmxstatus;
00479   fNtpSREventSummary = record->evthdr;
00480   fNtpSRShieldStrip = 0;
00481   fNtpSRShieldSummary = record->vetohdr;
00482   fNtpTHRecord = 0;
00483   fNtpStRecord = record;
00484   fEventArray = record->evt;
00485   fTrackArray = record->trk;
00486   fShowerArray = record->shw;
00487   fClusterArray = record->clu;
00488   fStripArray = record->stp;
00489   fVetoStripArray = record->vetostp;
00490   fSliceArray = record->slc;
00491   fMCArray = record->mc;
00492   fStdArray = record->stdhep;
00493   fTHShwArray = record->thshw;
00494   fTHTrkArray = record->thtrk;
00495   fTHStpArray = record->thstp;
00496   fTHEvtArray = record->thevt;
00497 
00498   fEventManipulator->Initialize(fEventArray, fTrackArray, fShowerArray, fStripArray);
00499   fSnarlManipulator->Initialize(fEventArray, fTrackArray, fShowerArray, fStripArray);
00500   fSliceManipulator->Initialize(fSliceArray, fStripArray);
00501   fMCManipulator->Initialize(fMCArray, fStdArray, fTHShwArray, fTHStpArray, fTHEvtArray, 
00502                              fTHTrkArray);
00503 
00504   return;
00505 }


Member Data Documentation

TClonesArray* ANtpRecoNtpManipulator::fClusterArray [private]

Definition at line 118 of file ANtpRecoNtpManipulator.h.

Referenced by GetClusterArray(), and SetRecord().

TClonesArray* ANtpRecoNtpManipulator::fEventArray [private]

Definition at line 115 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), GetEventArray(), and SetRecord().

TClonesArray* ANtpRecoNtpManipulator::fMCArray [private]

Definition at line 122 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), GetMCArray(), and SetRecord().

Definition at line 112 of file ANtpRecoNtpManipulator.h.

Referenced by GetMCType().

Definition at line 95 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), and SetRecord().

Definition at line 97 of file ANtpRecoNtpManipulator.h.

Referenced by GetCosmicRayInfo(), and SetRecord().

Definition at line 99 of file ANtpRecoNtpManipulator.h.

Referenced by GetDataQuality().

Definition at line 98 of file ANtpRecoNtpManipulator.h.

Referenced by GetDmxStatusInfo(), and SetRecord().

Definition at line 100 of file ANtpRecoNtpManipulator.h.

Referenced by GetSnarlEventSummary(), and SetRecord().

Definition at line 96 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), and SetRecord().

Definition at line 101 of file ANtpRecoNtpManipulator.h.

Referenced by GetShieldStrip(), and SetRecord().

Definition at line 102 of file ANtpRecoNtpManipulator.h.

Referenced by GetSnarlShieldSummary(), and SetRecord().

Definition at line 104 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), GetNtpStRecord(), and SetRecord().

Definition at line 103 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), and SetRecord().

Definition at line 113 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), and GetReleaseMCType().

Definition at line 111 of file ANtpRecoNtpManipulator.h.

Referenced by GetReleaseType().

Definition at line 106 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), and GetRun().

TClonesArray* ANtpRecoNtpManipulator::fShowerArray [private]

Definition at line 117 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), GetShowerArray(), and SetRecord().

TClonesArray* ANtpRecoNtpManipulator::fSliceArray [private]

Definition at line 121 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), GetSliceArray(), and SetRecord().

Definition at line 108 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), and GetSnarl().

Definition at line 110 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), and GetSpillType().

TClonesArray* ANtpRecoNtpManipulator::fStdArray [private]

Definition at line 123 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), GetStdHepArray(), and SetRecord().

TClonesArray* ANtpRecoNtpManipulator::fStripArray [private]

Definition at line 119 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), GetStripArray(), and SetRecord().

Definition at line 107 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), and GetSubRun().

TClonesArray* ANtpRecoNtpManipulator::fTHEvtArray [private]

Definition at line 127 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), GetTHEvtArray(), and SetRecord().

TClonesArray* ANtpRecoNtpManipulator::fTHShwArray [private]

Definition at line 124 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), GetTHShwArray(), and SetRecord().

TClonesArray* ANtpRecoNtpManipulator::fTHStpArray [private]

Definition at line 126 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), GetTHStpArray(), and SetRecord().

TClonesArray* ANtpRecoNtpManipulator::fTHTrkArray [private]

Definition at line 125 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), GetTHTrkArray(), and SetRecord().

TClonesArray* ANtpRecoNtpManipulator::fTrackArray [private]

Definition at line 116 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), GetTrackArray(), and SetRecord().

Definition at line 109 of file ANtpRecoNtpManipulator.h.

Referenced by ANtpRecoNtpManipulator(), and GetTriggerSource().

TClonesArray* ANtpRecoNtpManipulator::fVetoStripArray [private]

Definition at line 120 of file ANtpRecoNtpManipulator.h.

Referenced by GetShieldStrip(), GetVetoStripArray(), and SetRecord().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1