NtpSRShower Class Reference

#include <NtpSRShower.h>

List of all members.

Public Member Functions

 NtpSRShower ()
 NtpSRShower (Int_t nstripinit, Int_t nclusterinit=0)
virtual ~NtpSRShower ()
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (Option_t *option="") const
void AddStripAt (Int_t stripindex, Int_t ind)
void AddClusterAt (Int_t clusterindex, Int_t ind)
void Clear (Option_t *="")
void ClearStrips ()
void ClearClusters ()
void SetPh (Float_t sigmap, Float_t mip, Float_t gev, UInt_t istrip, UShort_t iend)
void SetTime (Double_t time, UInt_t istrip, UShort_t iend)
void SetCalT0 (Double_t calt0, UInt_t istrip, UShort_t iend)
void SetAttnC0 (Double_t attnc0, UInt_t istrip, UShort_t iend)

Public Attributes

UShort_t index
 index of this shower in shower array
Short_t slc
 index of associated slice in slice array
Int_t ndigit
Int_t nstpcnt
 number of strips in shower
Int_t nstrip
 number of strips in strip array
Int_t * stp
Float_t * stpu
Float_t * stpv
Float_t * stpx
Float_t * stpy
Float_t * stpz
Float_t * stpph0sigmap
Float_t * stpph0mip
Float_t * stpph0gev
Float_t * stpph1sigmap
Float_t * stpph1mip
Float_t * stpph1gev
Float_t * stpattn0c0
Float_t * stpattn1c0
Double_t * stpt0
Double_t * stpt1
Double_t * stptcal0t0
Double_t * stptcal1t0
Short_t nUcluster
 number of U clusters in shower
Short_t nVcluster
 number of V clusters in shower
Int_t ncluster
 number of clusters in shower
Int_t * clu
Int_t contained
NtpSRStripPulseHeight ph
 summed strip pulse height
NtpSRShowerPulseHeight shwph
 shower energy members
NtpSRPlane plane
 range of planes
NtpSRVertex vtx
 vertex - not filled?
NtpSRSubShowerSummary sss
 subshower summary block

Private Member Functions

 NtpSRShower (const NtpSRShower &that)
NtpSRShoweroperator= (const NtpSRShower &that)

Detailed Description

Definition at line 23 of file NtpSRShower.h.


Constructor & Destructor Documentation

NtpSRShower::NtpSRShower (  )  [inline]

Definition at line 26 of file NtpSRShower.h.

00026                : index(0),slc(0),ndigit(0),nstpcnt(0),nstrip(0),stp(0),
00027                         stpu(0),stpv(0),stpx(0),stpy(0),stpz(0),
00028                         stpph0sigmap(0),stpph0mip(0),stpph0gev(0),
00029                         stpph1sigmap(0),stpph1mip(0),stpph1gev(0),
00030                         stpattn0c0(0),stpattn1c0(0),
00031                         stpt0(0),stpt1(0),stptcal0t0(0),stptcal1t0(0),
00032                         nUcluster(0),nVcluster(0),ncluster(0),clu(0),contained(0) {} // def const'r

NtpSRShower::NtpSRShower ( Int_t  nstripinit,
Int_t  nclusterinit = 0 
)

Definition at line 74 of file NtpSRShower.cxx.

References clu, Msg::kWarning, MSG, ncluster, nstrip, stp, stpattn0c0, stpattn1c0, stpph0gev, stpph0mip, stpph0sigmap, stpph1gev, stpph1mip, stpph1sigmap, stpt0, stpt1, stptcal0t0, stptcal1t0, stpu, stpv, stpx, stpy, and stpz.

