class AliTRDarrayADC;
class AliTRDarrayDictionary;
class AliTRDdigitsManager;
+class TTreeSRedirector;
class AliTRDmcmSim : public TObject {
public:
void Reset();
// clears filter registers and internal data
+ void SetDebugStream(TTreeSRedirector *stream) { fDebugStream = stream; }
+ TTreeSRedirector* GetDebugStream() const { return fDebugStream; }
+
Bool_t LoadMCM(AliRunLoader* const runloader, Int_t det, Int_t rob, Int_t mcm);
void NoiseTest(Int_t nsamples, Int_t mean, Int_t sigma, Int_t inputGain = 1, Int_t inputTail = 2);
// of the output.
static void SetStoreClusters(Bool_t storeClusters) { fgStoreClusters = storeClusters; }
- static Bool_t GetStoreClusters(Bool_t storeClusters) { return fgStoreClusters; }
+ static Bool_t GetStoreClusters() { return fgStoreClusters; }
Int_t GetDetector() const { return fDetector; }; // Returns Chamber ID (0-539)
Int_t GetRobPos() const { return fRobPos; }; // Returns ROB position (0-7)
// I/O
void PrintFitRegXml(ostream& os) const;
void PrintTrackletsXml(ostream& os) const;
+ void PrintAdcDatTxt(ostream& os) const;
void PrintAdcDatHuman(ostream& os) const;
void PrintAdcDatXml(ostream& os) const;
void PrintAdcDatDatx(ostream& os, Bool_t broadcast=kFALSE, Int_t timeBinOffset = -1) const;
static const Int_t fgkFormatIndex; // index for format settings in stream
- static const Int_t fgkNADC; // Number of ADC
static const Int_t fgkMaxTracklets = 4; // maximum number of tracklet-words submitted per MCM (one per CPU)
static const Int_t fgkAddDigits = 2; // additional digits used for internal representation of ADC data
// all internal data as after data control block (i.e. 12 bit), s. TRAP manual
UInt_t AddUintClipping(UInt_t a, UInt_t b, UInt_t nbits) const;
// Add a and b (unsigned) with clipping to the maximum value representable by nbits
+ TTreeSRedirector *fDebugStream;
+
private:
AliTRDmcmSim(const AliTRDmcmSim &m); // not implemented
AliTRDmcmSim &operator=(const AliTRDmcmSim &m); // not implemented
static Bool_t fgStoreClusters; // whether to store all clusters in the tracklets
- ClassDef(AliTRDmcmSim,6)
+ ClassDef(AliTRDmcmSim,7)
};
std::ostream& operator<<(std::ostream& os, const AliTRDmcmSim& mcm);