|
Last change
on this file since 483 was 433, checked in by harald, 25 years ago |
|
Adding the RawDataFormat for the Crate Data to the repository. This
the starting point for further development. Thanks to Oscar for
the first version.
|
|
File size:
1.4 KB
|
| Line | |
|---|
| 1 | #include <iostream.h>
|
|---|
| 2 |
|
|---|
| 3 | #include "TClonesArray.h"
|
|---|
| 4 | #include "TString.h"
|
|---|
| 5 | #include "TRandom.h"
|
|---|
| 6 |
|
|---|
| 7 | #include "MRawCrate.h"
|
|---|
| 8 |
|
|---|
| 9 | #include "Mdefine.h"
|
|---|
| 10 |
|
|---|
| 11 | //==========
|
|---|
| 12 | // MRawCrate
|
|---|
| 13 | //
|
|---|
| 14 | // One Event in the Camera of MAGIC consists of measurements of different
|
|---|
| 15 | // Photomultiplier. The measurements are taken with FADCs wich are set in
|
|---|
| 16 | // several Crates.
|
|---|
| 17 | //
|
|---|
| 18 | // The Class MRawCrate is used to store some usefull
|
|---|
| 19 | // infotmation of each create.
|
|---|
| 20 | //
|
|---|
| 21 | // The data members are described in detail here:
|
|---|
| 22 | //
|
|---|
| 23 | // ---------
|
|---|
| 24 | //
|
|---|
| 25 | // Byte_t DAQCrateNumber ;
|
|---|
| 26 | //
|
|---|
| 27 | // This is to identify the Crate
|
|---|
| 28 | //
|
|---|
| 29 | // ---------
|
|---|
| 30 | //
|
|---|
| 31 | // UInt_t FADCEvtNumber ;
|
|---|
| 32 | //
|
|---|
| 33 | // Event number as determined by b internal counter in this
|
|---|
| 34 | // particular FADC crate. This number should be equal to DAQEvtNumber
|
|---|
| 35 | // but not to TriggerNumber. All the crates should have the same
|
|---|
| 36 | // FADCEvtNumber so this number can be used to check the crate sinchronization.
|
|---|
| 37 | //
|
|---|
| 38 | // ---------
|
|---|
| 39 | //
|
|---|
| 40 | // UInt_t FADCClockTick ;
|
|---|
| 41 | //
|
|---|
| 42 | // Tick of the 20 MHz crate clock as determined using a counter in
|
|---|
| 43 | // the FADC crate. This tick will reset automatically to 0 every 50ns*2^32.
|
|---|
| 44 |
|
|---|
| 45 | ClassImp(MRawCrate)
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 | MRawCrate::MRawCrate() {
|
|---|
| 50 | //
|
|---|
| 51 | // The default constructor sets all members to zero.
|
|---|
| 52 | //
|
|---|
| 53 |
|
|---|
| 54 | DAQCrateNumber = 0 ;
|
|---|
| 55 | FADCEvtNumber = 0 ;
|
|---|
| 56 | FADCClockTick = 0 ;
|
|---|
| 57 |
|
|---|
| 58 | }
|
|---|
| 59 |
|
|---|
| 60 | MRawCrate::~MRawCrate(){
|
|---|
| 61 | //
|
|---|
| 62 | // default destructor
|
|---|
| 63 | //
|
|---|
| 64 | }
|
|---|
| 65 |
|
|---|
| 66 | void MRawCrate::Clear(){
|
|---|
| 67 | //
|
|---|
| 68 | // Clear values
|
|---|
| 69 | //
|
|---|
| 70 |
|
|---|
| 71 | DAQCrateNumber = 0 ;
|
|---|
| 72 | FADCEvtNumber = 0 ;
|
|---|
| 73 | FADCClockTick = 0 ;
|
|---|
| 74 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.