00074                                                            : 
00075   index(0),slc(0),ndigit(0),nstpcnt(nstripinit),nstrip(nstripinit),
00076   stp(0),stpu(0),stpv(0),stpx(0),stpy(0),stpz(0),
00077   stpph0sigmap(0),stpph0mip(0),stpph0gev(0),stpph1sigmap(0),stpph1mip(0),stpph1gev(0),
00078   stpattn0c0(0),stpattn1c0(0),stpt0(0),stpt1(0),stptcal0t0(0),stptcal1t0(0),
00079   nUcluster(0),nVcluster(0),ncluster(nclusterinit),clu(0) {
00080   // Normal constructor
00081 
00082   if ( nstrip ) {
00083     stp           = new Int_t[nstrip];
00084     stpu          = new Float_t[nstrip]; 
00085     stpv          = new Float_t[nstrip]; 
00086     stpx          = new Float_t[nstrip]; 
00087     stpy          = new Float_t[nstrip]; 
00088     stpz          = new Float_t[nstrip]; 
00089     stpph0sigmap  = new Float_t[nstrip]; 
00090     stpph0mip     = new Float_t[nstrip]; 
00091     stpph0gev     = new Float_t[nstrip]; 
00092     stpph1sigmap  = new Float_t[nstrip]; 
00093     stpph1mip     = new Float_t[nstrip]; 
00094     stpph1gev     = new Float_t[nstrip]; 
00095     stpattn0c0    = new Float_t[nstrip]; 
00096     stpattn1c0    = new Float_t[nstrip]; 
00097     stpt0         = new Double_t[nstrip]; 
00098     stpt1         = new Double_t[nstrip]; 
00099     stptcal0t0    = new Double_t[nstrip]; 
00100     stptcal1t0    = new Double_t[nstrip]; 
00101     for ( Int_t i = 0; i < nstrip; i++ ) {
00102       stp[i] = -1;
00103       stpu[i] = -999999;
00104       stpv[i] = -999999;
00105       stpx[i] = -999999;
00106       stpy[i] = -999999;
00107       stpz[i] = -999999;
00108       stpph0sigmap[i] = 0.;
00109       stpph0mip[i] = 0.;
00110       stpph0gev[i] = 0.;
00111       stpph1sigmap[i] = 0.;
00112       stpph1mip[i] = 0.;
00113       stpph1gev[i] = 0.;
00114       stpattn0c0[i] = -999999;
00115       stpattn1c0[i] = -999999;
00116       stpt0[i] = -999999;
00117       stpt1[i] = -999999;
00118       stptcal0t0[i] = -999999;
00119       stptcal1t0[i] = -999999;
00120     }
00121   }
00122   else {
00123     MSG("NtpSR",Msg::kWarning) << "NtpSRShower called with nstrip = 0" << endl;
00124   }
00125 
00126   if ( ncluster ) {
00127     clu = new Int_t[ncluster];
00128     for ( Int_t i = 0; i < ncluster; i++ ) clu[i] = -1;
00129   }
00130   else {
00131     MSG("NtpSR",Msg::kWarning) << "NtpSRShower called with ncluster = 0" 
00132                                << endl;
00133   }
00134 }

virtual NtpSRShower::~NtpSRShower (  )  [inline, virtual]

Definition at line 35 of file NtpSRShower.h.

References Clear().

00035 { this -> Clear(); }

NtpSRShower::NtpSRShower ( const NtpSRShower that  )  [private]

Member Function Documentation

void NtpSRShower::AddClusterAt ( Int_t  clusterindex,
Int_t  ind 
)

Definition at line 48 of file NtpSRShower.cxx.

References clu, Msg::kWarning, MSG, and ncluster.

00048                                                             {
00049   //
00050   //  Purpose:  Add clusterindex to clu array at position ind.
00051   //
00052   //  Arguments: clusterindex: index of cluster in assoc cluster TClonesArray. 
00053   //             ind: index in cluster array, cannot exceed bounds
00054   //                  0->ncluster-1. 
00055   // 
00056   //  Return:  none.
00057   //
00058   //  Contact:   S. Kasahara
00059   //
00060 
00061   if ( ind < 0 || ind >= ncluster ) {
00062     MSG("NtpSR",Msg::kWarning)
00063       << "Attempt to add cluster at index " << ind
00064       << " outside of array size " << ncluster << " ignored." << endl;
00065     return;
00066   }
00067 
00068   clu[ind] = clusterindex;
00069   return;
00070 
00071 }

void NtpSRShower::AddStripAt ( Int_t  stripindex,
Int_t  ind 
)

Definition at line 22 of file NtpSRShower.cxx.

References Msg::kWarning, MSG, nstrip, and stp.

Referenced by NtpSRModule::FillNtpShower(), UberModule::FillNtpShower(), and UberModuleLite::FillNtpShower().

