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>
24 Root> Compile("CheckRaw.C")
30 class CheckRaw : public AliFMDInput
40 Bool_t ret = AliFMDInput::Init();
41 // AliFMDGeometry* geom = AliFMDGeometry::Instance();
43 // geom->InitTransformations();
44 AliFMDParameters* param = AliFMDParameters::Instance();
48 Bool_t ProcessDigit(AliFMDDigit* digit)
50 // Cache the energy loss
51 if (!digit) return kFALSE;
52 UShort_t det = digit->Detector();
53 Char_t rng = digit->Ring();
54 UShort_t sec = digit->Sector();
55 UShort_t str = digit->Strip();
57 AliWarning(Form("Bad strip number %d in digit", str));
60 fMap(det, rng, sec, str) = digit->Counts();
63 Bool_t ProcessRawDigit(AliFMDDigit* digit)
65 // Cache the energy loss
66 if (!digit) return kFALSE;
67 UShort_t det = digit->Detector();
68 Char_t rng = digit->Ring();
69 UShort_t sec = digit->Sector();
70 UShort_t str = digit->Strip();
72 AliWarning(Form("Bad strip number %d in digit", str));
75 if (digit->Counts() != fMap(det, rng, sec, str) &&
76 fMap(det, rng, sec, str) != 1024) {
77 AliWarning(Form("Mismatch in digit FMD%d%c[%2d,%3d] %d != %d",
78 det, rng, sec, str, digit->Counts(),
79 fMap(det, rng, sec, str)));
82 AliDebug(1, Form("Raw digit FMD%d%c[%2d,%3D] is good",
91 //____________________________________________________________________