#include "AliRawReader.h"
#include <TArrayS.h>
+using std::endl;
+using std::cout;
/// \cond CLASSIMP
ClassImp(AliMUONDigitMaker) // Class implementation in ROOT context
/// \endcond
//____________________________________________________________________
Int_t
AliMUONDigitMaker::Raw2Digits(AliRawReader* rawReader,
- AliMUONVDigitStore* digitStore,
- AliMUONVTriggerStore* triggerStore,
- Bool_t sdigit)
+ AliMUONVDigitStore* digitStore,
+ AliMUONVTriggerStore* triggerStore)
{
/// Main method to creates digit
/// for tracker
if ( fDigitStore )
{
fDigitStore->Clear(); // insure we start with an empty container
- tracker = ReadTrackerDDL(rawReader,sdigit);
+ tracker = ReadTrackerDDL(rawReader);
}
if ( fTriggerStore || fMakeTriggerDigits )
//____________________________________________________________________
Int_t
-AliMUONDigitMaker::ReadTrackerDDL(AliRawReader* rawReader, Bool_t sdigit)
+AliMUONDigitMaker::ReadTrackerDDL(AliRawReader* rawReader)
{
/// Reading tracker DDL
/// filling the fDigitStore container, which must not be null
digit->SetPadXY(pad.GetIx(),pad.GetIy());
- if ( sdigit )
- {
- digit->SetCharge(charge);
- }
- else
- {
- digit->SetADC(charge);
- }
+ digit->SetADC(charge);
+
}
if ( fRawStreamTracker->IsErrorMessage() )
//____________________________________________________________________
Int_t AliMUONDigitMaker::TriggerDigits(Int_t nBoard,
const TArrayS* xyPattern,
- AliMUONVDigitStore& digitStore) const
+ AliMUONVDigitStore& digitStore, Bool_t warn) const
{
/// make digits for trigger from pattern, and add them to digitStore
Int_t offset = 0;
if (iCath && localBoard->GetSwitch(AliMpLocalBoard::kZeroAllYLSB)) offset = -8;
- AliMpPad pad = seg->PadByLocation(nBoard,ibitxy+offset,kTRUE);
+ AliMpPad pad = seg->PadByLocation(nBoard,ibitxy+offset,warn);
if (!pad.IsValid())
{