MadBase Class Reference

#include <MadBase.h>

Inheritance diagram for MadBase:

MadEvDisplay MadQuantities MadScanDisplay MadHandScan MadAnalysis NuMadAnalysis MadCBSQEAnalysis MadCluAnalysis MadDpAnalysis MadEdAnalysis MadMKAnalysis MadPIDAnalysis MadTestAnalysis MadTVAnalysis MadUserAnalysis List of all members.

Public Member Functions

 MadBase (TChain *chainSR=0, TChain *chainMC=0, TChain *chainTH=0, TChain *chainEM=0)
 MadBase (JobC *, string, int)
 ~MadBase ()
Int_t GetEntry (Int_t run, Int_t snarl)
Int_t GetEntry (Int_t entry)
void InitChain (TChain *chainSR, TChain *chainMC, TChain *chainTH, TChain *chainEM, bool build_index=false)
void Clear ()
const NtpSREventSummaryGetEventSummary ()
const RecCandHeaderGetHeader ()
const NtpSRTrackGetTrack (Int_t)
const NtpSRTrackGetLargestTrackFromEvent (Int_t, Int_t &)
const NtpSRShowerGetShower (Int_t)
const NtpSRClusterGetCluster (Int_t)
const NtpSRShowerGetLargestShowerFromEvent (Int_t, Int_t &)
const NtpSRShowerGetShowerAtTrackVertex (Int_t, Int_t, Int_t &)
const NtpSREventGetEvent (Int_t)
const NtpSRSliceGetSlice (Int_t)
const NtpSRShieldStripGetShieldStrip (Int_t)
const NtpSRStripGetStrip (Int_t)
const NtpMCTruthGetTruth (Int_t)
const NtpMCStdHepGetStdHep (Int_t)
const NtpMCTruthGetTruthForReco (Int_t, Int_t &)
const NtpTHSliceGetSliceForRecoTH (Int_t, Int_t &)
const NtpMCTruthGetTruthForRecoTH (Int_t, Int_t &)
const NtpTHTrackGetTHTrack (Int_t)
const NtpTHEventGetTHEvent (Int_t)
const NtpTHShowerGetTHShower (Int_t)
const NtpTHSliceGetTHSlice (Int_t)
const NtpEMShowerGetEMShower (Int_t)

Protected Member Functions

Bool_t LoadTrack (Int_t idx)
Bool_t LoadShower (Int_t idx)
Bool_t LoadCluster (Int_t idx)
Bool_t LoadEvent (Int_t idx)
Bool_t LoadSlice (Int_t idx)
Bool_t LoadShieldStrip (Int_t idx)
Bool_t LoadStrip (Int_t idx)
Bool_t LoadTruth (Int_t idx)
Bool_t LoadStdHep (Int_t idx)
Bool_t LoadTHTrack (Int_t)
Bool_t LoadTHEvent (Int_t)
Bool_t LoadTHShower (Int_t)
Bool_t LoadTHSlice (Int_t)
Bool_t LoadEMShower (Int_t)
Bool_t LoadLargestTrackFromEvent (Int_t event, Int_t &trkidx)
Bool_t LoadShower_Jim (Int_t event, Int_t &shwidx, Int_t detector)
Bool_t LoadLargestShowerFromEvent (Int_t event, Int_t &shwidx)
Bool_t LoadShowerAtTrackVertex (Int_t event, Int_t track, Int_t &shwidx)
Bool_t LoadTruthForReco (Int_t, Int_t &)
Bool_t LoadTruthForRecoTH (Int_t, Int_t &)
Bool_t LoadSliceForRecoTH (Int_t, Int_t &)
Float_t RecoShwEnergy (Int_t ishw=0, Int_t opt=-1, Int_t det=1)

Protected Attributes

MadChainfChain
JobCfJC
string jcPath
int fCurRun
int lastEntry
int whichSource
NtpStRecordstrecord
NtpSRRecordrecord
const RecCandHeaderntpHeader
NtpSRShieldSummaryshieldSummary
NtpSREventSummaryeventSummary
NtpSRDmxStatusdmxStatus
NtpSRDetStatusdetStatus
NtpSREventntpEvent
NtpSRTrackntpTrack
NtpSRShowerntpShower
NtpSRClusterntpCluster
NtpSRSlicentpSlice
NtpSRShieldStripntpShieldStrip
NtpSRStripntpStrip
NtpMCRecordmcrecord
NtpMCSummarymcHeader
NtpMCTruthntpTruth
NtpMCStdHepntpStdHep
NtpTHRecordthrecord
NtpTHSlicentpTHSlice
NtpTHEventntpTHEvent
NtpTHTrackntpTHTrack
NtpTHShowerntpTHShower
NtpEMRecordemrecord
NtpEMSummaryntpEMSummary
NtpEMShowerntpEMShower
Bool_t isMC
Bool_t isTH
Bool_t isEM
Bool_t isST
Int_t Nentries

Detailed Description

Definition at line 40 of file MadBase.h.


Constructor & Destructor Documentation

MadBase::MadBase ( TChain *  chainSR = 0,
TChain *  chainMC = 0,
TChain *  chainTH = 0,
TChain *  chainEM = 0 
)

Definition at line 14 of file MadBase.cxx.

References Clear(), emrecord, fCurRun, InitChain(), isEM, isMC, isST, isTH, lastEntry, mcrecord, Nentries, record, strecord, threcord, and whichSource.

00016 {
00017 
00018   fCurRun = -1;
00019   lastEntry = -1;
00020   if(!chainSR) {
00021     record = 0;
00022     emrecord = 0;
00023     mcrecord = 0;
00024     threcord = 0;
00025     strecord = 0;
00026     Clear();
00027     whichSource = -1;
00028     isMC = true;
00029     isTH = true;
00030     isEM = true;
00031     isST = false;
00032     Nentries = -1;
00033     fCurRun = -1;
00034     return;
00035   }
00036 
00037   InitChain(chainSR,chainMC,chainTH,chainEM);
00038   whichSource = 0;
00039 
00040 }

MadBase::MadBase ( JobC ,
string  ,
int   
)

Definition at line 42 of file MadBase.cxx.

References Clear(), emrecord, fChain, fCurRun, fJC, isEM, isMC, isST, isTH, jcPath, lastEntry, mcrecord, Nentries, record, strecord, threcord, and whichSource.

00043 {
00044   record = 0;
00045   emrecord = 0;
00046   mcrecord = 0;
00047   threcord = 0;
00048   strecord = 0;
00049   Clear();
00050   isMC = true;
00051   isTH = true;
00052   isEM = true;
00053   isST = false;
00054   Nentries = entries;
00055   whichSource = 1;
00056   jcPath = path;
00057   fCurRun = -1;
00058   lastEntry = -1;
00059   fJC = j;
00060   fChain = NULL;
00061 }

MadBase::~MadBase (  ) 

Definition at line 63 of file MadBase.cxx.

References fChain.

00064 {
00065   if(fChain) delete fChain;
00066 }


Member Function Documentation

void MadBase::Clear (  ) 

Definition at line 201 of file MadBase.cxx.

References eventSummary, ntpCluster, ntpEMShower, ntpEMSummary, ntpEvent, ntpHeader, ntpShieldStrip, ntpShower, ntpSlice, ntpStdHep, ntpStrip, ntpTHShower, ntpTHSlice, ntpTHTrack, ntpTrack, ntpTruth, and shieldSummary.

Referenced by GetEntry(), MadAnalysis::MadAnalysis(), MadBase(), MadCBSQEAnalysis::MadCBSQEAnalysis(), MadCluAnalysis::MadCluAnalysis(), MadDpAnalysis::MadDpAnalysis(), MadEdAnalysis::MadEdAnalysis(), MadEvDisplay::MadEvDisplay(), MadHandScan::MadHandScan(), MadMKAnalysis::MadMKAnalysis(), MadPIDAnalysis::MadPIDAnalysis(), MadQuantities::MadQuantities(), MadScanDisplay::MadScanDisplay(), MadTestAnalysis::MadTestAnalysis(), MadTVAnalysis::MadTVAnalysis(), MadUserAnalysis::MadUserAnalysis(), NuMadAnalysis::NuMadAnalysis(), and MadAnalysis::ReInit().

00201                    {
00202 
00203   ntpHeader = 0;
00204   shieldSummary = 0;
00205   eventSummary = 0;
00206   ntpSlice=0;
00207   ntpEvent=0;
00208   ntpTrack=0;
00209   ntpCluster=0;
00210   ntpShower=0;
00211   ntpStrip=0;
00212   ntpShieldStrip=0;
00213 
00214   ntpTruth=0;
00215   ntpStdHep=0;
00216 
00217   ntpTHSlice=0;
00218   ntpTHTrack=0;
00219   ntpTHShower=0;
00220 
00221   ntpEMSummary = 0;
00222   ntpEMShower = 0;
00223 
00224 }

const NtpSRCluster * MadBase::GetCluster ( Int_t   ) 

Definition at line 755 of file MadBase.cxx.

References LoadCluster(), and ntpCluster.

00755                                               {
00756   if(!LoadCluster(i)) return 0;
00757   else return ntpCluster;
00758 }

const NtpEMShower * MadBase::GetEMShower ( Int_t   ) 

Definition at line 829 of file MadBase.cxx.

References LoadEMShower(), and ntpEMShower.

00829                                               {
00830   if(!LoadEMShower(i)) return 0;
00831   else return ntpEMShower;
00832 }

Int_t MadBase::GetEntry ( Int_t  entry  ) 

Definition at line 74 of file MadBase.cxx.

References Clear(), NtpSRRecord::detstatus, NtpStRecord::detstatus, detStatus, NtpSRRecord::dmxstatus, NtpStRecord::dmxstatus, dmxStatus, NtpEMRecord::emhdr, MadChain::emRecord, emrecord, eventSummary, NtpSRRecord::evthdr, NtpStRecord::evthdr, fChain, fCurRun, fJC, MadChain::Get(), MomNavigator::GetFragment(), RecRecordImp< T >::GetHeader(), RecDataHeader::GetRun(), JobC::Input, isEM, isMC, isST, isTH, jcPath, lastEntry, LoadCluster(), LoadEMShower(), LoadEvent(), LoadShieldStrip(), LoadShower(), LoadSlice(), LoadStdHep(), LoadTHEvent(), LoadTHShower(), LoadTHSlice(), LoadTHTrack(), LoadTrack(), LoadTruth(), NtpMCRecord::mchdr, NtpStRecord::mchdr, mcHeader, MadChain::mcRecord, mcrecord, JobC::Mom, NtpMCSummary::nmc, ntpEMSummary, ntpHeader, JobC::Path, JobCInput::Prev(), MadChain::Record, record, shieldSummary, MadChain::stRecord, strecord, MadChain::thRecord, threcord, NtpStRecord::thstp, NtpSRRecord::vetohdr, NtpStRecord::vetohdr, and whichSource.

00075 {
00076   //zero everything before next snarl
00077   Clear();
00078   
00079   //get records
00080   int status = 0;
00081   if(whichSource==-1) return 0;
00082   else if(whichSource==0) {
00083     if(entry!=lastEntry) {
00084       status = fChain->Get(entry);
00085       lastEntry = entry;
00086     }
00087     else status = 1;
00088     record = fChain->Record;
00089     strecord = fChain->stRecord;
00090     mcrecord = fChain->mcRecord;
00091     threcord = fChain->thRecord;
00092     emrecord = fChain->emRecord;
00093   }
00094   else if(whichSource==1) {
00095     //allow for possibility that reco path can change event by event:
00096     isMC = isTH = isEM = true; 
00097     //Get entry:
00098     //cout << "Getting Cand entry " << entry << " from " 
00099     // << jcPath.c_str() << endl;
00100     if(entry!=lastEntry) {
00101       if(entry<lastEntry) fJC->Input.Prev(lastEntry-entry-2);
00102       //else fJC->Input.Next(entry-lastEntry);
00103       fJC->Path(jcPath.c_str()).RunNin(1);
00104       lastEntry = entry;
00105     }
00106     //Look for records in mom:
00107     record   = (NtpSRRecord*) fJC->Mom.GetFragment("NtpSRRecord");
00108     mcrecord = (NtpMCRecord*) fJC->Mom.GetFragment("NtpMCRecord");
00109     threcord = (NtpTHRecord*) fJC->Mom.GetFragment("NtpTHRecord");
00110     emrecord = (NtpEMRecord*) fJC->Mom.GetFragment("NtpEMRecord");
00111     //if no SR record quit
00112     if(record==0) return 0;
00113     //otherwise check for other records:
00114     status = 1;
00115     if(mcrecord==0) isMC = false;
00116     if(threcord==0) isTH = false;
00117     if(emrecord==0) isEM = false;
00118   }
00119   else return 0;
00120   
00121   //set other things:
00122   if(isST){
00123     ntpHeader = &(strecord->GetHeader());
00124     mcHeader = &(strecord->mchdr);
00125     shieldSummary = &(strecord->vetohdr);
00126     eventSummary = &(strecord->evthdr);
00127     dmxStatus = &(strecord->dmxstatus);
00128     detStatus = &(strecord->detstatus);
00129     if(mcHeader->nmc==0) {
00130       isMC = false; isTH = false;
00131     }
00132     else {
00133       isMC = true;
00134       TClonesArray &array = *(strecord->thstp);
00135       if(array.GetEntries()>0) isTH = true;      
00136     }
00137   }
00138   else {
00139     ntpHeader = &(record->GetHeader());
00140     shieldSummary = &(record->vetohdr);
00141     eventSummary = &(record->evthdr);
00142     dmxStatus = &(record->dmxstatus);
00143     detStatus = &(record->detstatus);
00144   }
00145   fCurRun = ntpHeader->GetRun();
00146 
00147   LoadSlice(0);  
00148   LoadEvent(0);
00149   LoadTrack(0);
00150   LoadCluster(0);
00151   LoadShower(0);
00152   LoadShieldStrip(0);
00153 
00154   if(isEM) {
00155     ntpEMSummary = &(emrecord->emhdr);
00156     LoadEMShower(0);
00157   }
00158 
00159   if(isMC) {
00160     if(isST) mcHeader = &(strecord->mchdr);
00161     else mcHeader = &(mcrecord->mchdr);
00162     LoadTruth(0);
00163     LoadStdHep(0);
00164   }
00165 
00166   if(isTH) {
00167     LoadTHSlice(0);
00168     LoadTHEvent(0);
00169     LoadTHTrack(0);
00170     LoadTHShower(0);
00171   }
00172   return status;
00173 
00174 }