00022                                                         {
00023   //
00024   //  Purpose:  Add stripindex to fStripInd array at position ind.
00025   //
00026   //  Arguments: stripindex: index of strip in assoc fStrips TClonesArray. 
00027   //             ind: index in fStripInd array, cannot exceed bounds
00028   //                  0->fNStrip-1.
00029   //
00030   //  Return:  none.
00031   //
00032   //  Contact:   S. Kasahara
00033   // 
00034 
00035   if ( ind < 0 || ind >= nstrip ) {
00036     MSG("NtpSR",Msg::kWarning) 
00037       << "Attempt to add strip at index " << ind
00038       << " outside of array size " << nstrip << " ignored." << endl;
00039     return;
00040   }
00041     
00042   stp[ind] = stripindex;
00043   return;
00044     
00045 }

void NtpSRShower::Clear ( Option_t *  = ""  )  [inline]
void NtpSRShower::ClearClusters (  )  [inline]

Definition at line 46 of file NtpSRShower.h.

References clu, and ncluster.

Referenced by Clear().

00046 { ncluster = 0; if ( clu ) delete [] clu; clu = 0; }

void NtpSRShower::ClearStrips (  ) 

Definition at line 167 of file NtpSRShower.cxx.

References nstrip, stp, stpattn0c0, stpattn1c0, stpph0gev, stpph0mip, stpph0sigmap, stpph1gev, stpph1mip, stpph1sigmap, stpt0, stpt1, stptcal0t0, stptcal1t0, stpu, stpv, stpx, stpy, and stpz.

Referenced by Clear().

00167                               {
00168   // Purpose: Clear allocated strip memory.
00169 
00170   nstrip = 0;
00171   if ( stp ) delete [] stp; stp = 0;
00172   if ( stpu ) delete [] stpu; stpu = 0;
00173   if ( stpv ) delete [] stpv; stpv = 0;
00174   if ( stpx ) delete [] stpx; stpx = 0;
00175   if ( stpy ) delete [] stpy; stpy = 0;
00176   if ( stpz ) delete [] stpz; stpz = 0;
00177   if ( stpph0sigmap ) delete [] stpph0sigmap; stpph0sigmap = 0;
00178   if ( stpph0mip ) delete [] stpph0mip; stpph0mip = 0;
00179   if ( stpph0gev ) delete [] stpph0gev; stpph0gev = 0;
00180   if ( stpph1sigmap ) delete [] stpph1sigmap; stpph1sigmap = 0;
00181   if ( stpph1mip ) delete [] stpph1mip; stpph1mip = 0;
00182   if ( stpph1gev ) delete [] stpph1gev; stpph1gev = 0;
00183   if ( stpattn0c0 ) delete [] stpattn0c0; stpattn0c0 = 0;
00184   if ( stpattn1c0 ) delete [] stpattn1c0; stpattn1c0 = 0;
00185   if ( stpt0 ) delete [] stpt0; stpt0 = 0;
00186   if ( stpt1 ) delete [] stpt1; stpt1 = 0;
00187   if ( stptcal0t0 ) delete [] stptcal0t0; stptcal0t0 = 0;
00188   if ( stptcal1t0 ) delete [] stptcal1t0; stptcal1t0 = 0;
00189   
00190 }

NtpSRShower& NtpSRShower::operator= ( const NtpSRShower that  )  [private]
void NtpSRShower::Print ( Option_t *  option = ""  )  const [virtual]

Definition at line 154 of file NtpSRShower.cxx.

References Print().

00154                                                     {
00155   //
00156   //  Purpose:  Print strip in form supported by TObject::Print.
00157   //
00158   //  Arguments: option (not used)
00159   //
00160 
00161   Print(std::cout);
00162   return;
00163 
00164 }

std::ostream & NtpSRShower::Print ( std::ostream &  os  )  const [virtual]

Definition at line 137 of file NtpSRShower.cxx.

References index, ncluster, ndigit, nstpcnt, nstrip, nUcluster, nVcluster, ph, plane, slc, sss, and vtx.

Referenced by MadScanDisplay::EventDump(), MadEvDisplay::EventDump(), and Print().

00137                                                    {
00138   //
00139   //  Purpose:  Print strip data on ostream.
00140   //
00141 
00142   os << "NtpSRShower::Print" << endl;
00143   os << "index " << index << " slc " << slc << " ndigit " << ndigit
00144      << " nstpcnt " << nstpcnt << " nstrip " << nstrip  
00145      << " ncluster(all,u,v)(" 
00146      << ncluster << "," << nUcluster << "," << nVcluster << ") "
00147      << "\npln" << plane << ph << vtx << sss;
00148 
00149   return os;
00150 
00151 }

