// $Id$
#include <cstdlib>
+#include <iostream>
#include "AliMUONTrackerIO.h"
/// \class AliMUONTrackerIO
///
/// \author Laurent Aphecetche, Subatech
+using std::ostringstream;
+using std::istringstream;
+using std::cout;
+using std::endl;
/// \cond CLASSIMP
ClassImp(AliMUONTrackerIO)
/// \endcond
if ( ! AliMpDDLStore::Instance(kFALSE) )
{
AliErrorClass("Mapping not loaded. Cannot work");
- return 0;
+ return kNoMapping;
}
char line[1024];
sin >> busPatchId >> manuId >> sumn >> numberOfEvents;
+ if ( busPatchId == -1 && manuId == -1 && sumn == 0 && numberOfEvents == 0 )
+ {
+ /// DA could not produce information (because run failed somehow).
+ /// That's OK, but let the world know about it
+ return kNoInfoFile;
+ }
+
Int_t detElemId = AliMpDDLStore::Instance()->GetDEfromBus(busPatchId);
AliMpDetElement* de = AliMpDDLStore::Instance()->GetDetElement(detElemId);
if ( sline.Contains("DUMMY") )
{
AliDebugClass(1,"Got a dummy file here");
+ delete [] runs;
+ delete [] dac;
return kDummyFile;
}
if ( sline.Contains("* Run") )
runNumber = s.Atoi();
AliDebugClass(1,Form("runNumber is %d",runNumber));
}
+ delete a;
}
if ( sline.Contains("DAC values") )
{
{
if ( nDAC < 100 )
{
+ delete[] runs;
+ delete[] dac;
runs = new Int_t[nDAC];
dac = new Int_t[nDAC];
// skip two lines
{
AliErrorClass(Form("Something went wrong, as I get too big nDAC = %d",nDAC));
nDAC = 0;
+ delete [] runs;
+ delete [] dac;
return kFormatError;
}
}
}
continue;
}
+
+ if (!param) continue;
+
Int_t channel;
Float_t capaValue;
Float_t injectionGain;