1 //____________________________________________________________________
5 // Script that contains a class to compare the raw data written to the
6 // digits it's created from.
8 // Use the script `Compile.C' to compile this class using ACLic.
11 #include <AliFMDDigit.h>
12 #include <AliFMDInput.h>
13 #include <AliFMDUShortMap.h>
14 #include <AliFMDParameters.h>
20 class CheckRaw : public AliFMDInput
30 Bool_t ret = AliFMDInput::Init();
31 // AliFMDGeometry* geom = AliFMDGeometry::Instance();
33 // geom->InitTransformations();
34 AliFMDParameters* param = AliFMDParameters::Instance();
38 Bool_t ProcessDigit(AliFMDDigit* digit)
40 // Cache the energy loss
41 if (!digit) return kFALSE;
42 UShort_t det = digit->Detector();
43 Char_t rng = digit->Ring();
44 UShort_t sec = digit->Sector();
45 UShort_t str = digit->Strip();
47 AliWarning(Form("Bad strip number %d in digit", str));
50 fMap(det, rng, sec, str) = digit->Counts();
53 Bool_t ProcessRawDigit(AliFMDDigit* digit)
55 // Cache the energy loss
56 if (!digit) return kFALSE;
57 UShort_t det = digit->Detector();
58 Char_t rng = digit->Ring();
59 UShort_t sec = digit->Sector();
60 UShort_t str = digit->Strip();
62 AliWarning(Form("Bad strip number %d in digit", str));
65 if (digit->Counts() != fMap(det, rng, sec, str) &&
66 fMap(det, rng, sec, str) != 1024) {
67 AliWarning(Form("Mismatch in digit FMD%d%c[%2d,%3d] %d != %d",
68 det, rng, sec, str, digit->Counts(),
69 fMap(det, rng, sec, str)));
72 AliDebug(1, Form("Raw digit FMD%d%c[%2d,%3D] is good",
81 //____________________________________________________________________