Int_t MadBase::GetEntry ( Int_t  run,
Int_t  snarl 
)

Definition at line 68 of file MadBase.cxx.

References fChain, MadChain::GetEntryNumber(), and whichSource.

Referenced by MadTVAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), MadEdAnalysis::MakeEff(), MadQuantities::MakeValidationFile(), MadScanDisplay::NextInterestingEvent(), MadEvDisplay::NextInterestingEvent(), MadEdAnalysis::PIDHisto(), MadAnalysis::RecoExperiment(), MadAnalysis::RecoMC(), MadAnalysis::RecoMCExperiment(), MadQuantities::ShowerValidation(), MadTestAnalysis::SingleTimeFrame(), MadPIDAnalysis::SingleTimeFrame(), and MadDpAnalysis::SingleTimeFrame().

00069 {
00070   if(whichSource==0) return GetEntry(fChain->GetEntryNumber(run,snarl));
00071   return 0;
00072 }

const NtpSREvent * MadBase::GetEvent ( Int_t   ) 

Definition at line 767 of file MadBase.cxx.

References LoadEvent(), and ntpEvent.

Referenced by MadQEID::CalcQEVars(), MadMedTrackVars::Calculate(), MadNsID::CalcVars(), MadDpID::CalcVars(), and NearbyVertexFinder::ProcessEntry().

00767                                           {
00768   if(!LoadEvent(i)) return 0;
00769   else return ntpEvent;
00770 }

const NtpSREventSummary* MadBase::GetEventSummary (  )  [inline]

Definition at line 222 of file MadBase.h.

References eventSummary.

Referenced by MadDpID::CalcVars(), MadTVAnalysis::ComputeLowPHRatio(), MadMKAnalysis::ComputeLowPHRatio(), and NearbyVertexFinder::ProcessEntry().

00222 {return eventSummary;}

const RecCandHeader* MadBase::GetHeader (  )  [inline]

Definition at line 223 of file MadBase.h.

References ntpHeader.

Referenced by MadDpID::CalcVars(), and MadDpID::FillPDFs().

00223 {return ntpHeader;}

const NtpSRShower * MadBase::GetLargestShowerFromEvent ( Int_t  ,
Int_t &   
)

Definition at line 759 of file MadBase.cxx.

References LoadLargestShowerFromEvent(), and ntpShower.

Referenced by MadNsID::CalcVars().

00759                                                                      {
00760   if(!LoadLargestShowerFromEvent(i,j)) return 0;
00761   else return ntpShower;
00762 }

const NtpSRTrack * MadBase::GetLargestTrackFromEvent ( Int_t  ,
Int_t &   
)

Definition at line 747 of file MadBase.cxx.

References LoadLargestTrackFromEvent(), and ntpTrack.

Referenced by MadQEID::CalcQEVars(), MadMedTrackVars::Calculate(), MadNsID::CalcVars(), and MadDpID::CalcVars().

00747                                                                    {
00748   if(!LoadLargestTrackFromEvent(i,j)) return 0;
00749   else return ntpTrack;
00750 }

const NtpSRShieldStrip * MadBase::GetShieldStrip ( Int_t   ) 

Definition at line 775 of file MadBase.cxx.

References LoadShieldStrip(), and ntpShieldStrip.

00775                                                       {
00776   if(!LoadShieldStrip(i)) return 0;
00777   else return ntpShieldStrip;
00778   
00779 }

const NtpSRShower * MadBase::GetShower ( Int_t   ) 

Definition at line 751 of file MadBase.cxx.

References LoadShower(), and ntpShower.

Referenced by MadQEID::CalcQEVars().

00751                                             {
00752   if(!LoadShower(i)) return 0;
00753   else return ntpShower;
00754 }

const NtpSRShower * MadBase::GetShowerAtTrackVertex ( Int_t  ,
Int_t  ,
Int_t &   
)

Definition at line 763 of file MadBase.cxx.

References LoadShowerAtTrackVertex(), and ntpShower.

00763                                                                           {
00764   if(!LoadShowerAtTrackVertex(i,j,k)) return 0;
00765   else return ntpShower;
00766 }

const NtpSRSlice * MadBase::GetSlice ( Int_t   ) 

Definition at line 771 of file MadBase.cxx.

References LoadSlice(), and ntpSlice.

00771                                           {
00772   if(!LoadSlice(i)) return 0;
00773   else return ntpSlice;
00774 }

const NtpTHSlice * MadBase::GetSliceForRecoTH ( Int_t  ,
Int_t &   
)

Definition at line 800 of file MadBase.cxx.

References LoadSliceForRecoTH(), and ntpTHSlice.

00800                                                             {
00801   if(!LoadSliceForRecoTH(i,j)) return 0;
00802   else return ntpTHSlice;
00803 }

const NtpMCStdHep * MadBase::GetStdHep ( Int_t   ) 

Definition at line 790 of file MadBase.cxx.

References LoadStdHep(), and ntpStdHep.

00790                                             {
00791   if(!LoadStdHep(i)) return 0;
00792   else return ntpStdHep;
00793 }

const NtpSRStrip * MadBase::GetStrip ( Int_t   ) 

Definition at line 780 of file MadBase.cxx.

References LoadStrip(), and ntpStrip.

Referenced by MadQEID::CalcQEVars(), MadMedTrackVars::Calculate(), MadNsID::CalcVars(), MadQEID::IsShowHit(), and MadQEID::IsTrkHit().

00780                                           {
00781   if(!LoadStrip(i)) return 0;
00782   else return ntpStrip;
00783 }

const NtpTHEvent * MadBase::GetTHEvent ( Int_t   ) 

Definition at line 814 of file MadBase.cxx.

References LoadTHEvent(), and ntpTHEvent.

00814                                             {
00815   if(!LoadTHEvent(i)) return 0;
00816   else return ntpTHEvent;
00817 }

const NtpTHShower * MadBase::GetTHShower ( Int_t   ) 

Definition at line 819 of file MadBase.cxx.

References LoadTHShower(), and ntpTHShower.

00819                                               {
00820   if(!LoadTHShower(i)) return 0;
00821   else return ntpTHShower;
00822 }

const NtpTHSlice * MadBase::GetTHSlice ( Int_t   ) 

Definition at line 824 of file MadBase.cxx.

References LoadTHSlice(), and ntpTHSlice.

00824                                             {
00825   if(!LoadTHSlice(i)) return 0;
00826   else return ntpTHSlice;
00827 }

const NtpTHTrack * MadBase::GetTHTrack ( Int_t   ) 

Definition at line 809 of file MadBase.cxx.

References LoadTHTrack(), and ntpTHTrack.

00809                                             {
00810   if(!LoadTHTrack(i)) return 0;
00811   else return ntpTHTrack;
00812 }

const NtpSRTrack * MadBase::GetTrack ( Int_t   ) 

Definition at line 741 of file MadBase.cxx.

References LoadTrack(), and ntpTrack.

00741                                           {
00742   if(!LoadTrack(i)) return 0;
00743   else return ntpTrack;
00744 
00745 }

const NtpMCTruth * MadBase::GetTruth ( Int_t   ) 

Definition at line 785 of file MadBase.cxx.

References LoadTruth(), and ntpTruth.

00785                                           {
00786   if(!LoadTruth(i)) return 0;
00787   else return ntpTruth;
00788 }

const NtpMCTruth * MadBase::GetTruthForReco ( Int_t  ,
Int_t &   
)

Definition at line 795 of file MadBase.cxx.

References LoadTruthForReco(), and ntpTruth.

Referenced by MadDpID::FillPDFs().

00795                                                           {
00796   if(!LoadTruthForReco(i,j)) return 0;
00797   else return ntpTruth;
00798 }

const NtpMCTruth * MadBase::GetTruthForRecoTH ( Int_t  ,
Int_t &   
)

Definition at line 804 of file MadBase.cxx.

References LoadTruthForRecoTH(), and ntpTruth.

Referenced by NearbyVertexFinder::ProcessEntry().

00804                                                             {
00805   if(!LoadTruthForRecoTH(i,j)) return 0;
00806   else return ntpTruth;
00807 }

void MadBase::InitChain ( TChain *  chainSR,
TChain *  chainMC,
TChain *  chainTH,
TChain *  chainEM,
bool  build_index = false 
)

Definition at line 176 of file MadBase.cxx.

References emrecord, fChain, MadChain::isEM, isEM, MadChain::isMC, isMC, MadChain::isST, isST, MadChain::isTH, isTH, mcrecord, MadChain::Nentries, Nentries, record, strecord, and threcord.

Referenced by MadBase(), MadCBSQEAnalysis::MadCBSQEAnalysis(), MadCluAnalysis::MadCluAnalysis(), MadDpAnalysis::MadDpAnalysis(), MadEdAnalysis::MadEdAnalysis(), MadEvDisplay::MadEvDisplay(), MadHandScan::MadHandScan(), MadPIDAnalysis::MadPIDAnalysis(), MadQuantities::MadQuantities(), MadScanDisplay::MadScanDisplay(), MadTestAnalysis::MadTestAnalysis(), MadUserAnalysis::MadUserAnalysis(), and MadAnalysis::ReInit().

00178 {
00179 
00180   record = 0;
00181   emrecord = 0;
00182   mcrecord = 0;
00183   threcord = 0;
00184   strecord = 0;
00185 
00186   fChain = new MadChain(chainSR,chainMC,chainTH,chainEM,build_index);
00187   isMC = fChain->isMC;
00188   isTH = fChain->isTH;
00189   isEM = fChain->isEM;
00190   isST = fChain->isST;
00191 
00192   Nentries = fChain->Nentries;  
00193 
00194   if(isST) std::cout << "ST Present" << std::endl;
00195   if(isMC) std::cout << "MC Present" << std::endl;
00196   if(isTH) std::cout << "TH Present" << std::endl;
00197   if(isEM) std::cout << "EM Present" << std::endl;
00198   
00199 }

Bool_t MadBase::LoadCluster ( Int_t  idx  )  [protected]

Definition at line 306 of file MadBase.cxx.

References NtpSRRecord::clu, NtpStRecord::clu, isST, ntpCluster, record, and strecord.

Referenced by MadCluAnalysis::AveNumSSPlane(), MadCluAnalysis::ChargeFracRMS(), MadMKAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), MadCluAnalysis::FillBestProbEM(), MadCluAnalysis::FillNCluster(), GetCluster(), GetEntry(), MadQuantities::GetNShowerStrip(), MadScanDisplay::PassCuts(), MadEvDisplay::PassCuts(), MadCluAnalysis::PassDataCleaningCuts(), MadCluAnalysis::PHWAvgDev(), MadCluAnalysis::PHWCluID(), MadCluAnalysis::PHWProbEM(), MadCluAnalysis::PID(), MadCluAnalysis::Plot(), MadQuantities::RecoEMFrac(), NuMadAnalysis::SetEntry(), and MadQuantities::ShowerValidation().

00306                                      {
00307  
00308   Bool_t status = false;
00309   TClonesArray* pointClusterArray = NULL;
00310   if(isST) pointClusterArray = (strecord->clu);
00311   else pointClusterArray = (record->clu);
00312   TClonesArray& clusterArray = *pointClusterArray;
00313 //MAK:06/06/05  if(iclu>=0&&iclu<clusterArray.GetEntries()) {
00314   if(iclu>=0&&iclu<clusterArray.GetEntriesFast()) {
00315     ntpCluster = dynamic_cast<NtpSRCluster *>(clusterArray[iclu]);
00316     status = true;
00317   }
00318   else ntpCluster = 0;
00319    
00320   return status;
00321 }

Bool_t MadBase::LoadEMShower ( Int_t   )  [protected]

Definition at line 726 of file MadBase.cxx.

References emrecord, NtpEMRecord::emshw, isEM, and ntpEMShower.

Referenced by GetEMShower(), GetEntry(), and MadHandScan::HandScanDisplay().

00726                                       {
00727 
00728   Bool_t status = false;
00729   if(!isEM) return status; 
00730   TClonesArray& showerArray = *(emrecord->emshw);
00731 //MAK:06/06/05  if(ishw>=0&&ishw<showerArray.GetEntries()) {
00732   if(ishw>=0&&ishw<showerArray.GetEntries()) {
00733     ntpEMShower = dynamic_cast<NtpEMShower *>(showerArray[ishw]);
00734     status = true;
00735   }
00736   else ntpEMShower = 0;
00737   
00738   return status;
00739 }

Bool_t MadBase::LoadEvent ( Int_t  idx  )  [protected]

Definition at line 536 of file MadBase.cxx.

References NtpSRRecord::evt, NtpStRecord::evt, isST, ntpEvent, record, and strecord.

