Changeset 9301 for trunk/MagicSoft/Mars/msim
- Timestamp:
- 02/07/09 16:11:57 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/msim
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msim/MPhotonEvent.cc
r9243 r9301 213 213 } 214 214 215 Int_t MPhotonEvent::GetNumExternal() const 216 { 217 Int_t n=0; 218 219 for (int i=0; i<GetNumPhotons(); i++) 220 if ((*this)[i].GetPrimary()!=MMcEvtBasic::kNightSky) 221 n++; 222 223 return n; 224 } 225 215 226 // -------------------------------------------------------------------------- 216 227 // -
trunk/MagicSoft/Mars/msim/MPhotonEvent.h
r9239 r9301 78 78 // Getter/Setter 79 79 Int_t GetNumPhotons() const { return fData.GetEntriesFast(); } 80 Int_t GetNumExternal() const; 80 81 81 82 TClonesArray &GetArray() { return fData; }
Note:
See TracChangeset
for help on using the changeset viewer.