]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDmcmSim.h
Fix in the TRD time-offset calibration (Hans)
[u/mrichter/AliRoot.git] / TRD / AliTRDmcmSim.h
index 7617615138c19abb3119fe3c6e6b485aa47f75af..748d148e10c9cf31dcb9b503cf9950d9ee67cbf5 100644 (file)
@@ -23,6 +23,7 @@ class AliTRDtrapConfig;
 class AliTRDarrayADC;
 class AliTRDarrayDictionary;
 class AliTRDdigitsManager;
+class TTreeSRedirector;
 
 class AliTRDmcmSim : public TObject {
  public:
@@ -35,6 +36,9 @@ class AliTRDmcmSim : public TObject {
          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);
@@ -64,7 +68,7 @@ class AliTRDmcmSim : public TObject {
   // 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)
@@ -129,6 +133,7 @@ class AliTRDmcmSim : public TObject {
          // 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;
@@ -159,7 +164,6 @@ class AliTRDmcmSim : public TObject {
 
  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
@@ -241,6 +245,8 @@ class AliTRDmcmSim : public TObject {
          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
@@ -251,7 +257,7 @@ class AliTRDmcmSim : public TObject {
 
   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);