Changeset 371 for trunk/MagicSoft/include-Classes
- Timestamp:
- 02/21/00 14:52:28 (25 years ago)
- Location:
- trunk/MagicSoft/include-Classes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/include-Classes/MRawEvt.cxx
r306 r371 22 22 // ---------- 23 23 // 24 // UInt_t uiEvtNo24 // UInt_t EvtNo 25 25 // 26 26 // This it the number of the Event in one … … 37 37 // ---------- 38 38 // 39 // ULong_t ulTimeStamp39 // ULong_t TimeStamp 40 40 // 41 41 // Time of the event. … … 49 49 // ---------- 50 50 // 51 // UChar_t ucEvtStatus51 // UChar_t EvtStatus 52 52 // 53 53 // Status of Event. … … 57 57 // ---------- 58 58 // 59 // UShort_t usTrig1st59 // UShort_t Trig1st 60 60 // 61 61 // Number of first level trigger … … 70 70 // ---------- 71 71 // 72 // UShort_t usMultPixel72 // UShort_t MultPixel 73 73 // 74 74 // Multiplicity of Pixels … … 80 80 // ---------- 81 81 // 82 // TClonesArray * taPixels82 // TClonesArray *Pixels 83 83 // 84 84 // Array of Pixels … … 108 108 // set all member to zero, init the pointer to ClonesArray, 109 109 110 uiEvtNo = 0 ;111 ulTimeStamp = 0 ;112 ucEvtStatus = 0 ;113 usTrig1st = 0 ;114 usMultPixel = 0 ;110 EvtNo = 0 ; 111 TimeStamp = 0 ; 112 EvtStatus = 0 ; 113 Trig1st = 0 ; 114 MultPixel = 0 ; 115 115 116 116 // … … 120 120 // initialize the list to this global pointer 121 121 122 taPixels = new TClonesArray ("MRawPixel", 2*CAMERA_PIXELS ) ;122 Pixels = new TClonesArray ("MRawPixel", 2*CAMERA_PIXELS ) ; 123 123 124 124 cout << " default constructor " << endl ; … … 130 130 // Implementation of the default destructor 131 131 // 132 delete taPixels ;132 delete Pixels ; 133 133 cout << " default destructor " << endl ; 134 134 } … … 140 140 // Resets all members to zero, clear the list of Pixels 141 141 // 142 uiEvtNo = 0 ;143 ulTimeStamp = 0 ;144 ucEvtStatus = 0 ;145 usTrig1st = 0 ;146 usMultPixel = 0 ;147 148 taPixels->Clear() ;142 EvtNo = 0 ; 143 TimeStamp = 0 ; 144 EvtStatus = 0 ; 145 Trig1st = 0 ; 146 MultPixel = 0 ; 147 148 Pixels->Clear() ; 149 149 } 150 150 … … 157 157 158 158 // Prints out the data of one Pixel 159 cout << endl << "EventNumber " << uiEvtNo ;160 cout << endl << "Event Time Stamp " << ulTimeStamp ;161 cout << endl << "Event Status " << (int) ucEvtStatus ;162 cout << endl << "Trigger 1. Level " << usTrig1st ;163 cout << endl << "Number of Pixels " << usMultPixel ;164 165 for (Int_t i=0 ; i< usMultPixel; i++ ) {166 ((MRawPixel *) taPixels->At(i))->Print() ;159 cout << endl << "EventNumber " << EvtNo ; 160 cout << endl << "Event Time Stamp " << TimeStamp ; 161 cout << endl << "Event Status " << (int) EvtStatus ; 162 cout << endl << "Trigger 1. Level " << Trig1st ; 163 cout << endl << "Number of Pixels " << MultPixel ; 164 165 for (Int_t i=0 ; i<MultPixel; i++ ) { 166 ((MRawPixel *)Pixels->At(i))->Print() ; 167 167 } 168 168 } … … 176 176 // 177 177 178 uiEvtNo = uiN ;179 ulTimeStamp = ulT ;178 EvtNo = uiN ; 179 TimeStamp = ulT ; 180 180 181 181 UChar_t ucA[FADC_SLICES] ; … … 184 184 GetFadcNoise ( ucA ) ; 185 185 186 TClonesArray &caP = * taPixels ;187 new ( caP[ usMultPixel++] ) MRawPixel((usMultPixel), 0, ucA) ;186 TClonesArray &caP = *Pixels ; 187 new ( caP[MultPixel++] ) MRawPixel((MultPixel), 0, ucA) ; 188 188 } 189 189 } … … 191 191 void MRawEvt::FillHeader ( UInt_t uiN, ULong_t ulT ) { 192 192 193 uiEvtNo = uiN ;194 ulTimeStamp = ulT ;195 196 ucEvtStatus = 0 ;197 usTrig1st = 0 ;198 usMultPixel = 0 ;199 200 taPixels->Clear() ;193 EvtNo = uiN ; 194 TimeStamp = ulT ; 195 196 EvtStatus = 0 ; 197 Trig1st = 0 ; 198 MultPixel = 0 ; 199 200 Pixels->Clear() ; 201 201 } 202 202 … … 213 213 } 214 214 215 TClonesArray &caP = * taPixels ;216 new ( caP[ usMultPixel++] ) MRawPixel((uiPix), 0, ucA) ;215 TClonesArray &caP = *Pixels ; 216 new ( caP[MultPixel++] ) MRawPixel((uiPix), 0, ucA) ; 217 217 } 218 218 … … 224 224 // 225 225 226 uiEvtNo = uiN ;227 ulTimeStamp = ulT ;228 229 usMultPixel = 0 ;226 EvtNo = uiN ; 227 TimeStamp = ulT ; 228 229 MultPixel = 0 ; 230 230 231 231 UChar_t ucA[FADC_SLICES] ; … … 239 239 ucA[5] = (UShort_t) (array[i]) ; 240 240 241 TClonesArray &caP = * taPixels ;242 new ( caP[ usMultPixel++] ) MRawPixel(i, 0, ucA) ;241 TClonesArray &caP = *Pixels ; 242 new ( caP[MultPixel++] ) MRawPixel(i, 0, ucA) ; 243 243 } 244 244 } … … 249 249 // returns the pixel multiplicity of the Event 250 250 // 251 return usMultPixel;251 return MultPixel; 252 252 } 253 253 -
trunk/MagicSoft/include-Classes/MRawEvt.h
r306 r371 11 11 12 12 private: 13 UInt_t uiEvtNo ; // Number of Event13 UInt_t EvtNo ; // Number of Event 14 14 15 ULong_t ulTimeStamp ; // Time of the Event15 ULong_t TimeStamp ; // Time of the Event 16 16 17 UChar_t ucEvtStatus ; // Status of this event (DAQ, Pedestal, ..)17 UChar_t EvtStatus ; // Status of this event (DAQ, Pedestal, ..) 18 18 19 UShort_t usTrig1st ; // Number of 1st level tiggers between 2 events19 UShort_t Trig1st ; // Number of 1st level tiggers between 2 events 20 20 21 UShort_t usMultPixel ; // Multiplicity of the Pixels in this event21 UShort_t MultPixel ; // Multiplicity of the Pixels in this event 22 22 23 TClonesArray * taPixels ; // list of the events23 TClonesArray *Pixels ; // list of the events 24 24 25 25 public: … … 47 47 // returns a Pointer to the pixel list 48 48 // 49 return taPixels ;49 return Pixels ; 50 50 } 51 51 -
trunk/MagicSoft/include-Classes/MRawPixel.cxx
r306 r371 26 26 // --------- 27 27 // 28 // UShort_t usPixelId ;28 // UShort_t PixelId ; 29 29 // 30 30 // This is to identify the Pixel. … … 34 34 // To reduce the amount of data, we store the information of the 35 35 // low-gain-branch of the Fadc´s only if there is a signal in. Then the 36 // usPixelId is:37 // usPixelId = 10000 + PixelId .36 // PixelId is: 37 // PixelId = 10000 + PixelId . 38 38 // 39 39 // For the high gain Fadc values the rule is: 40 // usPixelId = PixelId .40 // PixelId = PixelId . 41 41 // 42 42 // 43 43 // --------- 44 44 // 45 // UChar_t ucPixelStatus ;45 // UChar_t PixelStatus ; 46 46 // 47 47 // The PixelStatus may contain information if the Pixel has triggered 48 48 // this event. Also the kind of gain-branch (high or low) may be indicated 49 // by one bit of the ucPixelStatus. etc49 // by one bit of the PixelStatus. etc 50 50 // 51 51 // --------- 52 52 // 53 // UChar_t aucFadc[ FADC_SLICES ] ;53 // UChar_t Fadc[ FADC_SLICES ] ; 54 54 // 55 55 // The values of FADC_SLICES fadc-slices. This is the information of the 56 56 // measured ADC values for one branch (high gain or low gain). The typ of 57 // branch is indicated in the usPixelNumber and in the ucPixelStatus.57 // branch is indicated in the usPixelNumber and in the PixelStatus. 58 58 59 59 ClassImp(MRawPixel) … … 66 66 // 67 67 68 usPixelId = 0 ;69 ucPixelStatus = 0 ;68 PixelId = 0 ; 69 PixelStatus = 0 ; 70 70 71 71 for (Int_t i = 0; i<FADC_SLICES; i++) 72 aucFadc[i] = 0 ;72 Fadc[i] = 0 ; 73 73 } 74 74 … … 80 80 // Parameter is the PixelId. All other data member are set to zero 81 81 82 usPixelId = PId ;83 ucPixelStatus = 0 ;82 PixelId = PId ; 83 PixelStatus = 0 ; 84 84 85 85 for (Int_t i = 0; i<FADC_SLICES; i++) 86 aucFadc[i] = 0 ;86 Fadc[i] = 0 ; 87 87 } 88 88 … … 94 94 // parameters are PixelId, Status and an array with Fadc numbers. 95 95 96 usPixelId = usPId ;97 ucPixelStatus = ucSt ;96 PixelId = usPId ; 97 PixelStatus = ucSt ; 98 98 99 99 for (Int_t i = 0; i<FADC_SLICES; i++) 100 aucFadc[i] = ucF[i] ;100 Fadc[i] = ucF[i] ; 101 101 } 102 102 MRawPixel::~MRawPixel(){ … … 110 110 // Sets the data member back to zero 111 111 // 112 usPixelId = 0 ;113 ucPixelStatus = 0 ;112 PixelId = 0 ; 113 PixelStatus = 0 ; 114 114 115 115 for (Int_t i = 0; i<FADC_SLICES; i++) 116 aucFadc[i] = 0 ;116 Fadc[i] = 0 ; 117 117 } 118 118 … … 124 124 // 125 125 126 cout << endl << "PixId " << usPixelId ;127 cout << " Stat " << (Int_t) ucPixelStatus << " --> " ;126 cout << endl << "PixId " << PixelId ; 127 cout << " Stat " << (Int_t) PixelStatus << " --> " ; 128 128 129 129 for (Int_t i=0 ; i<FADC_SLICES ; i++ ) { 130 cout<<" / " << (int) aucFadc[i] ;130 cout<<" / " << (int) Fadc[i] ; 131 131 } 132 132 } … … 136 136 // returns back the PixelId of the Pixel 137 137 // 138 return usPixelId;138 return PixelId; 139 139 } 140 140 … … 143 143 // returns back the fadc content of the slice iSli 144 144 // 145 return ( aucFadc[iSli] ) ;145 return ( Fadc[iSli] ) ; 146 146 } 147 147 -
trunk/MagicSoft/include-Classes/MRawPixel.h
r306 r371 13 13 private: 14 14 15 UShort_t usPixelId ; // Identification of PixelNumber and gain branch15 UShort_t PixelId ; // Identification of PixelNumber and gain branch 16 16 17 UChar_t ucPixelStatus ; // The Status of the pixel17 UChar_t PixelStatus ; // The Status of the pixel 18 18 19 UChar_t aucFadc[ FADC_SLICES ] ;// The values of fadc-slices.19 UChar_t Fadc[ FADC_SLICES ] ; // The values of fadc-slices. 20 20 21 21 public:
Note:
See TracChangeset
for help on using the changeset viewer.