* 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
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$"));
}
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'))
gApplication->StopIdleing();
if (fContinous) break;
}
- AliFMDDebug(1, ("After idle loop"));
+ AliFMDDebug(3, ("After idle loop"));
if (fMarkers) fMarkers->Delete();
if (fHits) fHits->Clear();
- AliFMDDebug(1, ("After clearing caches"));
+ AliFMDDebug(3, ("After clearing caches"));
}
//____________________________________________________________________
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();
if (l == h) { l = 0; h = 1; }
if (val < r * l + min || val > r * h + min) {
- AliFMDDebug(1, ("Value %f is outside cut %f - %f (range %f - %f)",
+ AliFMDDebug(2, ("Value %f is outside cut %f - %f (range %f - %f)",
val, min+r*l, min+r*h, min, max));
return kFALSE;
}
// Parameters:
// digit Digit information
AliFMDDebug(50, ("Forwarding call of ProcessRaw to ProcessDigit "
- "for FMD%d&c[%02d,%03d] %d",
+ "for FMD%d%c[%02d,%03d] %d",
digit->Detector(), digit->Ring(), digit->Sector(),
digit->Strip(), digit->Counts()));
return ProcessDigit(digit);
return kTRUE;
}
+//____________________________________________________________________
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);
//
// EOF
//
+