Referenced by MadTestAnalysis::AnnVar(), MadPIDAnalysis::AnnVar(), MadDpAnalysis::AnnVar(), MadCluAnalysis::AveNumSSPlane(), MadUserAnalysis::CallUserFunctions(), MadCluAnalysis::CallUserFunctions(), MadCBSQEAnalysis::CallUserFunctions(), MadCluAnalysis::ChargeFracRMS(), MadQuantities::ClosestDistanceToEvent(), MadAnalysis::CreateANtpPAN(), MadTVAnalysis::CreatePAN(), MadTestAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), MadEdAnalysis::DataHist(), MadEvDisplay::Display(), MadTVAnalysis::DupRecoStrips(), MadMKAnalysis::DupRecoStrips(), MadTVAnalysis::EarlyActivity(), MadMKAnalysis::EarlyActivity(), MadEdAnalysis::EvtLength(), MadEdAnalysis::Evtphsig(), MadCluAnalysis::FillBestProbEM(), MadCluAnalysis::FillNCluster(), MadCluAnalysis::FOM(), GetEntry(), GetEvent(), MadScanDisplay::InFidNoTrk(), MadScanDisplay::InFidTrk(), MadTVAnalysis::InFidVol(), MadMKAnalysis::InFidVol(), MadQuantities::IsFid_2008(), MadQuantities::IsFidFD_AB(), MadQuantities::IsFidVtxEvt(), MadCluAnalysis::IsNueFidVtxEvt(), MadCBSQEAnalysis::LikeliQE(), LoadLargestShowerFromEvent(), LoadLargestTrackFromEvent(), LoadShower_Jim(), LoadShowerAtTrackVertex(), LoadSliceForRecoTH(), LoadTruthForReco(), LoadTruthForRecoTH(), MadPIDAnalysis::MakeAbIDFile(), MadEdAnalysis::MakeEff(), MadUserAnalysis::MakeMyFile(), MadTestAnalysis::MakeMyFile(), MadPIDAnalysis::MakeMyFile(), MadDpAnalysis::MakeMyFile(), MadCBSQEAnalysis::MakeQEFile(), MadQuantities::MakeValidationFile(), MadEdAnalysis::MCHist(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyMakeMyFile(), MadEdAnalysis::MyMakeQEFile(), MadEdAnalysis::NeuNetEval(), MadScanDisplay::NextEvt(), MadScanDisplay::NextFidNoTrk(), MadScanDisplay::NextFidTrk(), MadScanDisplay::NextInterestingEvent(), MadEvDisplay::NextInterestingEvent(), MadScanDisplay::NextPass(), MadEvDisplay::NextPass(), MadUserAnalysis::PassAnalysisCuts(), MadTestAnalysis::PassAnalysisCuts(), MadPIDAnalysis::PassAnalysisCuts(), MadEdAnalysis::PassAnalysisCuts(), MadDpAnalysis::PassAnalysisCuts(), MadCBSQEAnalysis::PassAnalysisCuts(), MadUserAnalysis::PassBasicCuts(), MadTestAnalysis::PassBasicCuts(), MadPIDAnalysis::PassBasicCuts(), MadEdAnalysis::PassBasicCuts(), MadDpAnalysis::PassBasicCuts(), MadCluAnalysis::PassBasicCuts(), MadCBSQEAnalysis::PassBasicCuts(), MadScanDisplay::PassCuts(), MadEvDisplay::PassCuts(), MadTestAnalysis::PassFid(), MadPIDAnalysis::PassFid(), MadDpAnalysis::PassFid(), MadPIDAnalysis::PassFidND(), MadPIDAnalysis::PassFidNew(), MadDpAnalysis::PassFidNew(), MadPIDAnalysis::PassFidNewN(), MadDpAnalysis::PassFidNewN(), MadCluAnalysis::PHWAvgDev(), MadCluAnalysis::PHWCluID(), MadCluAnalysis::PHWProbEM(), MadUserAnalysis::PID(), MadTestAnalysis::PID(), MadPIDAnalysis::PID(), MadEdAnalysis::PID(), MadDpAnalysis::PID(), MadCluAnalysis::PID(), MadCBSQEAnalysis::PID(), MadEdAnalysis::PIDHisto(), MadCluAnalysis::Plot(), MadScanDisplay::PrevEvt(), MadScanDisplay::PrevFidNoTrk(), MadScanDisplay::PrevFidTrk(), MadScanDisplay::PrevPass(), MadEvDisplay::PrevPass(), MadUserAnalysis::RecoAnalysisEnergy(), MadTestAnalysis::RecoAnalysisEnergy(), MadPIDAnalysis::RecoAnalysisEnergy(), MadDpAnalysis::RecoAnalysisEnergy(), MadCluAnalysis::RecoAnalysisEnergy(), MadCBSQEAnalysis::RecoAnalysisEnergy(), MadAnalysis::RecoAnalysisEnergy(), NuMadAnalysis::SetEntry(), MadQuantities::ShowerValidation(), and MadCBSQEAnalysis::TestQEDiscrim().

00536                                    {
00537 
00538   Bool_t status = false;
00539   TClonesArray* pointEventArray = NULL;
00540   if(isST) pointEventArray = (strecord->evt);
00541   else pointEventArray = (record->evt);
00542   TClonesArray& eventArray = *pointEventArray;
00543 //MAK:06/06/05  if(ievt>=0&&ievt<eventArray.GetEntries()) {
00544   if(ievt>=0&&ievt<eventArray.GetEntriesFast()) {
00545     ntpEvent = dynamic_cast<NtpSREvent *>(eventArray[ievt]);
00546     status = true;
00547   }
00548   else ntpEvent = 0;
00549   
00550   return status;
00551 }

Bool_t MadBase::LoadLargestShowerFromEvent ( Int_t  event,
Int_t &  shwidx 
) [protected]

Definition at line 340 of file MadBase.cxx.

References NtpSRStripPulseHeight::gev, LoadEvent(), LoadShower(), NtpSREvent::nshower, ntpEvent, ntpShower, NtpSRShower::ph, and NtpSREvent::shw.

Referenced by MadTestAnalysis::AnnVar(), MadCluAnalysis::AveNumSSPlane(), MadCluAnalysis::CallUserFunctions(), MadCluAnalysis::ChargeFracRMS(), MadAnalysis::CreateANtpPAN(), MadTestAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), MadCluAnalysis::FillBestProbEM(), MadCluAnalysis::FillNCluster(), GetLargestShowerFromEvent(), MadQuantities::GetSqrtShwSC(), MadQuantities::MakeValidationFile(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyMakeQEFile(), MadCluAnalysis::PassBasicCuts(), MadScanDisplay::PassCuts(), MadEvDisplay::PassCuts(), MadCluAnalysis::PHWAvgDev(), MadCluAnalysis::PHWCluID(), MadCluAnalysis::PHWProbEM(), MadCluAnalysis::PID(), MadCluAnalysis::RecoAnalysisEnergy(), and MadQuantities::ShowerValidation().

00340                                                                 {
00341 
00342   Bool_t status = false;
00343   ntpShower = 0;
00344   if(!LoadEvent(ievt)) return status;
00345   
00346   Float_t largest_ph = 0;
00347   int *showers = ntpEvent->shw;  
00348   for(int i=0;i<ntpEvent->nshower;i++){    
00349     if(!LoadShower(showers[i])) continue;
00350     if(ntpShower->ph.gev>largest_ph) {
00351       ishw = showers[i];
00352       largest_ph = ntpShower->ph.gev;
00353     }
00354   }
00355   ntpShower = 0;
00356   if(largest_ph>0){
00357     status = true;
00358     LoadShower(ishw);
00359   } 
00360   return status;
00361 }

Bool_t MadBase::LoadLargestTrackFromEvent ( Int_t  event,
Int_t &  trkidx 
) [protected]

Definition at line 244 of file MadBase.cxx.

References NtpSRPlane::beg, NtpSRPlane::end, LoadEvent(), LoadTrack(), ntpEvent, ntpTrack, NtpSREvent::ntrack, NtpSRTrack::plane, and NtpSREvent::trk.

Referenced by MadTestAnalysis::AnnVar(), MadPIDAnalysis::AnnVar(), MadDpAnalysis::AnnVar(), MadCBSQEAnalysis::CallUserFunctions(), MadAnalysis::CreateANtpPAN(), MadTestAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), GetLargestTrackFromEvent(), MadQuantities::GetSqrtTrkSkimSC(), MadScanDisplay::InFidNoTrk(), MadScanDisplay::InFidTrk(), MadQuantities::IsFid_2008(), MadQuantities::IsFidAllEvt(), MadQuantities::IsFidFD_AB(), MadCBSQEAnalysis::LikeliQE(), LoadShower_Jim(), MadTestAnalysis::MakeMyFile(), MadPIDAnalysis::MakeMyFile(), MadDpAnalysis::MakeMyFile(), MadQuantities::MakeValidationFile(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyMakeMyFile(), MadEdAnalysis::MyMakeQEFile(), MadEdAnalysis::NeuNetEval(), MadCBSQEAnalysis::PassAnalysisCuts(), MadUserAnalysis::PassBasicCuts(), MadTestAnalysis::PassBasicCuts(), MadEdAnalysis::PassBasicCuts(), MadCluAnalysis::PassBasicCuts(), MadCBSQEAnalysis::PassBasicCuts(), MadScanDisplay::PassCuts(), MadEvDisplay::PassCuts(), MadPIDAnalysis::PassFidND(), MadPIDAnalysis::PassFidNew(), MadDpAnalysis::PassFidNew(), MadPIDAnalysis::PassFidNewN(), MadDpAnalysis::PassFidNewN(), MadTestAnalysis::PID(), MadPIDAnalysis::PID(), MadEdAnalysis::PID(), MadDpAnalysis::PID(), MadCluAnalysis::PID(), MadUserAnalysis::RecoAnalysisEnergy(), MadTestAnalysis::RecoAnalysisEnergy(), MadPIDAnalysis::RecoAnalysisEnergy(), MadDpAnalysis::RecoAnalysisEnergy(), MadCluAnalysis::RecoAnalysisEnergy(), MadCBSQEAnalysis::RecoAnalysisEnergy(), and MadQuantities::ShowerValidation().

00244                                                                {
00245 
00246   Bool_t status = false;  
00247   ntpTrack = 0;
00248   if(!LoadEvent(ievt)) return status;
00249 
00250   Float_t largest_ph = 0;
00251   int *tracks = ntpEvent->trk;  
00252   for(int i=0;i<ntpEvent->ntrack;i++){    
00253     if(!LoadTrack(tracks[i])) continue;
00254     // MAK: trklen should be an absolute value
00255     // MAK: Also, it shouldn't matter for beam events
00256     Int_t trklen=abs(ntpTrack->plane.end-ntpTrack->plane.beg+1);
00257     if(trklen>largest_ph) {
00258       itrk = tracks[i];
00259       largest_ph = trklen;
00260     }
00261   }
00262   ntpTrack = 0;
00263   if(largest_ph>0){
00264     status = true;
00265     LoadTrack(itrk);
00266   } 
00267   return status;
00268 }

Bool_t MadBase::LoadShieldStrip ( Int_t  idx  )  [protected]

Definition at line 709 of file MadBase.cxx.

References isST, ntpShieldStrip, record, strecord, NtpSRRecord::vetostp, and NtpStRecord::vetostp.

Referenced by GetEntry(), GetShieldStrip(), and NuMadAnalysis::SetEntry().

00709                                          {
00710 
00711   Bool_t status = false;
00712   TClonesArray* pointStripArray = NULL;
00713   if(isST) pointStripArray = (strecord->vetostp);
00714   else pointStripArray = (record->vetostp);
00715   TClonesArray& stripArray = *pointStripArray;
00716 //MAK:06/06/05  if(istp>=0&&istp<stripArray.GetEntries()) {
00717   if(istp>=0&&istp<stripArray.GetEntriesFast()) {
00718     ntpShieldStrip = dynamic_cast<NtpSRShieldStrip *>(stripArray[istp]);
00719     status = true;
00720   }
00721   else ntpShieldStrip = 0;
00722   
00723   return status;
00724 }

Bool_t MadBase::LoadShower ( Int_t  idx  )  [protected]

Definition at line 323 of file MadBase.cxx.

References isST, ntpShower, record, NtpSRRecord::shw, NtpStRecord::shw, and strecord.

Referenced by MadTestAnalysis::AnnVar(), MadTestAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadScanDisplay::EventDump(), MadEvDisplay::EventDump(), GetEntry(), MadQuantities::GetNShowerStrip(), GetShower(), MadQuantities::GetShwSC(), LoadLargestShowerFromEvent(), LoadShower_Jim(), LoadShowerAtTrackVertex(), MadTestAnalysis::MakeMyFile(), MadPIDAnalysis::MakeMyFile(), MadDpAnalysis::MakeMyFile(), MadTVAnalysis::MuonShowerEnergy(), MadMKAnalysis::MuonShowerEnergy(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyMakeMyFile(), MadCluAnalysis::PassDataCleaningCuts(), MadCluAnalysis::Plot(), MadQuantities::RecoEMFrac(), MadQuantities::RecoShwEnergy(), MadMKAnalysis::RecoShwEnergy(), RecoShwEnergy(), MadQuantities::RecoShwEnergyNew(), NuMadAnalysis::SetEntry(), and MadScanDisplay::ShwROICalc().

00323                                     {
00324 
00325   Bool_t status = false;
00326   TClonesArray* pointShowerArray = NULL;
00327   if(isST) pointShowerArray = (strecord->shw);
00328   else pointShowerArray = (record->shw);
00329   TClonesArray& showerArray = *pointShowerArray;
00330 //MAK:06/06/05  if(ishw>=0&&ishw<showerArray.GetEntries()) {
00331   if(ishw>=0&&ishw<showerArray.GetEntriesFast()) {
00332     ntpShower = dynamic_cast<NtpSRShower *>(showerArray[ishw]);
00333     status = true;
00334   }
00335   else ntpShower = 0;
00336   
00337   return status;
00338 }

Bool_t MadBase::LoadShower_Jim ( Int_t  event,
Int_t &  shwidx,
Int_t  detector 
) [protected]

Definition at line 363 of file MadBase.cxx.

References LoadEvent(), LoadLargestTrackFromEvent(), LoadShower(), NtpSREvent::nshower, ntpEvent, ntpShower, ntpTrack, NtpSREvent::ntrack, NtpSREvent::primshw, RecoShwEnergy(), NtpSREvent::shw, NtpSRShower::vtx, NtpSRTrack::vtx, and NtpSRVertex::z.

Referenced by MadPIDAnalysis::AnnVar(), MadDpAnalysis::AnnVar(), MadPIDAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), and MadScanDisplay::InFidNoTrk().

00363                                                                     {
00364 
00365   Bool_t status = false;
00366   ntpShower = 0;
00367   if(!LoadEvent(ievt)) return status;
00368   int *showers = ntpEvent->shw;  
00369   if(ntpEvent->ntrack==0 && ntpEvent->nshower>0) {
00370    ishw = showers[0];
00371    ntpShower = 0;  
00372    status = true;
00373    LoadShower(ishw);
00374   }
00375   if(ntpEvent->primshw<0) return false;
00376 
00377   if(ntpEvent->nshower>0 && ntpEvent->ntrack> 0) {
00378    if(!LoadShower(showers[0])) return status;
00379    ishw = showers[0];
00380    ntpShower = 0;    
00381    LoadShower(ishw);
00382    int track_index   = -1;
00383    LoadLargestTrackFromEvent(ievt,track_index);  
00384    Double_t reco_eshwcc,reco_eshwccw; 
00385    Int_t shwtype=0;  
00386    shwtype=0;
00387    reco_eshwcc       = RecoShwEnergy(ishw,shwtype,detector);
00388    shwtype=1;
00389    reco_eshwccw      = RecoShwEnergy(ishw,shwtype,detector); 
00390    if(track_index!=-1){
00391       Double_t trvz= ntpTrack ->vtx.z; 
00392       Double_t shvz= ntpShower->vtx.z;
00393       if(fabs(trvz-shvz)<0.5 || (fabs(trvz-shvz)>=0.5 && reco_eshwcc > 2)) {
00394        status=true;       
00395       }
00396       else if(fabs(trvz-shvz)>=0.5 && reco_eshwcc <= 2) {
00397        status=false;      
00398      }
00399     }
00400   }
00401   if(!status) ishw=-1;
00402   
00403   return status;
00404 }

Bool_t MadBase::LoadShowerAtTrackVertex ( Int_t  event,
Int_t  track,
Int_t &  shwidx 
) [protected]

Definition at line 436 of file MadBase.cxx.

References NtpSRStripPulseHeight::gev, NtpSRShowerPulseHeight::linCCgev, LoadEvent(), LoadShower(), LoadTrack(), NtpSREvent::nshower, ntpEvent, ntpShower, ntpTrack, NtpSRShower::ph, NtpSREvent::shw, NtpSRShower::shwph, NtpSRTrack::vtx, NtpSRShower::vtx, and NtpSRVertex::z.

Referenced by GetShowerAtTrackVertex(), MadScanDisplay::PassCuts(), MadEvDisplay::PassCuts(), and MadQuantities::ShowerValidation().

00436                                                                         {
00437 
00438   Bool_t status = false;
00439   ntpShower = 0;
00440   if(!LoadEvent(ievt)) return status;
00441   if(!LoadTrack(itrk)) return status;
00442 
00443   Float_t closest_ph = 0;
00444   Float_t closest_vtx = 1000.;
00445   const Float_t close_enough=7*0.06; // about 1 interaction length
00446   int *showers = ntpEvent->shw;
00447   for(int i=0;i<ntpEvent->nshower;i++){
00448     if(!LoadShower(showers[i])) continue;
00449     /*
00450     Float_t vtx_sep = TMath::Sqrt(TMath::Power(ntpShower->vtx.x-ntpTrack->vtx.x,2) +
00451                                   TMath::Power(ntpShower->vtx.y-ntpTrack->vtx.y,2) +
00452                                   TMath::Power(ntpShower->vtx.z-ntpTrack->vtx.z,2));
00453     */
00454     Float_t vtx_sep = TMath::Abs(ntpShower->vtx.z-ntpTrack->vtx.z);
00455 
00456     // if this is the closest shower
00457     if(vtx_sep < closest_vtx) {
00458       ishw = showers[i];
00459       closest_vtx = vtx_sep;
00460       // this is a check to make sure we have R1.16 or greater shw variables
00461       if(ntpShower->shwph.linCCgev>0) closest_ph = ntpShower->shwph.linCCgev;
00462       else closest_ph=ntpShower->ph.gev;
00463     }
00464     // if this isn't the closest shower but it's within close_enough m of the
00465     // track vertex and has a larger pulseheight
00466     else if(vtx_sep<close_enough && ntpShower->ph.gev>closest_ph){
00467       ishw = showers[i];
00468       closest_vtx = vtx_sep;
00469 
00470       if(ntpShower->shwph.linCCgev>0) closest_ph = ntpShower->shwph.linCCgev;
00471       else closest_ph=ntpShower->ph.gev;
00472     }
00473   }
00474   ntpShower = 0;
00475   // only associate showers within close_enough m of the track vertex
00476   if(closest_vtx<close_enough){
00477     status = true;
00478     LoadShower(ishw);
00479   }
00480   return status;
00481 }

Bool_t MadBase::LoadSlice ( Int_t  idx  )  [protected]

Definition at line 501 of file MadBase.cxx.

References isST, ntpSlice, record, NtpSRRecord::slc, NtpStRecord::slc, and strecord.

Referenced by MadMKAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), MadScanDisplay::Display(), MadEvDisplay::Display(), GetEntry(), GetSlice(), MadScanDisplay::InFidNoTrk(), MadScanDisplay::InFidTrk(), MadCluAnalysis::IsTrackInSlice(), LoadSliceForRecoTH(), MadCBSQEAnalysis::MakeQEFile(), MadScanDisplay::ROICalc(), and NuMadAnalysis::SetEntry().

