]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDtrackletMCM.h
Coding rules and warnings
[u/mrichter/AliRoot.git] / TRD / AliTRDtrackletMCM.h
index 3541f672ef6d696aed31cbc0812bed0ab5789177..6a918c40b2a7a20c77f80ea37c3ab1a2aa41e0f5 100644 (file)
@@ -20,6 +20,7 @@ class AliTRDtrackletMCM : public AliTRDtrackletBase {
  public:
   AliTRDtrackletMCM(UInt_t trackletWord = 0);
   AliTRDtrackletMCM(UInt_t trackletWword, Int_t hcid);
+  AliTRDtrackletMCM(UInt_t trackletWword, Int_t hcid, Int_t rob, Int_t mcm);
   AliTRDtrackletMCM(const AliTRDtrackletMCM &rhs);
   ~AliTRDtrackletMCM();
 
@@ -36,7 +37,7 @@ class AliTRDtrackletMCM : public AliTRDtrackletBase {
 
   // ----- Getters for offline corresponding values -----
   Bool_t CookPID() { return kFALSE; }
-  Double_t GetPID(Int_t /* is */) const { return 0; }
+  Double_t GetPID(Int_t /* is */) const { return GetPID()/255.; }
   Int_t GetDetector() const { return fHCId / 2; }
   Int_t GetHCId() const { return fHCId; }
   Float_t GetdYdX() const { return (GetdY() * 140e-4 / 3.); }
@@ -44,6 +45,12 @@ class AliTRDtrackletMCM : public AliTRDtrackletBase {
   Float_t GetY() const { return (GetYbin() * 160e-4); }
   Float_t GetZ() const { return fGeo->GetPadPlane((fHCId % 12) / 2, (fHCId / 12) % 5)->GetRowPos( 4 * (fROB / 2) + fMCM / 4); }
 
+  Int_t GetQ0() const { return fQ0; }
+  Int_t GetQ1() const { return fQ1; }
+  Int_t GetNHits() const { return fNHits; }
+  Int_t GetNHits0() const { return fNHits0; }
+  Int_t GetNHits1() const { return fNHits1; }
+
   UInt_t GetTrackletWord() const { return fTrackletWord; }
   void SetTrackletWord(UInt_t trackletWord) { fTrackletWord = trackletWord; }
 
@@ -52,6 +59,11 @@ class AliTRDtrackletMCM : public AliTRDtrackletBase {
   void SetMCM(Int_t mcm) { fMCM = mcm; }
   void SetROB(Int_t rob) { fROB = rob; }
   void SetLabel(Int_t label) { fLabel = label; }
+  void SetQ0(Int_t charge) { fQ0 = charge; }
+  void SetQ1(Int_t charge) { fQ1 = charge; }
+  void SetNHits(Int_t nhits) { fNHits = nhits; }
+  void SetNHits0(Int_t nhits) { fNHits0 = nhits; }
+  void SetNHits1(Int_t nhits) { fNHits1 = nhits; }
 
  protected:
   AliTRDgeometry *fGeo; //! TRD geometry
@@ -62,12 +74,19 @@ class AliTRDtrackletMCM : public AliTRDtrackletBase {
   Int_t fMCM; // MCM no. in which the tracklet was found
   Int_t fROB; // ROB no. on which the tracklet was found
 
+  Int_t fQ0; // accumulated charge in the first time window
+  Int_t fQ1; // accumulated charge in the second time window
+
+  Int_t fNHits;  // no. of contributing clusters
+  Int_t fNHits0; // no. of contributing clusters in window 0
+  Int_t fNHits1; // no. of contributing clusters in window 1
+
   Int_t fLabel; // label for MC track
 
  private:
   AliTRDtrackletMCM& operator=(const AliTRDtrackletMCM &rhs);   // not implemented
 
-  ClassDef(AliTRDtrackletMCM, 1);
+  ClassDef(AliTRDtrackletMCM, 2);
 };
 
 #endif