//_____________________________________________________________
// AliL3TPCBeamTestMemHandler
//
+// Class for converting the test beam data of May 2004
+// to the HLT file format using R. Bramms tables.
+//
// Author: C. Loizides <loizides@ikf.uni-frankfurt.de>
// -- Copyright © ALICE HLT Group
</pre>
ClassImp(AliL3TPCBeamTestMemHandler)
AliL3TPCBeamTestMemHandler::AliL3TPCBeamTestMemHandler(Char_t *fPathToMappingFile) : AliL3MemHandler()
-{ //constructor
+{
+ //constructor
fMinTimeBin=1;
fNumOfChannels=7807+1; //must be big enough to contain all channels (per patch)
}
AliL3TPCBeamTestMemHandler::~AliL3TPCBeamTestMemHandler()
-{ //destructor
+{
+ //destructor
for(Int_t i = 0; i < 5504 ; i++) {
if(fMapping[i] != fMappingEmptyRow && fMapping[i]) delete[] fMapping[i];
}
}
AliL3DigitRowData* AliL3TPCBeamTestMemHandler::RawData2Memory(UInt_t &nrow,Int_t /*event*/)
-{ //convert the raw data
+{
+ //convert the raw data
AliL3DigitRowData *data = 0;
nrow=0;
Int_t nrowsdummy=AliL3Transform::GetNRows(fPatch);
- fRows = new RowStructure[nrowsdummy];
+ fRows = new AliRowStructure[nrowsdummy];
for(Int_t i=0;i<nrowsdummy;i++){
fRows[i].fRow=-1;
fRows[i].fNDigits=0;
}
Bool_t AliL3TPCBeamTestMemHandler::RawData2CompBinary(Int_t event)
-{ //raw data to memory
+{
+ //raw data to memory
Bool_t out = kTRUE;
UInt_t ndigits=0;
AliL3DigitRowData *digits=0;
#ifndef ALIL3TPCBEAMTESTMEMHANDLER_H
#define ALIL3TPCBEAMTESTMEMHANDLER_H
+//_____________________________________________________________
+// AliL3TPCBeamTestMemHandler
+//
+// Class for converting the test beam data of May 2004
+// to the HLT file format using R. Bramms tables.
+//
+// Author: C. Loizides <loizides@ikf.uni-frankfurt.de>
+// -- Copyright © ALICE HLT Group
+
+
#include "AliL3MemHandler.h"
class AliL3TPCBeamTestMemHandler : public AliL3MemHandler{
fMinTimeBin=i;
}
- Int_t MappingGetPadRow(Int_t channel) {
+ Int_t MappingGetPadRow(Int_t channel) const {
Int_t retval;
- if(channel < fNumOfChannels)
- retval = fMapping[channel][2]-fRowMin;
- else
- retval = -1;
+ if(channel < fNumOfChannels) retval = fMapping[channel][2]-fRowMin;
+ else retval = -1;
return retval;
}
- Int_t MappingGetPad(Int_t channel) {
+ Int_t MappingGetPad(Int_t channel) const {
Int_t retval;
- if(channel < fNumOfChannels)
- retval = fMapping[channel][3];
- else
- retval = -1;
+ if(channel < fNumOfChannels) retval = fMapping[channel][3];
+ else retval = -1;
return retval;
}
private:
-struct RowStructure{
- Int_t fRow; //row
- Int_t fNDigits; //digits
- Int_t *fPadPos; // pad position
-};
+ struct AliRowStructure {
+ Int_t fRow; //row
+ Int_t fNDigits; //digits
+ Int_t *fPadPos; // pad position
+ };
- Short_t **fMapping;//! // mapping of channels to pads
- Short_t *fMappingEmptyRow;//! // helper field
- Int_t fNumOfChannels; // number of channels
+ Short_t **fMapping;//! // mapping of channels to pads
+ Short_t *fMappingEmptyRow;//! // helper field
+ Int_t fNumOfChannels; // number of channels
- Short_t *fInputPtr;//! // input pointer from shared memory
- Int_t fInputSize;//! // size of input data
- RowStructure *fRows;//! // rows
- Int_t fNTimeBins; // number of timebins
- Int_t fMinTimeBin; // min timebin (not zero because of altro)
+ Short_t *fInputPtr;//! // input pointer from shared memory
+ Int_t fInputSize;//! // size of input data
+ AliRowStructure *fRows;//! // rows
+ Int_t fNTimeBins; // number of timebins
+ Int_t fMinTimeBin; // min timebin (not zero because of altro)
ClassDef(AliL3TPCBeamTestMemHandler,1) //RawData Filehandler class
};