]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONLocalStruct.cxx
Updated list of MUON libraries
[u/mrichter/AliRoot.git] / MUON / AliMUONLocalStruct.cxx
index 0ead7747b1d95689652736f61291f5355fa0399d..6d4294837b1ed6c992b8ee4b2f9aa82dd3ac763f 100644 (file)
 
 #include "AliMUONLocalStruct.h"
 
-/// 
+/// \class AliMUONLocalStruct
 /// Local structure for trigger raw data.
 /// The structure includes the information
 ///  about the x,y position of the 4 detection planes,
 /// the trigger word (address, local decision, y trigger, y position, x deviation,
 /// x position)
 ///
+/// \author Christian Finck
 
 /// \cond CLASSIMP
 ClassImp(AliMUONLocalStruct)
@@ -50,9 +51,9 @@ AliMUONLocalStruct::AliMUONLocalStruct()
      fEOS(0),         
      fReset(0)       
 {
-  //
-  // ctor
-  //
+  ///
+  /// ctor
+  ///
   for (Int_t i = 0; i < 5; i++)
     fData[i] = 0;
 
@@ -79,9 +80,9 @@ AliMUONLocalStruct::AliMUONLocalStruct(const AliMUONLocalStruct& event)
      fEOS(event.fEOS),
      fReset(event.fReset)
 {
-  //
-  // copy ctor
-  //
+  ///
+  /// copy ctor
+  ///
   for (Int_t i = 0; i < 5; i++)
     fData[i] = event.fData[i];
 
@@ -90,13 +91,20 @@ AliMUONLocalStruct::AliMUONLocalStruct(const AliMUONLocalStruct& event)
 
 
 }
+
+//___________________________________________
+AliMUONLocalStruct::~AliMUONLocalStruct()
+{
+/// Destructor
+}
+
 //___________________________________________
 AliMUONLocalStruct& 
 AliMUONLocalStruct::operator=(const AliMUONLocalStruct& event)
 {
-  // 
-  // assignment operator
-  //
+  /// 
+  /// assignment operator
+  ///
 
   if (this == &event) return *this;
 
@@ -123,12 +131,28 @@ AliMUONLocalStruct::operator=(const AliMUONLocalStruct& event)
   return *this;
 }
 
+//___________________________________________
+void AliMUONLocalStruct::GetXPattern(TArrayS& array) const
+{
+    /// return array of X pattern
+    Short_t vec[4] = {GetX1(), GetX2(), GetX3(), GetX4()};
+    array.Set(4, vec);
+}
+
+//___________________________________________
+void AliMUONLocalStruct::GetYPattern(TArrayS& array) const
+{
+    /// return array of Y pattern
+    Short_t vec[4] = {GetY1(), GetY2(), GetY3(), GetY4()};
+    array.Set(4, vec);
+}
+
 //___________________________________________
 void AliMUONLocalStruct::SetScalersNumbers()
 {
-  // set numbers for scaler events for local structure
-  // crasy numbers for scaler words, while no beam is coming
-  //
+  /// set numbers for scaler events for local structure
+  /// crasy numbers for scaler words, while no beam is coming
+  ///
 
   fL0       = 1000;   
   fHold     = 100;