Changeset 959 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 10/02/01 14:46:56 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCT1ReadAscii.cc
r857 r959 62 62 MCT1ReadAscii::MCT1ReadAscii(const char *fname, 63 63 const char *name, 64 const char *title) 64 const char *title) 65 : fIn(NULL) 65 66 { 66 67 *fName = name ? name : "MCT1ReadAscii"; -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc
r857 r959 116 116 // Checks if in the pixel list is an entry with pixel id 117 117 // 118 Bool_t MCerPhotEvt::IsPixelExisting(Int_t id) 118 Bool_t MCerPhotEvt::IsPixelExisting(Int_t id) const 119 119 { 120 120 const Int_t entries = fPixels->GetEntries(); … … 123 123 { 124 124 if (id == (*this)[il].GetPixId()) 125 return kTRUE 126 } 127 128 return kFALSE 125 return kTRUE; 126 } 127 128 return kFALSE; 129 129 } 130 130 … … 133 133 // Checks if in the pixel list is an entry with pixel id 134 134 // 135 Bool_t MCerPhotEvt::IsPixelUsed(Int_t id) 136 { 137 const Int_t entries = fPixels->GetEntries(); 138 139 for (Int_t il=0; il<entries; il++ 135 Bool_t MCerPhotEvt::IsPixelUsed(Int_t id) const 136 { 137 const Int_t entries = fPixels->GetEntries(); 138 139 for (Int_t il=0; il<entries; il++) 140 140 { 141 141 MCerPhotPix &pix = (*this)[il]; 142 142 143 143 if (id == pix.GetPixId() && pix.IsPixelUsed()) 144 return kTRUE 145 } 146 147 return kFALSE 144 return kTRUE; 145 } 146 147 return kFALSE; 148 148 } 149 149 … … 152 152 // Checks if in the pixel list is an entry with pixel id 153 153 // 154 Bool_t MCerPhotEvt::IsPixelCore(Int_t id) 155 { 156 const Int_t entries = fPixels->GetEntries(); 157 158 for (Int_t il=0; il<entries; il++ 154 Bool_t MCerPhotEvt::IsPixelCore(Int_t id) const 155 { 156 const Int_t entries = fPixels->GetEntries(); 157 158 for (Int_t il=0; il<entries; il++) 159 159 { 160 160 MCerPhotPix &pix = (*this)[il]; 161 161 162 if ( 163 return kTRUE 162 if (id == pix.GetPixId() && pix.IsCorePixel()) 163 return kTRUE; 164 164 } 165 165 166 return kFALSE 166 return kFALSE; 167 167 } 168 168 … … 171 171 // get the minimum number of photons of all valid pixels in the list 172 172 // 173 Float_t MCerPhotEvt::GetNumPhotonsMin() 173 Float_t MCerPhotEvt::GetNumPhotonsMin() const 174 174 { 175 175 if (fNumPixels <= 0) 176 return -5. 176 return -5.; 177 177 178 178 Float_t minval = (*this)[0].GetNumPhotons(); 179 179 180 180 Float_t testval; 181 for (UInt_t i=1 ; i<fNumPixels; i++)181 for (UInt_t i=1; i<fNumPixels; i++) 182 182 { 183 183 testval = (*this)[i].GetNumPhotons(); … … 194 194 // get the maximum number of photons of all valid pixels in the list 195 195 // 196 Float_t MCerPhotEvt::GetNumPhotonsMax() 196 Float_t MCerPhotEvt::GetNumPhotonsMax() const 197 197 { 198 198 if (fNumPixels <= 0) -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h
r857 r959 33 33 void Print(Option_t *opt=NULL); 34 34 35 Bool_t IsPixelExisting( Int_t id );36 Bool_t IsPixelUsed ( Int_t id );37 Bool_t IsPixelCore ( Int_t id );35 Bool_t IsPixelExisting(Int_t id) const; 36 Bool_t IsPixelUsed (Int_t id) const; 37 Bool_t IsPixelCore (Int_t id) const; 38 38 39 Float_t GetNumPhotonsMin() ;40 Float_t GetNumPhotonsMax() ;39 Float_t GetNumPhotonsMin() const; 40 Float_t GetNumPhotonsMax() const; 41 41 42 42 MCerPhotPix &operator[](int i) { return *(MCerPhotPix*)(fPixels->At(i)); }
Note:
See TracChangeset
for help on using the changeset viewer.