]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDDisplay.cxx
use new emcal jet class
[u/mrichter/AliRoot.git] / FMD / AliFMDDisplay.cxx
index 48ee73b201a5b3b3793ffd10b7d62ca85bd2cdd1..572a3815741686f4bf5a55ad85a8b98a907e157f 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 /* $Id$ */
-/** @file    AliFMDDisplay.cxx
-    @author  Christian Holm Christensen <cholm@nbi.dk>
-    @date    Mon Mar 27 12:39:09 2006
-    @brief   FMD Event display 
-*/
+/** 
+ * @file    AliFMDDisplay.cxx
+ * @author  Christian Holm Christensen <cholm@nbi.dk>
+ * @date    Mon Mar 27 12:39:09 2006
+ * @brief   FMD Event display 
+ */
 //___________________________________________________________________
 //
 // The classes defined here, are utility classes for reading in data
@@ -248,9 +249,9 @@ AliFMDDisplay::ShowOnlyFMD()
   TGeoIterator next(top);
   TGeoNode* node;
   TGeoVolume* v = 0;
-  Bool_t hasFMD1 = kFALSE;
-  Bool_t hasFMD2 = kFALSE;
-  Bool_t hasFMD3 = kFALSE;
+  // Bool_t hasFMD1 = kFALSE;
+  // Bool_t hasFMD2 = kFALSE;
+  // Bool_t hasFMD3 = kFALSE;
   AliFMDDebug(1, ("Getting material FMD_Si$"));
   TGeoMaterial* si   = gGeoManager->GetMaterial("FMD_Si$");      // kRed 
   AliFMDDebug(1, ("Getting material FMD_Carbon$"));
@@ -284,13 +285,13 @@ AliFMDDisplay::ShowOnlyFMD()
       }
       if (name[2] == 'M' && (name[3] == 'T' || name[3] == 'B')) {
        // Virtual Master half-ring volume - top-level
-       Int_t det = node->GetNumber();
-       switch (det) {
-       case 1: hasFMD1 = true; break;
-       case 2: hasFMD2 = true; break;
-       case 3: hasFMD3 = true; break;
-       default: continue;
-       }
+       // Int_t det = node->GetNumber();
+       /* switch (det) {
+          case 1: hasFMD1 = true; break;
+          case 2: hasFMD2 = true; break;
+          case 3: hasFMD3 = true; break;
+          default: continue;
+          } */
        toshow.Add(v);
       }
       else if (name[3] == 'V' && (name[2] == 'T' || name[2] == 'B')) 
@@ -702,6 +703,17 @@ Bool_t
 AliFMDDisplay::InsideCut(Float_t val, const Float_t& min, 
                         const Float_t& max) const
 {
+  // 
+  // Whether a point is inside 
+  // 
+  // Parameters:
+  //    v   Point
+  //    min Minimum
+  //    max Maximum
+  // 
+  // Return:
+  //    true if @a v is inside cut 
+  //
   Float_t r = max - min;
   Float_t l = fSlider->GetMinimum();
   Float_t h = fSlider->GetMaximum();
@@ -906,6 +918,18 @@ Double_t
 AliFMDDisplay::GetADCThreshold(UShort_t d, Char_t r, 
                               UShort_t s, UShort_t t) const
 {
+  // 
+  // Get the ADC threshold
+  // 
+  // Parameters:
+  //    d Detector
+  //    r Ring 
+  //    s Sector 
+  //    t Strip 
+  // 
+  // Return:
+  //    The threshold 
+  //
   AliFMDParameters* parm = AliFMDParameters::Instance();
   Double_t ped           =  parm->GetPedestal(d,r, s, t);
   Double_t pedW          =  parm->GetPedestalWidth(d,r, s, t);