Changeset 2236 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 06/26/03 16:21:57 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r2230 r2236 224 224 225 225 TString str(opt); 226 str.ToLower(); 226 227 227 228 UInt_t id = 0; 228 229 229 if (str.BeginsWith(" GRAPH", TString::kIgnoreCase))230 if (str.BeginsWith("graph")) 230 231 if (str.Length()>5) 231 232 sscanf(&str[5], "%d", &id); 232 if (str.BeginsWith(" HIST", TString::kIgnoreCase))233 if (str.BeginsWith("hist")) 233 234 if (str.Length()>4) 234 235 sscanf(&str[4], "%d", &id); … … 250 251 name += pix.GetPixelId(); 251 252 252 Bool_t same = str.Contains("same" , TString::kIgnoreCase);253 254 if (str.BeginsWith(" GRAPH", TString::kIgnoreCase))253 Bool_t same = str.Contains("same"); 254 255 if (str.BeginsWith("graph")) 255 256 { 256 257 *fLog << inf << "Drawing Graph: Pixel Idx #" << pix.GetPixelId(); … … 276 277 } 277 278 278 if (str.BeginsWith(" HIST", TString::kIgnoreCase))279 if (str.BeginsWith("hist")) 279 280 { 280 281 // FIXME: Add Legend -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r2229 r2236 228 228 // -------------------------------------------------------------------------- 229 229 // 230 // Returns the index of the FADC slice the maximum signal in 231 // 232 Byte_t MRawEvtPixelIter::GetNumMaxLoGainSample() const 233 { 234 Byte_t max = 0; 235 Byte_t maxi = 0; 236 237 for (int i=0; i<fNumLoGainSamples; i++) 238 if (fLoGainPos[i]>max) 239 { 240 max = fLoGainPos[i]; 241 maxi = i; 242 } 243 244 return maxi; 245 } 246 247 // -------------------------------------------------------------------------- 248 // 230 249 // returns the sum of all lo gain fadc samples of the actual pixel. 231 250 // if no lo gain information is available 0 is returned. -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h
r2207 r2236 82 82 83 83 Byte_t GetNumMaxHiGainSample() const; 84 Byte_t GetNumMaxLoGainSample() const; 84 85 85 86 Bool_t HasLoGain() const
Note:
See TracChangeset
for help on using the changeset viewer.