- x = (bcCtr<<16) | (ptCtr<<12) | (ptPhase<<8) | ((kNTBin-1)<<2) | 1;
- if (nw < maxSize) {
- buf[nw++] = x;
- }
- else {
- of++;
- }
- // h[2]
- Int_t pedSetup = 1; // Pedestal filter setup (0:1). Here it is always 1 for no reason
- Int_t gainSetup = 1; // Gain filter setup (0:1). Here it is always 1 for no reason
- Int_t tailSetup = 1; // Tail filter setup (0:1). Here it is always 1 for no reason
- Int_t xtSetup = 0; // Cross talk filter setup (0:1). Here it is always 0 for no reason
- Int_t nonlinSetup = 0; // Nonlinearity filter setup (0:1). Here it is always 0 for no reason
- Int_t bypassSetup = 0; // Filter bypass (for raw data) setup (0:1). Here it is always 0 for no reason
- Int_t commonAdditive = 10; // Digital filter common additive (0:63). Here it is always 10 for no reason
- x = (pedSetup<<31) | (gainSetup<<30) | (tailSetup<<29) | (xtSetup<<28) | (nonlinSetup<<27)
- | (bypassSetup<<26) | (commonAdditive<<20) | 1;
- if (nw < maxSize) {
- buf[nw++] = x;
- }
- else {
- of++;
- }
-}
-
-
-//_____________________________________________________________________________
-AliTRDdigitsManager *AliTRDrawData::Raw2DigitsOLD(AliRawReader *rawReader)
-{
- //
- // Vx of the raw data reading
- //
-
- AliTRDdataArrayS *digits = 0;
- AliTRDdataArrayI *track0 = 0;
- AliTRDdataArrayI *track1 = 0;
- AliTRDdataArrayI *track2 = 0;
-
- AliTRDSignalIndex *indexes = 0;
- // Create the digits manager
- AliTRDdigitsManager* digitsManager = new AliTRDdigitsManager();
- digitsManager->CreateArrays();
-
- //AliTRDRawStream input(rawReader);
- AliTRDRawStreamV2 input(rawReader);
- input.SetRawVersion( fFee->GetRAWversion() );
- input.Init();
-
- AliInfo(Form("Stream version: %s", input.IsA()->GetName()));
-
- // Loop through the digits
- Int_t lastdet = -1;
- Int_t det = 0;
- Int_t it = 0;
- while (input.Next()) {
-
- det = input.GetDet();
-
- if (det != lastdet) { // If new detector found
-
- lastdet = det;
-
- if (digits) digits->Compress(1,0);
- if (track0) track0->Compress(1,0);
- if (track1) track1->Compress(1,0);
- if (track2) track2->Compress(1,0);
-
- // Add a container for the digits of this detector
- digits = (AliTRDdataArrayS *) digitsManager->GetDigits(det);
- track0 = (AliTRDdataArrayI *) digitsManager->GetDictionary(det,0);
- track1 = (AliTRDdataArrayI *) digitsManager->GetDictionary(det,1);
- track2 = (AliTRDdataArrayI *) digitsManager->GetDictionary(det,2);
-
- // Allocate memory space for the digits buffer
- if (digits->GetNtime() == 0)
- {
- digits->Allocate(input.GetMaxRow(),input.GetMaxCol(), input.GetNumberOfTimeBins());
- track0->Allocate(input.GetMaxRow(),input.GetMaxCol(), input.GetNumberOfTimeBins());
- track1->Allocate(input.GetMaxRow(),input.GetMaxCol(), input.GetNumberOfTimeBins());
- track2->Allocate(input.GetMaxRow(),input.GetMaxCol(), input.GetNumberOfTimeBins());
- }
-
- indexes = digitsManager->GetIndexes(det);
- indexes->SetSM(input.GetSM());
- indexes->SetStack(input.GetStack());
- indexes->SetLayer(input.GetLayer());
- indexes->SetDetNumber(det);
- if (indexes->IsAllocated() == kFALSE)
- indexes->Allocate(input.GetMaxRow(), input.GetMaxCol(), input.GetNumberOfTimeBins());
- }
-
- // 3 timebin data are stored per word
- for (it = 0; it < 3; it++)
- {
- if ( input.GetTimeBin() + it < input.GetNumberOfTimeBins() )
- {
- if (input.GetSignals()[it] > 0)
- {
- digits->SetDataUnchecked(input.GetRow(), input.GetCol(),
- input.GetTimeBin() + it, input.GetSignals()[it]);
-
- indexes->AddIndexTBin(input.GetRow(), input.GetCol(),
- input.GetTimeBin() + it);
- track0->SetDataUnchecked(input.GetRow(), input.GetCol(),
- input.GetTimeBin() + it, 0);
- track1->SetDataUnchecked(input.GetRow(), input.GetCol(),
- input.GetTimeBin() + it, 0);
- track2->SetDataUnchecked(input.GetRow(), input.GetCol(),
- input.GetTimeBin() + it, 0);
- }
- }
- }
- }
-
- if (digits) digits->Compress(1,0);
- if (track0) track0->Compress(1,0);
- if (track1) track1->Compress(1,0);
- if (track2) track2->Compress(1,0);
-
- return digitsManager;
-