00501                                    {
00502 
00503   Bool_t status = false;
00504   TClonesArray* pointSliceArray = NULL;
00505   if(isST) pointSliceArray = (strecord->slc);
00506   else pointSliceArray = (record->slc);
00507   TClonesArray& sliceArray = *pointSliceArray;
00508 //MAK:06/06/05  if(islc>=0&&islc<sliceArray.GetEntries()) {
00509   if(islc>=0&&islc<sliceArray.GetEntriesFast()) {
00510     ntpSlice = dynamic_cast<NtpSRSlice *>(sliceArray[islc]);
00511     status = true;
00512   }
00513   else ntpSlice = 0;
00514   
00515   return status;
00516 }

Bool_t MadBase::LoadSliceForRecoTH ( Int_t  ,
Int_t &   
) [protected]

Definition at line 627 of file MadBase.cxx.

References isMC, isTH, LoadEvent(), LoadSlice(), LoadTHSlice(), ntpEvent, ntpSlice, and NtpSREvent::slc.

Referenced by MadEvDisplay::Display(), GetSliceForRecoTH(), MadScanDisplay::NextPass(), MadEvDisplay::NextPass(), MadScanDisplay::PrevPass(), and MadEvDisplay::PrevPass().

00627                                                           {
00628 
00629   Bool_t status = false;
00630   ntpSlice = 0;
00631   if(!LoadEvent(ievt)) return status;
00632   if(!isMC) return status;
00633   if(!isTH) return status;
00634 
00635   /*
00636     Int_t itru = 0;
00637     if(LoadTruthForRecoTH(ievt,itru)){
00638     Int_t count = 0;
00639     while(!status){
00640     if(!LoadTHSlice(count)) break;
00641     if(ntpTHSlice->neumc==itru) {
00642     if(LoadSlice(count)){
00643     islice = count;
00644     status = true;
00645     }
00646     }
00647     count += 1;
00648     }
00649     }
00650   */
00651 
00652   //Tingjun's sugggested change:
00653   islice = ntpEvent->slc;
00654   if (LoadSlice(islice)&&LoadTHSlice(islice)) status = true;
00655   
00656   return status;
00657 }

Bool_t MadBase::LoadStdHep ( Int_t  idx  )  [protected]

Definition at line 571 of file MadBase.cxx.

References isMC, isST, mcrecord, ntpStdHep, NtpMCRecord::stdhep, NtpStRecord::stdhep, and strecord.

Referenced by MadScanDisplay::DrawInteractionDiagram(), MadEvDisplay::DrawInteractionDiagram(), GetEntry(), GetStdHep(), MadQuantities::HadronicFinalState(), MadQuantities::Initial_state(), MadCluAnalysis::Plot(), and MadQuantities::SetStdHepVars().

00571                                    {
00572   
00573   Bool_t status = false;
00574   if(!isMC) return status;
00575   TClonesArray* pointStdhepArray = NULL;
00576   if(isST) pointStdhepArray = (strecord->stdhep);
00577   else pointStdhepArray = (mcrecord->stdhep);
00578   TClonesArray& stdhepArray = *pointStdhepArray;
00579 //MAK:06/06/05  if(ish>=0&&ish<stdhepArray.GetEntries()) {
00580   if(ish>=0&&ish<stdhepArray.GetEntriesFast()) {
00581     ntpStdHep = dynamic_cast<NtpMCStdHep *>(stdhepArray[ish]);
00582     status = true;
00583   }
00584   else ntpStdHep = 0;
00585   
00586   return status;
00587 }

Bool_t MadBase::LoadStrip ( Int_t  idx  )  [protected]

Definition at line 692 of file MadBase.cxx.

References isST, ntpStrip, record, NtpSRRecord::stp, NtpStRecord::stp, and strecord.

Referenced by MadTestAnalysis::AnnVar(), MadPIDAnalysis::AnnVar(), MadDpAnalysis::AnnVar(), MadCluAnalysis::AveNumSSPlane(), MadQuantities::ClosestDistanceToEvent(), MadTVAnalysis::ComputeLowPHRatio(), MadMKAnalysis::ComputeLowPHRatio(), MadTestAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), MadScanDisplay::Display(), MadTVAnalysis::DupRecoStrips(), MadMKAnalysis::DupRecoStrips(), MadTVAnalysis::EarlyActivity(), MadMKAnalysis::EarlyActivity(), MadTVAnalysis::GetEvtTimeChar(), MadMKAnalysis::GetEvtTimeChar(), MadTVAnalysis::GetEvtTimeCharPHC(), MadMKAnalysis::GetEvtTimeCharPHC(), GetStrip(), MadScanDisplay::ROICalc(), MadQuantities::ShowerValidation(), MadScanDisplay::ShwROICalc(), MadTVAnalysis::SigInOut(), and MadMKAnalysis::SigInOut().

00692                                    {
00693 
00694   Bool_t status = false;
00695   TClonesArray* pointStripArray = NULL;
00696   if(isST) pointStripArray = (strecord->stp);
00697   else pointStripArray = (record->stp);
00698   TClonesArray& stripArray = *pointStripArray;
00699   //MAK:06/06/05 if(istp>=0&&istp<stripArray.GetEntries()) { 
00700   if(istp>=0&&istp<stripArray.GetEntriesFast()) {
00701     ntpStrip = dynamic_cast<NtpSRStrip *>(stripArray[istp]);
00702     status = true;
00703   }
00704   else ntpStrip = 0;
00705   
00706   return status;
00707 }

Bool_t MadBase::LoadTHEvent ( Int_t   )  [protected]

Definition at line 270 of file MadBase.cxx.

References isST, isTH, ntpTHEvent, strecord, NtpTHRecord::thevt, NtpStRecord::thevt, and threcord.

Referenced by MadPIDAnalysis::CreatePAN(), GetEntry(), GetTHEvent(), MadScanDisplay::PassCuts(), MadEvDisplay::PassCuts(), and MadQuantities::ShowerValidation().

00270                                      {
00271 
00272   Bool_t status = false;
00273   if(!isTH) return status; 
00274   TClonesArray* pointEventArray = NULL;
00275   if(isST) pointEventArray = (strecord->thevt);
00276   else pointEventArray = (threcord->thevt);
00277   TClonesArray& eventArray = *pointEventArray;
00278   //MAK:06/06/05  if(ievt>=0&&ievt<eventArray.GetEntries()) {
00279   if(ievt>=0&&ievt<eventArray.GetEntriesFast()) {
00280     ntpTHEvent = dynamic_cast<NtpTHEvent *>(eventArray[ievt]);
00281     status = true;
00282   }
00283   else ntpTHEvent = 0;
00284   
00285   return status;
00286 }

Bool_t MadBase::LoadTHShower ( Int_t   )  [protected]

Definition at line 483 of file MadBase.cxx.

References isST, isTH, ntpTHShower, strecord, threcord, NtpTHRecord::thshw, and NtpStRecord::thshw.

Referenced by MadMKAnalysis::CreatePAN(), MadScanDisplay::DrawTextBox(), MadEvDisplay::DrawTextBox(), GetEntry(), GetTHShower(), LoadTruthForRecoTH(), MadScanDisplay::PassCuts(), MadEvDisplay::PassCuts(), and MadQuantities::ShowerValidation().

00483                                       {
00484 
00485   Bool_t status = false;
00486   if(!isTH) return status; 
00487   TClonesArray* pointShowerArray = NULL;
00488   if(isST) pointShowerArray = (strecord->thshw);
00489   else pointShowerArray = (threcord->thshw);
00490   TClonesArray& showerArray = *pointShowerArray;
00491 //MAK:06/06/05  if(ishw>=0&&ishw<showerArray.GetEntries()) {
00492   if(ishw>=0&&ishw<showerArray.GetEntriesFast()) {
00493     ntpTHShower = dynamic_cast<NtpTHShower *>(showerArray[ishw]);
00494     status = true;
00495   }
00496   else ntpTHShower = 0;
00497   
00498   return status;
00499 }

Bool_t MadBase::LoadTHSlice ( Int_t   )  [protected]

Definition at line 518 of file MadBase.cxx.

References isST, isTH, ntpTHSlice, strecord, threcord, NtpTHRecord::thslc, and NtpStRecord::thslc.

Referenced by MadScanDisplay::DrawTextBox(), MadEvDisplay::DrawTextBox(), GetEntry(), GetTHSlice(), and LoadSliceForRecoTH().

00518                                      {
00519 
00520   Bool_t status = false;
00521   if(!isTH) return status;
00522   TClonesArray* pointSliceArray = NULL;
00523   if(isST) pointSliceArray = (strecord->thslc);
00524   else pointSliceArray = (threcord->thslc);
00525   TClonesArray& sliceArray = *pointSliceArray;
00526 //MAK:06/06/05  if(islc>=0&&islc<sliceArray.GetEntries()) {
00527   if(islc>=0&&islc<sliceArray.GetEntriesFast()) {
00528     ntpTHSlice = dynamic_cast<NtpTHSlice *>(sliceArray[islc]);
00529     status = true;
00530   }
00531   else ntpTHSlice = 0;
00532   
00533   return status;
00534 }

Bool_t MadBase::LoadTHTrack ( Int_t   )  [protected]

Definition at line 288 of file MadBase.cxx.

References isST, isTH, ntpTHTrack, strecord, threcord, NtpTHRecord::thtrk, and NtpStRecord::thtrk.

Referenced by MadScanDisplay::DrawTextBox(), MadEvDisplay::DrawTextBox(), GetEntry(), GetTHTrack(), LoadTruthForRecoTH(), MadTestAnalysis::MakeMyFile(), MadPIDAnalysis::MakeMyFile(), MadDpAnalysis::MakeMyFile(), MadEdAnalysis::MyMakeMyFile(), and MadQuantities::ShowerValidation().

