]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RICH/AliRICHv1.cxx
Added functions needed for SDD new SDigits/Digits (Add and fSigmaAfterElect).
[u/mrichter/AliRoot.git] / RICH / AliRICHv1.cxx
index 11c968fd79cd654a88041ea9980397884f36e1a9..baf07ba7022632a6fa5c9beb0a2a7bcbf2e99e80 100644 (file)
 
 /*
   $Log$
+  Revision 1.15  2001/08/30 09:51:23  hristov
+  The operator[] is replaced by At() or AddAt() in case of TObjArray.
+
+  Revision 1.14  2001/05/16 14:57:20  alibrary
+  New files for folders and Stack
+
   Revision 1.13  2001/05/10 12:28:04  jbarbosa
   Repositioned the RICH modules.
 
@@ -90,7 +96,7 @@
 #include "AliRICHHit.h"
 #include "AliSegmentation.h"
 #include "AliRICHResponse.h"
-#include "AliRICHSegmentationV0.h"
+#include "AliRICHSegmentationV1.h"
 #include "AliRICHResponseV0.h"
 #include "AliRICHGeometry.h"
 #include "AliRun.h"
@@ -120,7 +126,7 @@ AliRICHv1::AliRICHv1(const char *name, const char *title)
 
   // Version 0
 // Default Segmentation, no hits
-    AliRICHSegmentationV0* segmentation = new AliRICHSegmentationV0;
+    AliRICHSegmentationV1* segmentation = new AliRICHSegmentationV1;
 //
 //  Segmentation parameters
     segmentation->SetPadSize(0.84,0.80);
@@ -154,7 +160,7 @@ AliRICHv1::AliRICHv1(const char *name, const char *title)
     response->SetKy2(0.962);
     response->SetKy4(0.379);
     response->SetPitch(0.25);
-    response->SetWireSag(0);                     // 1->On, 0->Off
+    response->SetWireSag(1);                     // 1->On, 0->Off
     response->SetVoltage(2150);                  // Should only be 2000, 2050, 2100 or 2150
 
 //
@@ -167,7 +173,8 @@ AliRICHv1::AliRICHv1(const char *name, const char *title)
     fChambers = new TObjArray(kNCH);
     for (i=0; i<kNCH; i++) {
       
-      (*fChambers)[i] = new AliRICHChamber();  
+      //PH      (*fChambers)[i] = new AliRICHChamber();  
+      fChambers->AddAt(new AliRICHChamber(), i);  
       
     }
   
@@ -202,19 +209,29 @@ void AliRICHv1::Init()
     //
     for (Int_t i=0; i<kNCH; i++) {
        //printf ("i:%d",i);
-       ( (AliRICHChamber*) (*fChambers)[i])->Init(i);  
+      //PH     ( (AliRICHChamber*) (*fChambers)[i])->Init(i);  
+       ( (AliRICHChamber*)fChambers->At(i))->Init(i);  
     }  
     
     //
     // Set the chamber (sensitive region) GEANT identifier
     
-    ((AliRICHChamber*)(*fChambers)[0])->SetGid(1);  
-    ((AliRICHChamber*)(*fChambers)[1])->SetGid(2);  
-    ((AliRICHChamber*)(*fChambers)[2])->SetGid(3);  
-    ((AliRICHChamber*)(*fChambers)[3])->SetGid(4);  
-    ((AliRICHChamber*)(*fChambers)[4])->SetGid(5);  
-    ((AliRICHChamber*)(*fChambers)[5])->SetGid(6);  
-    ((AliRICHChamber*)(*fChambers)[6])->SetGid(7); 
+    //PH    ((AliRICHChamber*)(*fChambers)[0])->SetGid(1);  
+    //PH    ((AliRICHChamber*)(*fChambers)[1])->SetGid(2);  
+    //PH    ((AliRICHChamber*)(*fChambers)[2])->SetGid(3);  
+    //PH    ((AliRICHChamber*)(*fChambers)[3])->SetGid(4);  
+    //PH    ((AliRICHChamber*)(*fChambers)[4])->SetGid(5);  
+    //PH    ((AliRICHChamber*)(*fChambers)[5])->SetGid(6);  
+    //PH    ((AliRICHChamber*)(*fChambers)[6])->SetGid(7); 
+
+    ((AliRICHChamber*)fChambers->At(0))->SetGid(1);  
+    ((AliRICHChamber*)fChambers->At(1))->SetGid(2);  
+    ((AliRICHChamber*)fChambers->At(2))->SetGid(3);  
+    ((AliRICHChamber*)fChambers->At(3))->SetGid(4);  
+    ((AliRICHChamber*)fChambers->At(4))->SetGid(5);  
+    ((AliRICHChamber*)fChambers->At(5))->SetGid(6);  
+    ((AliRICHChamber*)fChambers->At(6))->SetGid(7);  
+
 
     segmentation=Chamber(0).GetSegmentationModel(0);
     geometry=Chamber(0).GetGeometryModel();