]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - THijing/THijing.cxx
Fix
[u/mrichter/AliRoot.git] / THijing / THijing.cxx
index eabf0cf7565b80607cccb24e9654a58dfe18de8c..0ba5b14b2499bdcf21e603176043199b6e961527 100644 (file)
@@ -13,7 +13,7 @@
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/* $Id$ */
+/* $Id: THijing.cxx 64005 2013-08-28 12:23:17Z hristov $ */
 
 ////////////////////////////////////////////////////////////////////////////////
 //                                                                            //
@@ -574,6 +574,8 @@ Int_t  THijing::GetN0() const
    return HIMAIN1.n0;
 
 }
+
+
 //______________________________________________________________________________
 Int_t  THijing::GetN01() const
 {
@@ -610,6 +612,7 @@ Float_t  THijing::GetBB() const
 
 }
 
+
 //====================== access to common HIMAIN2 ===============================
 
 //______________________________________________________________________________
@@ -1204,6 +1207,18 @@ void  THijing::SetMDME(Int_t key1, Int_t key2, Int_t   parm)
   
 }
 
+void  THijing::SetBRAT(Int_t key, Float_t   parm)
+{
+  // Set value of array MDME
+  if ( key < 1 || key > 2000) {
+    printf("ERROR in THijing::SetBRAT(key, parm):\n");
+    printf("      key=%i is out of range [1..2000]\n", key);
+  } else {
+    LUDAT3_HIJING.brat[key-1] = parm;
+  }
+  
+}
+
 Int_t THijing::GetMDCY(Int_t key1, Int_t key2) 
 {
   // Get value of array MDCY