00288                                      {
00289 
00290   Bool_t status = false;
00291   if(!isTH) return status; 
00292   TClonesArray* pointTrackArray = NULL;
00293   if(isST) pointTrackArray = (strecord->thtrk);
00294   else pointTrackArray = (threcord->thtrk);
00295   TClonesArray& trackArray = *pointTrackArray;
00296 //MAK:06/06/05  if(itrk>=0&&itrk<trackArray.GetEntries()) {
00297   if(itrk>=0&&itrk<trackArray.GetEntriesFast()) {
00298     ntpTHTrack = dynamic_cast<NtpTHTrack *>(trackArray[itrk]);
00299     status = true;
00300   }
00301   else ntpTHTrack = 0;
00302   
00303   return status;
00304 }

Bool_t MadBase::LoadTrack ( Int_t  idx  )  [protected]

Definition at line 227 of file MadBase.cxx.

References isST, ntpTrack, record, strecord, NtpSRRecord::trk, and NtpStRecord::trk.

Referenced by MadTestAnalysis::AnnVar(), MadQuantities::CCNCSepVars(), MadTestAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadEdAnalysis::DeDx(), MadEdAnalysis::ETrkF(), MadScanDisplay::EventDump(), MadEvDisplay::EventDump(), GetEntry(), MadQuantities::GetNonTrkSC(), MadQuantities::GetShwSC(), GetTrack(), MadEdAnalysis::HitF(), MadQuantities::IsFidAll(), MadQuantities::IsFidVtx(), MadQuantities::IsFidVtxTrk(), MadCluAnalysis::IsTrackInSlice(), LoadLargestTrackFromEvent(), LoadShowerAtTrackVertex(), MadTestAnalysis::MakeMyFile(), MadPIDAnalysis::MakeMyFile(), MadDpAnalysis::MakeMyFile(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyIsFidVtx(), MadEdAnalysis::MyIsFidVtxrz(), MadEdAnalysis::MyMakeMyFile(), MadQuantities::PassTrackCuts(), MadScanDisplay::RecoMKMuEnergy(), MadMKAnalysis::RecoMKMuEnergy(), MadEvDisplay::RecoMKMuEnergy(), MadEdAnalysis::RecoMuAZM(), MadQuantities::RecoMuDCosNeu(), MadTVAnalysis::RecoMuDCosNeuFD(), MadScanDisplay::RecoMuDCosNeuFD(), MadMKAnalysis::RecoMuDCosNeuFD(), MadEvDisplay::RecoMuDCosNeuFD(), MadTVAnalysis::RecoMuDCosNeuND(), MadScanDisplay::RecoMuDCosNeuND(), MadMKAnalysis::RecoMuDCosNeuND(), MadEvDisplay::RecoMuDCosNeuND(), MadEdAnalysis::RecoMuDCosY(), MadQuantities::RecoMuDCosZ(), MadQuantities::RecoMuEnergy(), MadQuantities::RecoMuEnergyNew(), MadQuantities::RecoMuQP(), MadEdAnalysis::RecoMuZn(), MadQuantities::RecoQENuEnergy(), MadQuantities::RecoQEQ2(), NuMadAnalysis::SetEntry(), MadTVAnalysis::SigInOut(), MadMKAnalysis::SigInOut(), MadEdAnalysis::Trkphsig(), and MadEdAnalysis::Trkplanes().

00227                                    {
00228 
00229   Bool_t status = false;
00230   TClonesArray* pointTrackArray = NULL;
00231   if(isST) pointTrackArray = (strecord->trk);
00232   else pointTrackArray = (record->trk);
00233   TClonesArray& trackArray = *pointTrackArray;
00234 //MAK:06/06/05  if(itrk>=0&&itrk<trackArray.GetEntries()) {
00235   if(itrk>=0&&itrk<trackArray.GetEntriesFast()) {
00236     ntpTrack = dynamic_cast<NtpSRTrack *>(trackArray[itrk]);
00237     status = true;
00238   }
00239   else ntpTrack = 0;
00240   
00241   return status;
00242 }

Bool_t MadBase::LoadTruth ( Int_t  idx  )  [protected]

Definition at line 553 of file MadBase.cxx.

References isMC, isST, NtpMCRecord::mc, NtpStRecord::mc, mcrecord, ntpTruth, and strecord.

Referenced by MadPIDAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadEvDisplay::Display(), MadScanDisplay::DrawInteractionDiagram(), MadEvDisplay::DrawInteractionDiagram(), MadTVAnalysis::FillMCHists(), MadMKAnalysis::FillMCHists(), GetEntry(), MadQuantities::GetTrueShwSC(), GetTruth(), MadQuantities::HadronicFinalState(), MadHandScan::HandScanDisplay(), MadQuantities::IAction(), MadQuantities::Initial_state(), MadQuantities::INu(), MadQuantities::INuNoOsc(), MadQuantities::IResonance(), LoadTruthForReco(), LoadTruthForRecoTH(), MadQuantities::Nucleus(), MadUserAnalysis::PassTruthSignal(), MadTestAnalysis::PassTruthSignal(), MadPIDAnalysis::PassTruthSignal(), MadDpAnalysis::PassTruthSignal(), MadCluAnalysis::PassTruthSignal(), MadCBSQEAnalysis::PassTruthSignal(), MadAnalysis::PassTruthSignal(), MadQuantities::Q2(), MadQuantities::SetStdHepVars(), MadQuantities::Target4Vector(), MadQuantities::TrueLeptonEnergy(), MadQuantities::TrueMuDCosNeu(), MadQuantities::TrueMuDCosZ(), MadQuantities::TrueMuEnergy(), MadQuantities::TrueMuQP(), MadQuantities::TrueNuEnergy(), MadQuantities::TrueNuMom(), MadQuantities::TrueShwEnergy(), MadQuantities::TrueVtx(), MadQuantities::W2(), MadQuantities::X(), and MadQuantities::Y().

00553                                   {
00554   
00555   Bool_t status = false;
00556   if(!isMC) return status;
00557   TClonesArray* pointMcArray = NULL;
00558   if(isST) pointMcArray = (strecord->mc);
00559   else pointMcArray = (mcrecord->mc);
00560   TClonesArray& mcArray = *pointMcArray;
00561 //MAK:06/06/05  if(itr>=0&&itr<mcArray.GetEntries()) {
00562   if(itr>=0&&itr<mcArray.GetEntriesFast()) {
00563     ntpTruth = dynamic_cast<NtpMCTruth *>(mcArray[itr]);
00564     status = true;
00565   }
00566   else ntpTruth = 0;
00567   
00568   return status;
00569 }

Bool_t MadBase::LoadTruthForReco ( Int_t  ,
Int_t &   
) [protected]

Definition at line 589 of file MadBase.cxx.

References isMC, isST, LoadEvent(), LoadTruth(), NtpMCRecord::mc, NtpStRecord::mc, mcrecord, ntpEvent, ntpTruth, strecord, NtpSREvent::vtx, NtpMCTruth::vtxx, NtpMCTruth::vtxy, NtpMCTruth::vtxz, NtpSRVertex::x, NtpSRVertex::y, and NtpSRVertex::z.

Referenced by MadEvDisplay::Display(), and GetTruthForReco().

00589                                                         {
00590 
00591   Bool_t status = false;  
00592   ntpTruth = 0;
00593   if(!LoadEvent(ievt)) return status;
00594   if(!isMC) return status;
00595 
00596   TClonesArray* pointMcArray = NULL;
00597   if(isST) pointMcArray = (strecord->mc);
00598   else pointMcArray = (mcrecord->mc);
00599   TClonesArray& mcArray = *pointMcArray;
00600   if(mcArray.GetEntries()==1) { //if only one MC event is present just load it
00601     LoadTruth(0);
00602     return true;
00603   }
00604 
00605   float mindist = 999;
00606   int itr = 0;
00607   //loop over all MC events and look for closest vertex to reco vertex
00608   for(int i=0;i<mcArray.GetEntries();i++){
00609     ntpTruth = dynamic_cast<NtpMCTruth *>(mcArray[i]);
00610     float dist = sqrt(TMath::Power(ntpTruth->vtxx/100.-ntpEvent->vtx.x,2)
00611                       +TMath::Power(ntpTruth->vtxy/100.-ntpEvent->vtx.y,2)
00612                       +TMath::Power(ntpTruth->vtxz/100.-ntpEvent->vtx.z,2));
00613     if(dist<mindist) { 
00614       itr = i;
00615       mindist = dist;
00616     }
00617   }
00618 
00619   if(mindist<0.5) {  //Need to place a fairly loose cut to pick up showers
00620     status = true;   //From looking at FarDet events, a cut of 0.5m 
00621     LoadTruth(itr);  //correctly pairs up 95% of events (LE beam,unoscillated) 
00622     itruth = itr;
00623   }
00624   return status;
00625 }

Bool_t MadBase::LoadTruthForRecoTH ( Int_t  ,
Int_t &   
) [protected]

Definition at line 660 of file MadBase.cxx.

References isMC, isTH, LoadEvent(), LoadTHShower(), LoadTHTrack(), LoadTruth(), NtpTHShower::neumc, NtpTHTrack::neumc, NtpSREvent::nshower, ntpEvent, ntpTHShower, ntpTHTrack, ntpTruth, NtpSREvent::ntrack, NtpSREvent::shw, and NtpSREvent::trk.

Referenced by MadCluAnalysis::CallUserFunctions(), MadAnalysis::CreateANtpPAN(), MadTestAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), MadEvDisplay::Display(), MadCluAnalysis::FOM(), GetTruthForRecoTH(), MadPIDAnalysis::MakeAbIDFile(), MadEdAnalysis::MakeEff(), MadUserAnalysis::MakeMyFile(), MadTestAnalysis::MakeMyFile(), MadPIDAnalysis::MakeMyFile(), MadDpAnalysis::MakeMyFile(), MadCBSQEAnalysis::MakeQEFile(), MadQuantities::MakeValidationFile(), MadEdAnalysis::MCHist(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyMakeMyFile(), MadEdAnalysis::MyMakeQEFile(), MadScanDisplay::NextPass(), MadEvDisplay::NextPass(), MadEdAnalysis::PIDHisto(), MadCluAnalysis::Plot(), MadScanDisplay::PrevPass(), MadEvDisplay::PrevPass(), MadAnalysis::RecoMC(), MadAnalysis::RecoMCExperiment(), MadQuantities::ShowerValidation(), and MadCBSQEAnalysis::TestQEDiscrim().

00660                                                           {
00661 
00662   Bool_t status = false;
00663   ntpTruth = 0;
00664   if(!LoadEvent(ievt)) return status;
00665   if(!isMC) return status;
00666   if(!isTH) return status;
00667   
00668   if(ntpEvent->ntrack>0) {
00669     int *tracks = ntpEvent->trk;
00670     if(LoadTHTrack(int(tracks[0]))){
00671       int ind = ntpTHTrack->neumc;
00672       if(LoadTruth(ind)) {
00673         itruth = ind;
00674         status = true;
00675       }
00676     }
00677   }
00678   if(!status&&ntpEvent->nshower>0) {
00679     int *showers = ntpEvent->shw;    
00680     if(LoadTHShower(int(showers[0]))){
00681       int ind = ntpTHShower->neumc;
00682       if(LoadTruth(ind)) {
00683         itruth = ind;
00684         status = true;
00685       }
00686     }
00687   }
00688   return status;
00689 
00690 }

Float_t MadBase::RecoShwEnergy ( Int_t  ishw = 0,
Int_t  opt = -1,
Int_t  det = 1 
) [protected]

Definition at line 406 of file MadBase.cxx.

References EnergyCorrections::CorrectShowerEnergyFar(), EnergyCorrections::CorrectShowerEnergyNear(), NtpSRShowerPulseHeight::EMgev, NtpSRStripPulseHeight::gev, CandShowerHandle::kCC, CandShowerHandle::kNC, CandShowerHandle::kWtCC, CandShowerHandle::kWtNC, NtpSRShowerPulseHeight::linCCgev, NtpSRShowerPulseHeight::linNCgev, LoadShower(), ntpShower, NtpSRShower::ph, NtpSRShower::shwph, NtpSRShowerPulseHeight::wtCCgev, and NtpSRShowerPulseHeight::wtNCgev.

Referenced by LoadShower_Jim().

00406                                                               {
00407   //use SR reco
00408   Float_t shower_ene=0;
00409                                                                                                                                          
00410   if(LoadShower(ishw)) {
00411   if(det==1){
00412     if(opt==-1) shower_ene = ntpShower->ph.gev;
00413     if(opt==0)  shower_ene = CorrectShowerEnergyNear(ntpShower->shwph.linCCgev,CandShowerHandle::kCC);
00414     if(opt==1)  shower_ene = CorrectShowerEnergyNear(ntpShower->shwph.wtCCgev,CandShowerHandle::kWtCC);
00415     if(opt==2)  shower_ene = CorrectShowerEnergyNear(ntpShower->shwph.linNCgev,CandShowerHandle::kNC);
00416     if(opt==3)  shower_ene = CorrectShowerEnergyNear(ntpShower->shwph.wtNCgev,CandShowerHandle::kWtNC);
00417     if(opt==4)  shower_ene = ntpShower->shwph.EMgev;
00418     return shower_ene;
00419   }
00420    if(det==2){
00421     if(opt==-1) shower_ene = ntpShower->ph.gev;
00422     if(opt==0)  shower_ene = CorrectShowerEnergyFar(ntpShower->shwph.linCCgev,CandShowerHandle::kCC);
00423     if(opt==1)  shower_ene = CorrectShowerEnergyFar(ntpShower->shwph.wtCCgev,CandShowerHandle::kWtCC);
00424     if(opt==2)  shower_ene = CorrectShowerEnergyFar(ntpShower->shwph.linNCgev,CandShowerHandle::kNC);
00425     if(opt==3)  shower_ene = CorrectShowerEnergyFar(ntpShower->shwph.wtNCgev,CandShowerHandle::kWtNC);
00426     if(opt==4)  shower_ene = ntpShower->shwph.EMgev;
00427     return shower_ene;
00428                                                                                                                                          
00429   }
00430 }
00431   return 0;
00432 }


Member Data Documentation

NtpSRDetStatus* MadBase::detStatus [protected]

Definition at line 58 of file MadBase.h.

Referenced by MadTVAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), GetEntry(), and NuMadAnalysis::SetEntry().

