Changeset 2207 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 06/23/03 11:19:04 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r2200 r2207 64 64 #include "MArrayS.h" 65 65 #include "MArrayB.h" 66 #include "MGeomCam.h" 66 67 #include "MRawRunHeader.h" 67 68 #include "MRawEvtPixelIter.h" … … 472 473 } 473 474 474 Bool_t MRawEvtData::GetPixelContent( Float_t &val, Int_t idx, Float_t ratio, Int_t type) const475 Bool_t MRawEvtData::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const 475 476 { 476 477 MRawEvtPixelIter Next(const_cast<MRawEvtData*>(this)); … … 478 479 return kFALSE; 479 480 480 val = Next.GetSumHiGainSamples(); 481 val = Next.GetSumHiGainSamples()-(float)GetNumHiGainSamples()*fHiGainFadcSamples->GetArray()[0]; 482 val *= cam.GetPixRatio(idx); 483 481 484 return kTRUE; 482 485 } -
trunk/MagicSoft/Mars/mraw/MRawEvtData.h
r2200 r2207 64 64 void ReadEvt(istream &fin); 65 65 66 Bool_t GetPixelContent( Float_t &val, Int_t idx, Float_t ratio=1, Int_t type=0) const;66 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const; 67 67 void DrawPixelContent(Int_t num) const 68 68 { -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r2178 r2207 203 203 } 204 204 205 Byte_t MRawEvtPixelIter::GetNumMaxHiGainSample() const 206 { 207 Byte_t max = 0; 208 Byte_t maxi = 0; 209 210 for (int i=0; i<fNumHiGainSamples; i++) 211 if (fHiGainPos[i]>max) 212 { 213 max = fHiGainPos[i]; 214 maxi = i; 215 } 216 217 return maxi; 218 } 219 205 220 // -------------------------------------------------------------------------- 206 221 // -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h
r2178 r2207 81 81 Float_t GetVarHiGainSamples() const; 82 82 83 Byte_t GetNumMaxHiGainSample() const; 84 83 85 Bool_t HasLoGain() const 84 86 { -
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r2173 r2207 128 128 // Now the EvtHeader and EvtData containers are initialized. 129 129 // 130 Bool_t MRawFileRead::PreProcess(MParList *pList)130 Int_t MRawFileRead::PreProcess(MParList *pList) 131 131 { 132 132 // … … 192 192 // - the raw data information of one event is read 193 193 // 194 Bool_t MRawFileRead::Process()194 Int_t MRawFileRead::Process() 195 195 { 196 196 // … … 236 236 // if it doesn't match. 237 237 // 238 Bool_t MRawFileRead::PostProcess()238 Int_t MRawFileRead::PostProcess() 239 239 { 240 240 // -
trunk/MagicSoft/Mars/mraw/MRawFileRead.h
r2173 r2207 29 29 ifstream *fIn; //! buffered input stream (file to read from) 30 30 31 Int_t PreProcess(MParList *pList); 32 Int_t Process(); 33 Int_t PostProcess(); 34 35 31 36 public: 32 37 MRawFileRead(const char *filename, const char *name=NULL, const char *title=NULL); 33 38 ~MRawFileRead(); 34 35 Bool_t PreProcess(MParList *pList);36 Bool_t Process();37 Bool_t PostProcess();38 39 39 40 ClassDef(MRawFileRead, 0) // Task to read the raw data binary file -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc
r2173 r2207 109 109 // are created. 110 110 // 111 Bool_t MRawFileWrite::PreProcess (MParList *pList)111 Int_t MRawFileWrite::PreProcess (MParList *pList) 112 112 { 113 113 // … … 231 231 // event should be filled in and fills it into this tree. 232 232 // 233 Bool_t MRawFileWrite::Process()233 Int_t MRawFileWrite::Process() 234 234 { 235 235 // -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.h
r2199 r2207 41 41 ~MRawFileWrite(); 42 42 43 Bool_t PreProcess(MParList *pList);44 Bool_t Process();43 Int_t PreProcess(MParList *pList); 44 Int_t Process(); 45 45 46 46 ClassDef(MRawFileWrite, 0) // Task to write the raw data containers to a root file -
trunk/MagicSoft/Mars/mraw/Makefile
r2178 r2207 22 22 # connect the include files defined in the config.mk file 23 23 # 24 INCLUDES = -I. -I../mbase -I../ MBase -I../mgui24 INCLUDES = -I. -I../mbase -I../mgui -I../mgeom -I../MBase 25 25 26 26 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.