Changeset 765 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 04/23/01 15:42:03 (24 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawCrateArray.cc
r760 r765 25 25 ///////////////////////////////////////////////////////////////////////////// 26 26 // 27 // MRawCrateArray27 // MRawCrateArray 28 28 // 29 // This class exists to make it possible to read in the crate data 30 // TClones Array. In principal we can directly write the TClonesArray 31 // to the root file, but when we read in again the root file we cannot 32 // put the TClonesArray into our parameter list, becaus it isn't derived 33 // from TNamed. This class is derived from TNamed and can be put in the list 29 // This class exists to make it possible to read in the crate data 30 // TClones Array. In principal we can directly write the TClonesArray 31 // to the root file, but when we read in again the root file we cannot 32 // put the TClonesArray into our parameter list, becaus it isn't derived 33 // from MParContainer. This class is derived from MParContainer and can be 34 // put in the list. The TClones Array containes conatiners which store 35 // the information about one crate (MRawCrateData). 34 36 // 35 37 ///////////////////////////////////////////////////////////////////////////// -
trunk/MagicSoft/Mars/mraw/MRawCrateArray.h
r454 r765 24 24 25 25 void Clear(Option_t *opt=NULL); 26 void Print(Option_t *opt=NULL);27 26 28 27 MRawCrateData *GetEntry(Int_t i); -
trunk/MagicSoft/Mars/mraw/MRawCrateData.cc
r749 r765 23 23 \* ======================================================================== */ 24 24 25 ///////////////////////////////////////////////////////////////////////////// 26 // 27 // MRawCrateData 28 // 29 // This container stores the information about one crate. A list of this 30 // informations can be find at MRawCrateArray 31 // 32 ///////////////////////////////////////////////////////////////////////////// 25 33 #include "MRawCrateData.h" 26 34 … … 30 38 #include <fstream.h> 31 39 40 #include "MLog.h" 41 32 42 ClassImp(MRawCrateData) 33 43 … … 36 46 } 37 47 48 // -------------------------------------------------------------------------- 49 // 50 // read the information from a binary input stream about the CRATE DATA, 51 // like specified in a TDAS note 52 // 38 53 void MRawCrateData::ReadEvt(istream& fin) 39 54 { 40 //41 // read the information from a binary input stream about the CRATE DATA,42 // like specified in a TDAS note43 //44 55 fin.read((Byte_t*)&fDAQCrateNumber, 2); 45 56 fin.read((Byte_t*)&fFADCEvtNumber, 4); … … 47 58 } 48 59 60 // -------------------------------------------------------------------------- 61 // 62 // print all stored information to gLog 63 // 49 64 void MRawCrateData::Print(Option_t *t) 50 65 { 51 // 52 // print all stored information to screen 53 // 54 cout << "Crate Number " << fDAQCrateNumber << ": "; 55 cout << "FADCEventNr=" << fFADCEvtNumber << " "; 56 cout << "FADCClockTick=" << fFADCClockTick << " (20MHz)" << endl; 66 gLog << "Crate Number " << fDAQCrateNumber << ": "; 67 gLog << "FADCEventNr=" << fFADCEvtNumber << " "; 68 gLog << "FADCClockTick=" << fFADCClockTick << " (20MHz)" << endl; 57 69 } -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h
r716 r765 43 43 public: 44 44 45 MRawEvtHeader(const char *name=NULL, const char *title=NULL);46 ~MRawEvtHeader();45 MRawEvtHeader(const char *name=NULL, const char *title=NULL); 46 ~MRawEvtHedare(); 47 47 48 void Init(MRawRunHeader *rh, MTime *t);48 void Init(MRawRunHeader *rh, MTime *t); 49 49 50 void Clear(Option_t * = NULL);51 void Print(Option_t * = NULL);50 void Clear(Option_t * = NULL); 51 void Print(Option_t * = NULL); 52 52 53 void FillHeader(UInt_t, Float_t=0);53 void FillHeader(UInt_t, Float_t=0); 54 54 55 UShort_t GetTrigType() const { return fTrigType; }55 UShort_t GetTrigType() const { return fTrigType; } 56 56 57 int ReadEvt(istream& fin);57 int ReadEvt(istream& fin); 58 58 59 ClassDef(MRawEvtHeader, 1) // Parameter Conatiner for raw EVENT HEADER 60 59 ClassDef(MRawEvtHeader, 1) // Parameter Conatiner for raw EVENT HEADER 61 60 }; 62 61
Note:
See TracChangeset
for help on using the changeset viewer.