NtpSRDmxStatus* MadBase::dmxStatus [protected]

Definition at line 57 of file MadBase.h.

Referenced by MadTVAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), GetEntry(), and NuMadAnalysis::SetEntry().

NtpEMRecord* MadBase::emrecord [protected]

Definition at line 79 of file MadBase.h.

Referenced by GetEntry(), InitChain(), LoadEMShower(), MadAnalysis::MadAnalysis(), MadBase(), MadCBSQEAnalysis::MadCBSQEAnalysis(), MadCluAnalysis::MadCluAnalysis(), MadDpAnalysis::MadDpAnalysis(), MadEdAnalysis::MadEdAnalysis(), MadEvDisplay::MadEvDisplay(), MadHandScan::MadHandScan(), MadMKAnalysis::MadMKAnalysis(), MadPIDAnalysis::MadPIDAnalysis(), MadQuantities::MadQuantities(), MadScanDisplay::MadScanDisplay(), MadTestAnalysis::MadTestAnalysis(), MadTVAnalysis::MadTVAnalysis(), MadUserAnalysis::MadUserAnalysis(), NuMadAnalysis::NuMadAnalysis(), and MadAnalysis::ReInit().

NtpSREventSummary* MadBase::eventSummary [protected]

Definition at line 56 of file MadBase.h.

Referenced by Clear(), MadAnalysis::CreateANtpPAN(), MadTVAnalysis::CreatePAN(), MadTestAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), MadEdAnalysis::DataHist(), MadScanDisplay::Display(), MadScanDisplay::DrawTextBox(), MadEvDisplay::DrawTextBox(), MadTVAnalysis::DupRecoStrips(), MadMKAnalysis::DupRecoStrips(), MadTVAnalysis::EarlyActivity(), MadMKAnalysis::EarlyActivity(), MadTVAnalysis::FDRCBoundary(), MadCluAnalysis::FOM(), GetEntry(), GetEventSummary(), MadMKAnalysis::GetEvtTimeChar(), MadTVAnalysis::GetEvtTimeCharPHC(), MadMKAnalysis::GetEvtTimeCharPHC(), MadQuantities::GetShwSC(), MadHandScan::HandScanDisplay(), MadScanDisplay::InFidNoTrk(), MadScanDisplay::InFidTrk(), MadQuantities::IsSingleTrack(), MadQuantities::IsTrack(), MadCluAnalysis::IsTrackInSlice(), MadPIDAnalysis::MakeAbIDFile(), MadEdAnalysis::MakeEff(), MadUserAnalysis::MakeMyFile(), MadTestAnalysis::MakeMyFile(), MadPIDAnalysis::MakeMyFile(), MadDpAnalysis::MakeMyFile(), MadCBSQEAnalysis::MakeQEFile(), MadQuantities::MakeValidationFile(), MadEdAnalysis::MCHist(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyMakeMyFile(), MadEdAnalysis::MyMakeQEFile(), MadScanDisplay::PassCuts(), MadEvDisplay::PassCuts(), MadTestAnalysis::PID(), MadPIDAnalysis::PID(), MadEdAnalysis::PID(), MadDpAnalysis::PID(), MadEdAnalysis::PIDHisto(), MadCluAnalysis::Plot(), MadAnalysis::RecoExperiment(), MadAnalysis::RecoMC(), MadAnalysis::RecoMCExperiment(), NuMadAnalysis::SetEntry(), MadQuantities::ShowerValidation(), and MadCBSQEAnalysis::TestQEDiscrim().

MadChain* MadBase::fChain [protected]

Definition at line 44 of file MadBase.h.

Referenced by GetEntry(), InitChain(), MadScanDisplay::JumpTo(), MadEvDisplay::JumpTo(), MadAnalysis::MadAnalysis(), MadBase(), MadCBSQEAnalysis::MadCBSQEAnalysis(), MadCluAnalysis::MadCluAnalysis(), MadEdAnalysis::MadEdAnalysis(), MadEvDisplay::MadEvDisplay(), MadMKAnalysis::MadMKAnalysis(), MadQuantities::MadQuantities(), MadScanDisplay::MadScanDisplay(), MadTVAnalysis::MadTVAnalysis(), MadScanDisplay::NextInterestingEvent(), MadEvDisplay::NextInterestingEvent(), and ~MadBase().

int MadBase::fCurRun [protected]

Definition at line 47 of file MadBase.h.

Referenced by GetEntry(), MadBase(), MadEvDisplay::MadEvDisplay(), MadScanDisplay::MadScanDisplay(), NuMadAnalysis::NuMadAnalysis(), and NuMadAnalysis::SetEntry().

JobC* MadBase::fJC [protected]

Definition at line 45 of file MadBase.h.

Referenced by GetEntry(), MadAnalysis::MadAnalysis(), MadBase(), MadCBSQEAnalysis::MadCBSQEAnalysis(), MadCluAnalysis::MadCluAnalysis(), MadDpAnalysis::MadDpAnalysis(), MadEdAnalysis::MadEdAnalysis(), MadEvDisplay::MadEvDisplay(), MadMKAnalysis::MadMKAnalysis(), MadPIDAnalysis::MadPIDAnalysis(), MadQuantities::MadQuantities(), MadScanDisplay::MadScanDisplay(), MadTestAnalysis::MadTestAnalysis(), MadTVAnalysis::MadTVAnalysis(), MadUserAnalysis::MadUserAnalysis(), and MadAnalysis::ReInit().

Bool_t MadBase::isEM [protected]

Definition at line 85 of file MadBase.h.

Referenced by GetEntry(), MadHandScan::HandScanDisplay(), InitChain(), LoadEMShower(), MadAnalysis::MadAnalysis(), MadBase(), MadCBSQEAnalysis::MadCBSQEAnalysis(), MadCluAnalysis::MadCluAnalysis(), MadDpAnalysis::MadDpAnalysis(), MadEdAnalysis::MadEdAnalysis(), MadEvDisplay::MadEvDisplay(), MadHandScan::MadHandScan(), MadMKAnalysis::MadMKAnalysis(), MadPIDAnalysis::MadPIDAnalysis(), MadQuantities::MadQuantities(), MadScanDisplay::MadScanDisplay(), MadTestAnalysis::MadTestAnalysis(), MadTVAnalysis::MadTVAnalysis(), MadUserAnalysis::MadUserAnalysis(), NuMadAnalysis::NuMadAnalysis(), and MadAnalysis::ReInit().

Bool_t MadBase::isMC [protected]

Definition at line 83 of file MadBase.h.

Referenced by MadAnalysis::CreateANtpPAN(), MadEvDisplay::Display(), MadScanDisplay::DrawTextBox(), MadEvDisplay::DrawTextBox(), GetEntry(), InitChain(), LoadSliceForRecoTH(), LoadStdHep(), LoadTruth(), LoadTruthForReco(), LoadTruthForRecoTH(), MadAnalysis::MadAnalysis(), MadBase(), MadCBSQEAnalysis::MadCBSQEAnalysis(), MadCluAnalysis::MadCluAnalysis(), MadDpAnalysis::MadDpAnalysis(), MadEdAnalysis::MadEdAnalysis(), MadEvDisplay::MadEvDisplay(), MadHandScan::MadHandScan(), MadMKAnalysis::MadMKAnalysis(), MadPIDAnalysis::MadPIDAnalysis(), MadQuantities::MadQuantities(), MadScanDisplay::MadScanDisplay(), MadTestAnalysis::MadTestAnalysis(), MadTVAnalysis::MadTVAnalysis(), MadUserAnalysis::MadUserAnalysis(), MadScanDisplay::NextPass(), MadEvDisplay::NextPass(), NuMadAnalysis::NuMadAnalysis(), MadScanDisplay::PrevPass(), MadEvDisplay::PrevPass(), MadScanDisplay::PrintDisplay(), MadEvDisplay::PrintDisplay(), MadAnalysis::ReInit(), and NuMadAnalysis::SetEntry().

Bool_t MadBase::isST [protected]

Definition at line 86 of file MadBase.h.

Referenced by MadQuantities::CCNCSepVars(), MadTestAnalysis::CreatePAN(), MadScanDisplay::Display(), MadEvDisplay::Display(), MadScanDisplay::DrawInteractionDiagram(), MadEvDisplay::DrawInteractionDiagram(), GetEntry(), MadQuantities::GetNonTrkSC(), MadQuantities::GetShwSC(), MadQuantities::GetSqrtShwSC(), MadQuantities::GetSqrtTrkSkimSC(), MadQuantities::HadronicFinalState(), MadHandScan::HandScanDisplay(), InitChain(), MadQuantities::Initial_state(), LoadCluster(), LoadEvent(), LoadShieldStrip(), LoadShower(), LoadSlice(), LoadStdHep(), LoadStrip(), LoadTHEvent(), LoadTHShower(), LoadTHSlice(), LoadTHTrack(), LoadTrack(), LoadTruth(), LoadTruthForReco(), MadBase(), MadEdAnalysis::MyCreatePAN(), NuMadAnalysis::NuMadAnalysis(), MadCluAnalysis::Plot(), MadScanDisplay::PrevFidNoTrk(), MadScanDisplay::PrevFidTrk(), MadScanDisplay::PrevPass(), MadEvDisplay::PrevPass(), NuMadAnalysis::SetEntry(), and MadQuantities::SetStdHepVars().

Bool_t MadBase::isTH [protected]

Definition at line 84 of file MadBase.h.

Referenced by MadEvDisplay::Display(), GetEntry(), InitChain(), LoadSliceForRecoTH(), LoadTHEvent(), LoadTHShower(), LoadTHSlice(), LoadTHTrack(), LoadTruthForRecoTH(), MadAnalysis::MadAnalysis(), MadBase(), MadCBSQEAnalysis::MadCBSQEAnalysis(), MadCluAnalysis::MadCluAnalysis(), MadDpAnalysis::MadDpAnalysis(), MadEdAnalysis::MadEdAnalysis(), MadEvDisplay::MadEvDisplay(), MadHandScan::MadHandScan(), MadMKAnalysis::MadMKAnalysis(), MadPIDAnalysis::MadPIDAnalysis(), MadQuantities::MadQuantities(), MadScanDisplay::MadScanDisplay(), MadTestAnalysis::MadTestAnalysis(), MadTVAnalysis::MadTVAnalysis(), MadUserAnalysis::MadUserAnalysis(), MadScanDisplay::NextPass(), MadEvDisplay::NextPass(), NuMadAnalysis::NuMadAnalysis(), MadScanDisplay::PrevPass(), MadEvDisplay::PrevPass(), MadAnalysis::ReInit(), and NuMadAnalysis::SetEntry().

string MadBase::jcPath [protected]

Definition at line 46 of file MadBase.h.

Referenced by GetEntry(), MadAnalysis::MadAnalysis(), MadBase(), MadCBSQEAnalysis::MadCBSQEAnalysis(), MadCluAnalysis::MadCluAnalysis(), MadDpAnalysis::MadDpAnalysis(), MadEdAnalysis::MadEdAnalysis(), MadEvDisplay::MadEvDisplay(), MadMKAnalysis::MadMKAnalysis(), MadPIDAnalysis::MadPIDAnalysis(), MadQuantities::MadQuantities(), MadScanDisplay::MadScanDisplay(), MadTestAnalysis::MadTestAnalysis(), MadTVAnalysis::MadTVAnalysis(), MadUserAnalysis::MadUserAnalysis(), and MadAnalysis::ReInit().

int MadBase::lastEntry [protected]

Definition at line 48 of file MadBase.h.

Referenced by MadQuantities::GeantinoEnergy(), GetEntry(), MadScanDisplay::JumpTo(), MadEvDisplay::JumpTo(), MadBase(), MadQuantities::MaxFSKaonEnergy(), MadQuantities::MaxFSNeutronEnergy(), MadQuantities::MaxFSPionEnergy(), MadQuantities::MaxFSPiZeroEnergy(), MadQuantities::MaxFSProtonEnergy(), NuMadAnalysis::NuMadAnalysis(), MadQuantities::NumFSGeantino(), MadQuantities::NumFSKaon(), MadQuantities::NumFSNeutron(), MadQuantities::NumFSPion(), MadQuantities::NumFSPiZero(), MadQuantities::NumFSProton(), MadQuantities::SetStdHepVars(), MadQuantities::TotFSKaonEnergy(), MadQuantities::TotFSNeutronEnergy(), MadQuantities::TotFSPionEnergy(), MadQuantities::TotFSPiZeroEnergy(), and MadQuantities::TotFSProtonEnergy().

NtpMCSummary* MadBase::mcHeader [protected]

Definition at line 69 of file MadBase.h.

Referenced by MadTVAnalysis::FillMCHists(), MadMKAnalysis::FillMCHists(), GetEntry(), and NuMadAnalysis::SetEntry().

NtpMCRecord* MadBase::mcrecord [protected]

Definition at line 68 of file MadBase.h.

Referenced by MadAnalysis::CreateANtpPAN(), MadTestAnalysis::CreatePAN(), MadScanDisplay::DrawInteractionDiagram(), MadEvDisplay::DrawInteractionDiagram(), GetEntry(), MadQuantities::HadronicFinalState(), InitChain(), MadQuantities::Initial_state(), LoadStdHep(), LoadTruth(), LoadTruthForReco(), MadAnalysis::MadAnalysis(), MadBase(), MadCBSQEAnalysis::MadCBSQEAnalysis(), MadCluAnalysis::MadCluAnalysis(), MadDpAnalysis::MadDpAnalysis(), MadEdAnalysis::MadEdAnalysis(), MadEvDisplay::MadEvDisplay(), MadHandScan::MadHandScan(), MadMKAnalysis::MadMKAnalysis(), MadPIDAnalysis::MadPIDAnalysis(), MadQuantities::MadQuantities(), MadScanDisplay::MadScanDisplay(), MadTestAnalysis::MadTestAnalysis(), MadTVAnalysis::MadTVAnalysis(), MadUserAnalysis::MadUserAnalysis(), MadEdAnalysis::MyCreatePAN(), NuMadAnalysis::NuMadAnalysis(), MadCluAnalysis::Plot(), MadAnalysis::ReInit(), and MadQuantities::SetStdHepVars().

Int_t MadBase::Nentries [protected]

Definition at line 87 of file MadBase.h.

Referenced by MadAnalysis::CreateANtpPAN(), MadTVAnalysis::CreatePAN(), MadTestAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), MadEdAnalysis::DataHist(), MadCluAnalysis::FOM(), InitChain(), MadScanDisplay::JumpTo(), MadEvDisplay::JumpTo(), MadAnalysis::MadAnalysis(), MadBase(), MadCBSQEAnalysis::MadCBSQEAnalysis(), MadCluAnalysis::MadCluAnalysis(), MadDpAnalysis::MadDpAnalysis(), MadEdAnalysis::MadEdAnalysis(), MadEvDisplay::MadEvDisplay(), MadHandScan::MadHandScan(), MadMKAnalysis::MadMKAnalysis(), MadPIDAnalysis::MadPIDAnalysis(), MadQuantities::MadQuantities(), MadScanDisplay::MadScanDisplay(), MadTestAnalysis::MadTestAnalysis(), MadTVAnalysis::MadTVAnalysis(), MadUserAnalysis::MadUserAnalysis(), MadPIDAnalysis::MakeAbIDFile(), MadEdAnalysis::MakeEff(), MadUserAnalysis::MakeMyFile(), MadTestAnalysis::MakeMyFile(), MadPIDAnalysis::MakeMyFile(), MadDpAnalysis::MakeMyFile(), MadCBSQEAnalysis::MakeQEFile(), MadQuantities::MakeValidationFile(), MadEdAnalysis::MCHist(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyMakeMyFile(), MadEdAnalysis::MyMakeQEFile(), MadScanDisplay::NextEvt(), MadScanDisplay::NextFidNoTrk(), MadScanDisplay::NextFidTrk(), MadScanDisplay::NextPass(), MadEvDisplay::NextPass(), NuMadAnalysis::NuMadAnalysis(), MadEdAnalysis::PIDHisto(), MadCluAnalysis::Plot(), MadAnalysis::RecoExperiment(), MadAnalysis::RecoMC(), MadAnalysis::RecoMCExperiment(), MadAnalysis::ReInit(), MadQuantities::ShowerValidation(), MadScanDisplay::SkipTo(), MadEvDisplay::SkipTo(), and MadCBSQEAnalysis::TestQEDiscrim().

NtpSRCluster* MadBase::ntpCluster [protected]

Definition at line 63 of file MadBase.h.

Referenced by MadCluAnalysis::AveNumSSPlane(), MadCluAnalysis::ChargeFracRMS(), Clear(), MadMKAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), MadCluAnalysis::FillBestProbEM(), MadCluAnalysis::FillNCluster(), GetCluster(), MadQuantities::GetNShowerStrip(), LoadCluster(), MadScanDisplay::PassCuts(), MadEvDisplay::PassCuts(), MadCluAnalysis::PassDataCleaningCuts(), MadCluAnalysis::PHWAvgDev(), MadCluAnalysis::PHWCluID(), MadCluAnalysis::PHWProbEM(), MadCluAnalysis::PID(), MadCluAnalysis::Plot(), MadQuantities::RecoEMFrac(), and MadQuantities::ShowerValidation().

