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

Public Member Functions | |
| NtpCandShower () | |
| NtpCandShower (const CandShowerHandle &shower) | |
| virtual | ~NtpCandShower () |
| virtual std::ostream & | Print (std::ostream &os) const |
| virtual void | Print (Option_t *option="") const |
| virtual Double_t | GetEnergy () const |
| virtual Int_t | GetNStrip () const |
| virtual void | Clear (Option_t *="") |
| virtual void | AddStripAt (Int_t stripindex, Int_t ind) |
Protected Attributes | |
| Double_t | fEnergy |
| Int_t | fNStrip |
| Int_t * | fStripInd |
|
|
Definition at line 24 of file NtpCandShower.h. References fEnergy, fNStrip, and fStripInd.
|
|
|
Definition at line 23 of file NtpCandShower.cxx. 00023 : 00024 NtpCandReco(shower),fEnergy(-1),fNStrip(0),fStripInd(0) { 00025 // 00026 // Purpose: Constructor creates an ntuple from an existing CandShower. 00027 // 00028 // Arguments: reference to CandShowerHandle (or derived class) object. 00029 // 00030 // Return: n/a. 00031 // 00032 // Contact: S. Kasahara 00033 // 00034 00035 fEnergy = shower.GetEnergy(); 00036 fNStrip = shower.GetNStrip(); 00037 if ( fNStrip ) { 00038 fStripInd = new Int_t[fNStrip]; 00039 for (Int_t i = 0; i < fNStrip; i++ ) fStripInd[i] = -1; 00040 } 00041 00042 }
|
|
|
Definition at line 26 of file NtpCandShower.h. 00026 { if (fStripInd) delete [] fStripInd; }
|
|
||||||||||||
|
Definition at line 44 of file NtpCandShower.cxx. References fStripInd. Referenced by DemoCandNtpModule::Reco(). 00044 {
00045 //
00046 // Purpose: Add stripindex to fStripInd array at position ind.
00047 //
00048 // Arguments: stripindex: index of strip in assoc fStrips TClonesArray.
00049 // ind: index in fStripInd array, cannot exceed bounds
00050 // 0->fNStrip-1.
00051 //
00052 // Return: n/a.
00053 //
00054 // Contact: S. Kasahara
00055 //
00056
00057 if ( ind < 0 || ind >= fNStrip ) return; // should print warning
00058
00059 fStripInd[ind] = stripindex;
00060 return;
00061
00062 }
|
|
|
Definition at line 35 of file NtpCandShower.h. References fStripInd. 00035 { if ( fStripInd )
00036 delete [] fStripInd; fStripInd = 0; }
|
|
|
Definition at line 31 of file NtpCandShower.h. 00031 { return fEnergy; }
|
|
|
Definition at line 32 of file NtpCandShower.h. 00032 { return fNStrip; }
|
|
|
Reimplemented from NtpCandReco. Definition at line 84 of file NtpCandShower.cxx. References Print(). 00084 {
00085 //
00086 // Purpose: Print header in form supported by TObject::Print.
00087 //
00088 // Arguments: option (not used)
00089 //
00090 // Return: none.
00091 //
00092 // Contact: S. Kasahara
00093 //
00094 // Notes:This version is required because overridden Print(std::ostream& os)
00095 // hides base class version of this method.
00096 //
00097
00098 Print(std::cout);
00099 return;
00100
00101 }
|
|
|
Reimplemented from NtpCandReco. Definition at line 65 of file NtpCandShower.cxx. References fEnergy, and fNStrip. Referenced by Print(). 00065 {
00066 //
00067 // Purpose: Print status of ntuple record on ostream.
00068 //
00069 // Arguments: os ostream to display on.
00070 //
00071 // Return: ostream reference.
00072 //
00073 // Contact: S. Kasahara
00074 //
00075
00076 os << "Energy " << fEnergy << ", "
00077 << "NStrip " << fNStrip << endl;
00078
00079
00080 return os;
00081
00082 }
|
|
|
Definition at line 41 of file NtpCandShower.h. Referenced by NtpCandShower(), and Print(). |
|
|
Definition at line 42 of file NtpCandShower.h. Referenced by NtpCandShower(), and Print(). |
|
|
Definition at line 43 of file NtpCandShower.h. Referenced by AddStripAt(), Clear(), and NtpCandShower(). |
1.3.9.1