void NtpSRShower::SetAttnC0 ( Double_t  attnc0,
UInt_t  istrip,
UShort_t  iend 
) [inline]

Definition at line 116 of file NtpSRShower.h.

References nstrip, stpattn0c0, and stpattn1c0.

Referenced by NtpSRModule::FillNtpShower().

00116                                                                              {
00117   if ( (Int_t)istrip >= nstrip ) return; 
00118   if      ( iend == 0 ) stpattn0c0[istrip] = attnc0;
00119   else if ( iend == 1 ) stpattn1c0[istrip] = attnc0;
00120   return;
00121 }

void NtpSRShower::SetCalT0 ( Double_t  calt0,
UInt_t  istrip,
UShort_t  iend 
) [inline]

Definition at line 110 of file NtpSRShower.h.

References nstrip, stptcal0t0, and stptcal1t0.

Referenced by NtpSRModule::FillNtpShower().

00110                                                                              {
00111   if ( (Int_t)istrip >= nstrip ) return; 
00112   if      ( iend == 0 ) stptcal0t0[istrip] = calt0;
00113   else if ( iend == 1 ) stptcal1t0[istrip] = calt0;
00114   return;
00115 }

void NtpSRShower::SetPh ( Float_t  sigmap,
Float_t  mip,
Float_t  gev,
UInt_t  istrip,
UShort_t  iend 
) [inline]

Definition at line 122 of file NtpSRShower.h.

References nstrip, stpph0gev, stpph0mip, stpph0sigmap, stpph1gev, stpph1mip, and stpph1sigmap.

Referenced by NtpSRModule::FillNtpShower().

00123                                                              {
00124   if ( (Int_t)istrip >= nstrip ) return; 
00125   if ( iend == 0 ) {
00126     stpph0sigmap[istrip] = sigmap;
00127     stpph0mip[istrip] = mip;
00128     stpph0gev[istrip] = gev;
00129   }
00130   else if ( iend == 1 ) {
00131     stpph1sigmap[istrip] = sigmap;
00132     stpph1mip[istrip] = mip;
00133     stpph1gev[istrip] = gev;
00134   }
00135   return;
00136 }

void NtpSRShower::SetTime ( Double_t  time,
UInt_t  istrip,
UShort_t  iend 
) [inline]

Definition at line 104 of file NtpSRShower.h.

References nstrip, stpt0, and stpt1.

Referenced by NtpSRModule::FillNtpShower().

00104                                                                             {
00105   if ( (Int_t)istrip >= nstrip ) return; 
00106   if      ( iend == 0 ) stpt0[istrip] = time;
00107   else if ( iend == 1 ) stpt1[istrip] = time;
00108   return;
00109 }


Member Data Documentation

Definition at line 94 of file NtpSRShower.h.

Referenced by NtpSRModule::FillNtpShower(), and MadAbID::MakeRecoVariables().

number of digits in shower nstpcnt will represent the number of strips in track even in "slim" ntuple output file for which nstrip is set to 0 and the strip array (stp) has been deleted.

Definition at line 66 of file NtpSRShower.h.

Referenced by MadDpAnalysis::AnnVar(), MadTestAnalysis::AnnVar(), MadPIDAnalysis::AnnVar(), MadNsID::CalcVars(), MadDpAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), NuExtraction::ExtractShwInfo(), NtpSRModule::FillNtpShower(), UberModule::FillNtpShower(), UberModuleLite::FillNtpShower(), ANtpInfoObjectFillerNC::FillShowerInformation(), and Print().

number of strips in shower

Definition at line 70 of file NtpSRShower.h.

Referenced by MuonRemovalInfoAna::Analyze(), PETrimmer::CleanShower(), and Print().

summed strip pulse height

Definition at line 95 of file NtpSRShower.h.