NtpEMShower* MadBase::ntpEMShower [protected]

Definition at line 81 of file MadBase.h.

Referenced by Clear(), GetEMShower(), MadHandScan::HandScanDisplay(), and LoadEMShower().

NtpEMSummary* MadBase::ntpEMSummary [protected]

Definition at line 80 of file MadBase.h.

Referenced by Clear(), GetEntry(), and MadHandScan::HandScanDisplay().

NtpSREvent* MadBase::ntpEvent [protected]

Definition at line 60 of file MadBase.h.

Referenced by MadTestAnalysis::AnnVar(), MadPIDAnalysis::AnnVar(), MadDpAnalysis::AnnVar(), MadCluAnalysis::CallUserFunctions(), MadCBSQEAnalysis::CallUserFunctions(), Clear(), MadQuantities::ClosestDistanceToEvent(), MadAnalysis::CreateANtpPAN(), MadTVAnalysis::CreatePAN(), MadTestAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), MadEdAnalysis::DataHist(), MadEvDisplay::Display(), MadScanDisplay::DrawTextBox(), MadEvDisplay::DrawTextBox(), MadTVAnalysis::DupRecoStrips(), MadMKAnalysis::DupRecoStrips(), MadTVAnalysis::EarlyActivity(), MadMKAnalysis::EarlyActivity(), MadEdAnalysis::ETrkF(), MadScanDisplay::EventDump(), MadEvDisplay::EventDump(), MadEdAnalysis::EvtLength(), MadEdAnalysis::Evtphsig(), MadCluAnalysis::FOM(), GetEvent(), MadTVAnalysis::GetEvtTimeChar(), MadMKAnalysis::GetEvtTimeChar(), MadTVAnalysis::GetEvtTimeCharPHC(), MadMKAnalysis::GetEvtTimeCharPHC(), MadEdAnalysis::HitF(), MadScanDisplay::InFidNoTrk(), MadScanDisplay::InFidTrk(), MadTVAnalysis::InFidVol(), MadMKAnalysis::InFidVol(), MadQuantities::IsFid_2008(), MadQuantities::IsFidFD_AB(), MadQuantities::IsFidVtxEvt(), MadCluAnalysis::IsNueFidVtxEvt(), MadCBSQEAnalysis::LikeliQE(), LoadEvent(), LoadLargestShowerFromEvent(), LoadLargestTrackFromEvent(), LoadShower_Jim(), LoadShowerAtTrackVertex(), LoadSliceForRecoTH(), LoadTruthForReco(), LoadTruthForRecoTH(), MadScanDisplay::Log(), MadEvDisplay::Log(), MadPIDAnalysis::MakeAbIDFile(), MadEdAnalysis::MakeEff(), MadTestAnalysis::MakeMyFile(), MadPIDAnalysis::MakeMyFile(), MadDpAnalysis::MakeMyFile(), MadCBSQEAnalysis::MakeQEFile(), MadQuantities::MakeValidationFile(), MadEdAnalysis::MCHist(), MadTVAnalysis::MuonShowerEnergy(), MadMKAnalysis::MuonShowerEnergy(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyLikeliQE(), MadEdAnalysis::MyMakeMyFile(), MadEdAnalysis::MyMakeQEFile(), MadTestAnalysis::PassBasicCuts(), MadPIDAnalysis::PassBasicCuts(), MadEdAnalysis::PassBasicCuts(), MadDpAnalysis::PassBasicCuts(), MadCluAnalysis::PassBasicCuts(), MadCBSQEAnalysis::PassBasicCuts(), MadScanDisplay::PassCuts(), MadEvDisplay::PassCuts(), MadTestAnalysis::PassFid(), MadPIDAnalysis::PassFid(), MadDpAnalysis::PassFid(), MadPIDAnalysis::PassFidND(), MadPIDAnalysis::PassFidNew(), MadDpAnalysis::PassFidNew(), MadPIDAnalysis::PassFidNewN(), MadDpAnalysis::PassFidNewN(), MadTestAnalysis::PID(), MadPIDAnalysis::PID(), MadDpAnalysis::PID(), MadEdAnalysis::PIDHisto(), MadCluAnalysis::Plot(), MadAnalysis::RecoAnalysisEnergy(), MadScanDisplay::ROICalc(), MadQuantities::ShowerValidation(), MadScanDisplay::ShwROICalc(), MadTVAnalysis::SigInOut(), MadMKAnalysis::SigInOut(), and MadCBSQEAnalysis::TestQEDiscrim().

const RecCandHeader* MadBase::ntpHeader [protected]

Definition at line 54 of file MadBase.h.

Referenced by MadPIDAnalysis::AnnVar(), MadDpAnalysis::AnnVar(), Clear(), MadAnalysis::CreateANtpPAN(), MadTVAnalysis::CreatePAN(), MadTestAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), MadScanDisplay::Display(), MadEvDisplay::Display(), MadScanDisplay::DrawTextBox(), MadEvDisplay::DrawTextBox(), GetEntry(), MadTVAnalysis::GetEvtTimeChar(), MadMKAnalysis::GetEvtTimeChar(), MadTVAnalysis::GetEvtTimeCharPHC(), MadMKAnalysis::GetEvtTimeCharPHC(), GetHeader(), MadHandScan::HandScanDisplay(), MadScanDisplay::InFidNoTrk(), MadTVAnalysis::InFidVol(), MadMKAnalysis::InFidVol(), MadQuantities::IsFidAll(), MadQuantities::IsFidAllEvt(), MadQuantities::IsFidFD_AB(), MadQuantities::IsFidVtx(), MadQuantities::IsFidVtxEvt(), MadQuantities::IsFidVtxTrk(), MadCluAnalysis::IsNueFidVtxEvt(), MadScanDisplay::Log(), MadEvDisplay::Log(), MadPIDAnalysis::MakeAbIDFile(), MadTestAnalysis::MakeMyFile(), MadPIDAnalysis::MakeMyFile(), MadDpAnalysis::MakeMyFile(), MadCBSQEAnalysis::MakeQEFile(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyMakeMyFile(), MadEdAnalysis::MyMakeQEFile(), MadScanDisplay::NextInterestingEvent(), MadTestAnalysis::PassAnalysisCuts(), MadPIDAnalysis::PassAnalysisCuts(), MadEdAnalysis::PassAnalysisCuts(), MadDpAnalysis::PassAnalysisCuts(), MadScanDisplay::PassCuts(), MadEvDisplay::PassCuts(), MadTestAnalysis::PID(), MadPIDAnalysis::PID(), MadDpAnalysis::PID(), MadCluAnalysis::Plot(), MadAnalysis::RecoExperiment(), MadAnalysis::RecoMC(), MadAnalysis::RecoMCExperiment(), NuMadAnalysis::SetEntry(), MadQuantities::ShowerValidation(), MadTestAnalysis::SingleTimeFrame(), MadPIDAnalysis::SingleTimeFrame(), MadDpAnalysis::SingleTimeFrame(), and MadCBSQEAnalysis::TestQEDiscrim().

NtpSRShieldStrip* MadBase::ntpShieldStrip [protected]

Definition at line 65 of file MadBase.h.

Referenced by Clear(), GetShieldStrip(), and LoadShieldStrip().

NtpSRShower* MadBase::ntpShower [protected]

Definition at line 62 of file MadBase.h.

Referenced by MadTestAnalysis::AnnVar(), MadPIDAnalysis::AnnVar(), MadDpAnalysis::AnnVar(), MadCluAnalysis::AveNumSSPlane(), MadCluAnalysis::ChargeFracRMS(), Clear(), MadAnalysis::CreateANtpPAN(), MadTestAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), MadScanDisplay::EventDump(), MadEvDisplay::EventDump(), MadCluAnalysis::FillBestProbEM(), MadCluAnalysis::FillNCluster(), MadCluAnalysis::FOM(), GetLargestShowerFromEvent(), MadQuantities::GetNShowerStrip(), GetShower(), GetShowerAtTrackVertex(), MadQuantities::GetShwSC(), MadQuantities::GetSqrtShwSC(), MadScanDisplay::InFidNoTrk(), LoadLargestShowerFromEvent(), LoadShower(), LoadShower_Jim(), LoadShowerAtTrackVertex(), MadTestAnalysis::MakeMyFile(), MadPIDAnalysis::MakeMyFile(), MadDpAnalysis::MakeMyFile(), MadTVAnalysis::MuonShowerEnergy(), MadMKAnalysis::MuonShowerEnergy(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyMakeMyFile(), MadCluAnalysis::PassBasicCuts(), MadScanDisplay::PassCuts(), MadEvDisplay::PassCuts(), MadCluAnalysis::PassDataCleaningCuts(), MadCluAnalysis::PHWAvgDev(), MadCluAnalysis::PHWCluID(), MadCluAnalysis::PHWProbEM(), MadCluAnalysis::PID(), MadCluAnalysis::Plot(), MadCluAnalysis::RecoAnalysisEnergy(), MadQuantities::RecoEMFrac(), MadQuantities::RecoShwEnergy(), MadMKAnalysis::RecoShwEnergy(), RecoShwEnergy(), MadQuantities::RecoShwEnergyNew(), MadQuantities::ShowerValidation(), and MadScanDisplay::ShwROICalc().

NtpSRSlice* MadBase::ntpSlice [protected]

Definition at line 64 of file MadBase.h.

Referenced by Clear(), MadMKAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), MadScanDisplay::Display(), MadEvDisplay::Display(), GetSlice(), LoadSlice(), LoadSliceForRecoTH(), MadScanDisplay::Log(), MadEvDisplay::Log(), MadCBSQEAnalysis::MakeQEFile(), and MadScanDisplay::ROICalc().

NtpMCStdHep* MadBase::ntpStdHep [protected]

Definition at line 71 of file MadBase.h.

Referenced by Clear(), MadScanDisplay::DrawInteractionDiagram(), MadEvDisplay::DrawInteractionDiagram(), GetStdHep(), MadQuantities::HadronicFinalState(), MadQuantities::Initial_state(), LoadStdHep(), MadCluAnalysis::Plot(), and MadQuantities::SetStdHepVars().

NtpSRStrip* MadBase::ntpStrip [protected]

Definition at line 66 of file MadBase.h.

Referenced by MadTestAnalysis::AnnVar(), MadPIDAnalysis::AnnVar(), MadDpAnalysis::AnnVar(), MadCluAnalysis::AveNumSSPlane(), MadQuantities::CCNCSepVars(), Clear(), MadQuantities::ClosestDistanceToEvent(), MadTVAnalysis::ComputeLowPHRatio(), MadMKAnalysis::ComputeLowPHRatio(), MadTestAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), MadScanDisplay::Display(), MadEvDisplay::Display(), MadTVAnalysis::DupRecoStrips(), MadMKAnalysis::DupRecoStrips(), MadTVAnalysis::EarlyActivity(), MadMKAnalysis::EarlyActivity(), MadTVAnalysis::GetEvtTimeChar(), MadMKAnalysis::GetEvtTimeChar(), MadTVAnalysis::GetEvtTimeCharPHC(), MadMKAnalysis::GetEvtTimeCharPHC(), MadQuantities::GetNonTrkSC(), MadQuantities::GetShwSC(), MadQuantities::GetSqrtShwSC(), MadQuantities::GetSqrtTrkSkimSC(), GetStrip(), MadHandScan::HandScanDisplay(), LoadStrip(), MadScanDisplay::ROICalc(), MadQuantities::ShowerValidation(), MadScanDisplay::ShwROICalc(), MadTVAnalysis::SigInOut(), and MadMKAnalysis::SigInOut().

NtpTHEvent* MadBase::ntpTHEvent [protected]

Definition at line 75 of file MadBase.h.

Referenced by MadPIDAnalysis::CreatePAN(), GetTHEvent(), LoadTHEvent(), MadScanDisplay::PassCuts(), MadEvDisplay::PassCuts(), and MadQuantities::ShowerValidation().

NtpTHShower* MadBase::ntpTHShower [protected]

Definition at line 77 of file MadBase.h.

Referenced by Clear(), MadMKAnalysis::CreatePAN(), MadScanDisplay::DrawTextBox(), MadEvDisplay::DrawTextBox(), GetTHShower(), LoadTHShower(), LoadTruthForRecoTH(), MadScanDisplay::PassCuts(), MadEvDisplay::PassCuts(), and MadQuantities::ShowerValidation().

NtpTHSlice* MadBase::ntpTHSlice [protected]

Definition at line 74 of file MadBase.h.

Referenced by Clear(), MadScanDisplay::DrawTextBox(), MadEvDisplay::DrawTextBox(), GetSliceForRecoTH(), GetTHSlice(), and LoadTHSlice().

NtpTHTrack* MadBase::ntpTHTrack [protected]

Definition at line 76 of file MadBase.h.

Referenced by Clear(), MadMKAnalysis::CreatePAN(), MadScanDisplay::DrawTextBox(), MadEvDisplay::DrawTextBox(), GetTHTrack(), LoadTHTrack(), LoadTruthForRecoTH(), and MadQuantities::ShowerValidation().

NtpSRTrack* MadBase::ntpTrack [protected]

Definition at line 61 of file MadBase.h.

Referenced by MadTestAnalysis::AnnVar(), MadPIDAnalysis::AnnVar(), MadDpAnalysis::AnnVar(), MadCBSQEAnalysis::CallUserFunctions(), MadQuantities::CCNCSepVars(), Clear(), MadAnalysis::CreateANtpPAN(), MadTestAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadEdAnalysis::DataHist(), MadEdAnalysis::DeDx(), MadEdAnalysis::ETrkF(), MadScanDisplay::EventDump(), MadEvDisplay::EventDump(), GetLargestTrackFromEvent(), MadQuantities::GetNonTrkSC(), MadQuantities::GetShwSC(), MadQuantities::GetSqrtTrkSkimSC(), GetTrack(), MadEdAnalysis::HitF(), MadScanDisplay::InFidNoTrk(), MadScanDisplay::InFidTrk(), MadQuantities::IsFid_2008(), MadQuantities::IsFidAll(), MadQuantities::IsFidAllEvt(), MadQuantities::IsFidFD_AB(), MadQuantities::IsFidVtx(), MadQuantities::IsFidVtxTrk(), MadCluAnalysis::IsTrackInSlice(), MadCBSQEAnalysis::LikeliQE(), LoadLargestTrackFromEvent(), LoadShower_Jim(), LoadShowerAtTrackVertex(), LoadTrack(), MadTestAnalysis::MakeMyFile(), MadPIDAnalysis::MakeMyFile(), MadDpAnalysis::MakeMyFile(), MadCBSQEAnalysis::MakeQEFile(), MadQuantities::MakeValidationFile(), MadEdAnalysis::MCHist(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyIsFidVtx(), MadEdAnalysis::MyIsFidVtxrz(), MadEdAnalysis::MyLikeliQE(), MadEdAnalysis::MyMakeMyFile(), MadEdAnalysis::MyMakeQEFile(), MadCluAnalysis::PassBasicCuts(), MadScanDisplay::PassCuts(), MadEvDisplay::PassCuts(), MadPIDAnalysis::PassFidND(), MadPIDAnalysis::PassFidNew(), MadDpAnalysis::PassFidNew(), MadPIDAnalysis::PassFidNewN(), MadDpAnalysis::PassFidNewN(), MadQuantities::PassTrackCuts(), MadTestAnalysis::PID(), MadPIDAnalysis::PID(), MadEdAnalysis::PID(), MadDpAnalysis::PID(), MadScanDisplay::RecoMKMuEnergy(), MadMKAnalysis::RecoMKMuEnergy(), MadEvDisplay::RecoMKMuEnergy(), MadEdAnalysis::RecoMuAZM(), MadQuantities::RecoMuDCosNeu(), MadTVAnalysis::RecoMuDCosNeuFD(), MadScanDisplay::RecoMuDCosNeuFD(), MadMKAnalysis::RecoMuDCosNeuFD(), MadEvDisplay::RecoMuDCosNeuFD(), MadTVAnalysis::RecoMuDCosNeuND(), MadScanDisplay::RecoMuDCosNeuND(), MadMKAnalysis::RecoMuDCosNeuND(), MadEvDisplay::RecoMuDCosNeuND(), MadEdAnalysis::RecoMuDCosY(), MadQuantities::RecoMuDCosZ(), MadQuantities::RecoMuEnergy(), MadQuantities::RecoMuEnergyNew(), MadQuantities::RecoMuQP(), MadEdAnalysis::RecoMuZn(), MadQuantities::ShowerValidation(), MadTVAnalysis::SigInOut(), MadMKAnalysis::SigInOut(), MadCBSQEAnalysis::TestQEDiscrim(), MadEdAnalysis::Trkphsig(), and MadEdAnalysis::Trkplanes().

NtpMCTruth* MadBase::ntpTruth [protected]

Definition at line 70 of file MadBase.h.

Referenced by MadCluAnalysis::CallUserFunctions(), MadHandScan::Cheat(), Clear(), MadAnalysis::CreateANtpPAN(), MadPIDAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadDpAnalysis::CreatePAN(), MadCluAnalysis::DataDistributions(), MadScanDisplay::DrawTextBox(), MadEvDisplay::DrawTextBox(), MadScanDisplay::EventDump(), MadEvDisplay::EventDump(), MadTVAnalysis::FillMCHists(), MadMKAnalysis::FillMCHists(), MadCluAnalysis::FOM(), GetTruth(), GetTruthForReco(), GetTruthForRecoTH(), MadHandScan::HandScanDisplay(), MadQuantities::IAction(), MadQuantities::INu(), MadQuantities::INuNoOsc(), MadQuantities::IResonance(), LoadTruth(), LoadTruthForReco(), LoadTruthForRecoTH(), MadCBSQEAnalysis::MakeQEFile(), MadEdAnalysis::MCHist(), MadScanDisplay::NextPass(), MadEvDisplay::NextPass(), MadQuantities::Nucleus(), MadUserAnalysis::PassTruthSignal(), MadTestAnalysis::PassTruthSignal(), MadPIDAnalysis::PassTruthSignal(), MadDpAnalysis::PassTruthSignal(), MadCluAnalysis::PassTruthSignal(), MadCBSQEAnalysis::PassTruthSignal(), MadScanDisplay::PrevPass(), MadEvDisplay::PrevPass(), MadQuantities::Q2(), MadQuantities::ShowerValidation(), MadQuantities::Target4Vector(), MadCBSQEAnalysis::TestQEDiscrim(), MadQuantities::TrueLeptonEnergy(), MadQuantities::TrueMuDCosNeu(), MadQuantities::TrueMuDCosZ(), MadQuantities::TrueMuEnergy(), MadQuantities::TrueMuQP(), MadQuantities::TrueNuEnergy(), MadQuantities::TrueNuMom(), MadQuantities::TrueShwEnergy(), MadQuantities::TrueVtx(), MadQuantities::W2(), MadQuantities::X(), and MadQuantities::Y().

NtpSRRecord* MadBase::record [protected]

Definition at line 53 of file MadBase.h.

Referenced by MadQuantities::CCNCSepVars(), MadMKAnalysis::CreatePAN(), MadScanDisplay::Display(), MadEvDisplay::Display(), GetEntry(), MadQuantities::GetNonTrkSC(), MadQuantities::GetShwSC(), MadQuantities::GetSqrtShwSC(), MadQuantities::GetSqrtTrkSkimSC(), MadHandScan::HandScanDisplay(), InitChain(), LoadCluster(), LoadEvent(), LoadShieldStrip(), LoadShower(), LoadSlice(), LoadStrip(), LoadTrack(), MadAnalysis::MadAnalysis(), MadBase(), MadCBSQEAnalysis::MadCBSQEAnalysis(), MadCluAnalysis::MadCluAnalysis(), MadDpAnalysis::MadDpAnalysis(), MadEdAnalysis::MadEdAnalysis(), MadEvDisplay::MadEvDisplay(), MadHandScan::MadHandScan(), MadMKAnalysis::MadMKAnalysis(), MadPIDAnalysis::MadPIDAnalysis(), MadQuantities::MadQuantities(), MadScanDisplay::MadScanDisplay(), MadTestAnalysis::MadTestAnalysis(), MadTVAnalysis::MadTVAnalysis(), MadUserAnalysis::MadUserAnalysis(), NuMadAnalysis::NuMadAnalysis(), MadScanDisplay::PrevFidNoTrk(), MadScanDisplay::PrevFidTrk(), MadScanDisplay::PrevPass(), MadEvDisplay::PrevPass(), and MadAnalysis::ReInit().

NtpSRShieldSummary* MadBase::shieldSummary [protected]

Definition at line 55 of file MadBase.h.

Referenced by Clear(), GetEntry(), and NuMadAnalysis::SetEntry().

NtpStRecord* MadBase::strecord [protected]

Definition at line 52 of file MadBase.h.

Referenced by MadQuantities::CCNCSepVars(), MadAnalysis::CreateANtpPAN(), MadTVAnalysis::CreatePAN(), MadTestAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadMKAnalysis::CreatePAN(), MadScanDisplay::Display(), MadEvDisplay::Display(), MadScanDisplay::DrawInteractionDiagram(), MadEvDisplay::DrawInteractionDiagram(), GetEntry(), MadQuantities::GetNonTrkSC(), MadQuantities::GetShwSC(), MadQuantities::GetSqrtShwSC(), MadQuantities::GetSqrtTrkSkimSC(), MadQuantities::HadronicFinalState(), MadHandScan::HandScanDisplay(), MadScanDisplay::InFidNoTrk(), MadScanDisplay::InFidTrk(), InitChain(), MadQuantities::Initial_state(), MadQuantities::IsFid_2008(), LoadCluster(), LoadEvent(), LoadShieldStrip(), LoadShower(), LoadSlice(), LoadStdHep(), LoadStrip(), LoadTHEvent(), LoadTHShower(), LoadTHSlice(), LoadTHTrack(), LoadTrack(), LoadTruth(), LoadTruthForReco(), MadAnalysis::MadAnalysis(), MadBase(), MadCBSQEAnalysis::MadCBSQEAnalysis(), MadDpAnalysis::MadDpAnalysis(), MadEdAnalysis::MadEdAnalysis(), MadHandScan::MadHandScan(), MadPIDAnalysis::MadPIDAnalysis(), MadQuantities::MadQuantities(), MadTestAnalysis::MadTestAnalysis(), MadUserAnalysis::MadUserAnalysis(), MadPIDAnalysis::MakeAbIDFile(), NuMadAnalysis::NuMadAnalysis(), MadCluAnalysis::Plot(), MadScanDisplay::PrevFidNoTrk(), MadScanDisplay::PrevFidTrk(), MadScanDisplay::PrevPass(), MadEvDisplay::PrevPass(), MadAnalysis::ReInit(), NuMadAnalysis::SetEntry(), and MadQuantities::SetStdHepVars().

NtpTHRecord* MadBase::threcord [protected]

Definition at line 73 of file MadBase.h.

Referenced by GetEntry(), InitChain(), LoadTHEvent(), LoadTHShower(), LoadTHSlice(), LoadTHTrack(), MadAnalysis::MadAnalysis(), MadBase(), MadCBSQEAnalysis::MadCBSQEAnalysis(), MadCluAnalysis::MadCluAnalysis(), MadDpAnalysis::MadDpAnalysis(), MadEdAnalysis::MadEdAnalysis(), MadEvDisplay::MadEvDisplay(), MadHandScan::MadHandScan(), MadMKAnalysis::MadMKAnalysis(), MadPIDAnalysis::MadPIDAnalysis(), MadQuantities::MadQuantities(), MadScanDisplay::MadScanDisplay(), MadTestAnalysis::MadTestAnalysis(), MadTVAnalysis::MadTVAnalysis(), MadUserAnalysis::MadUserAnalysis(), NuMadAnalysis::NuMadAnalysis(), and MadAnalysis::ReInit().

int MadBase::whichSource [protected]

Definition at line 50 of file MadBase.h.

Referenced by GetEntry(), MadScanDisplay::JumpTo(), MadEvDisplay::JumpTo(), MadAnalysis::MadAnalysis(), MadBase(), MadCBSQEAnalysis::MadCBSQEAnalysis(), MadCluAnalysis::MadCluAnalysis(), MadDpAnalysis::MadDpAnalysis(), MadEdAnalysis::MadEdAnalysis(), MadEvDisplay::MadEvDisplay(), MadHandScan::MadHandScan(), MadMKAnalysis::MadMKAnalysis(), MadPIDAnalysis::MadPIDAnalysis(), MadQuantities::MadQuantities(), MadScanDisplay::MadScanDisplay(), MadTestAnalysis::MadTestAnalysis(), MadTVAnalysis::MadTVAnalysis(), MadUserAnalysis::MadUserAnalysis(), NuMadAnalysis::NuMadAnalysis(), and MadAnalysis::ReInit().


The documentation for this class was generated from the following files:
Generated on Mon Aug 11 01:06:07 2014 for loon by  doxygen 1.4.7