Referenced by MNtpModule::Ana(), MadDpAnalysis::AnnVar(), MadTestAnalysis::AnnVar(), MadPIDAnalysis::AnnVar(), MadNsID::CalcVars(), PETrimmer::CleanShower(), MadDpAnalysis::CreatePAN(), MadTestAnalysis::CreatePAN(), MadPIDAnalysis::CreatePAN(), MadAnalysis::CreatePAN(), TridModelMaker::CreateShowerModels(), MadCluAnalysis::DataDistributions(), MadEvDisplay::DrawTextBox(), MadScanDisplay::DrawTextBox(), NuAnalysis::EfficienciesOld(), NuExtraction::ExtractShwInfo(), Anp::FillBasic::Fill(), NtpSRModule::FillNtpShower(), UberModule::FillNtpShower(), UberModuleLite::FillNtpShower(), ANtpShowerInfoAna::FillNueShowerInformation(), ANtpInfoObjectFillerNC::FillShowerInformation(), ANtpInfoObjectFiller::FillShowerInformation(), MNtpModule::FillShwInfo(), MadCluAnalysis::FOM(), NueDisplayModule::GetBasicInfo(), ANtpSnarlManipulator::GetPrimaryShower(), ANtpShowerInfoAna::GetShwEnergy(), MadBase::LoadLargestShowerFromEvent(), FracVarAna::LoadLargestShowerFromEvent(), MNtpModule::LoadLargestShowerFromEvent(), MNtpModule::LoadShowerAtTrackVertex(), MadBase::LoadShowerAtTrackVertex(), FracVarAna::LoadShowerAtTrackVertex(), NueDisplayModule::logvote(), MadTestAnalysis::MakeMyFile(), MadPIDAnalysis::MakeMyFile(), MadDpAnalysis::MakeMyFile(), MadEdAnalysis::MyCreatePAN(), MadEdAnalysis::MyCreatePANData(), MadEdAnalysis::MyMakeMyFile(), MadCluAnalysis::PassDataCleaningCuts(), NueAnalysisCuts::PassesHighShowerEnergyCut(), EventFilter::PassesHiShowerCut(), EventFilter::PassesLoShowerCut(), NueAnalysisCuts::PassesLowShowerEnergyCut(), NueAnalysisCuts::PassesPhProngCut(), Print(), MadCluAnalysis::RecoAnalysisEnergy(), MadBase::RecoShwEnergy(), MadQuantities::RecoShwEnergy(), ANtpAnalysisInfoAna::RecoShwEnergy(), MadMKAnalysis::RecoShwEnergy(), ANtpShowerInfoAna::RecoShwEnergyNew(), MadQuantities::RecoShwEnergyNew(), SRMom::ShwPHGeV(), and PETrimmer::TrimRecord().

index of associated slice in slice array

Definition at line 65 of file NtpSRShower.h.

Referenced by NtpSRModule::FillNtpShower(), MadCluAnalysis::PassDataCleaningCuts(), and Print().

subshower summary block

Definition at line 99 of file NtpSRShower.h.

Referenced by NtpSRModule::FillNtpSubShowerSummary(), and Print().

Definition at line 84 of file NtpSRShower.h.

Referenced by ClearStrips(), NtpSRShower(), and SetAttnC0().

Definition at line 85 of file NtpSRShower.h.

Referenced by ClearStrips(), NtpSRShower(), and SetAttnC0().

Definition at line 78 of file NtpSRShower.h.

Referenced by PETrimmer::CleanShower(), ClearStrips(), NtpSRShower(), and SetPh().

Definition at line 81 of file NtpSRShower.h.

Referenced by PETrimmer::CleanShower(), ClearStrips(), NtpSRShower(), and SetPh().

Double_t* NtpSRShower::stpt0
Double_t* NtpSRShower::stpt1

Definition at line 88 of file NtpSRShower.h.

Referenced by ClearStrips(), NtpSRShower(), and SetCalT0().

Definition at line 89 of file NtpSRShower.h.

Referenced by ClearStrips(), NtpSRShower(), and SetCalT0().

Definition at line 73 of file NtpSRShower.h.

Referenced by ClearStrips(), NtpSRModule::FillNtpShower(), and NtpSRShower().

Definition at line 74 of file NtpSRShower.h.

Referenced by ClearStrips(), NtpSRModule::FillNtpShower(), and NtpSRShower().

Definition at line 75 of file NtpSRShower.h.

Referenced by ClearStrips(), NtpSRModule::FillNtpShower(), and NtpSRShower().

Definition at line 76 of file NtpSRShower.h.

Referenced by ClearStrips(), NtpSRModule::FillNtpShower(), and NtpSRShower().

Definition at line 77 of file NtpSRShower.h.

Referenced by ClearStrips(), NtpSRModule::FillNtpShower(), and NtpSRShower().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1