+ AliEveITSModule* m = 0;
+
+ Int_t det_id = 0;
+ if (i > 239 && i < 500) det_id = 1;
+ else if (i >= 500) det_id = 2;
+
+ if (!check_empty || di->HasData(i, det_id) || di->IsDead(i, det_id))
+ {
+ if (scaled_modules)
+ m = new AliEveITSScaledModule(i, di, si);
+ else
+ m = new AliEveITSModule(i, di);
+
+ // Before 5.26 ROOT did not draw frames of empty quad-sets.
+ // Bypass until we move there.
+ if (!di->HasData(i, det_id))
+ {
+ m->AddQuad(0,0,0,0);
+ m->RefitPlex();
+ }
+
+ if (parent)
+ parent->AddElement(m);
+ }
+
+ return m;
+}
+
+void its_display_raw_digits(AliEveITSDigitsInfo* di, Int_t mode,
+ Bool_t check_empty = kTRUE,
+ Bool_t scaled_modules = kFALSE)
+{
+ const TString bsSector = "Sector";
+ const TString bsStave = "Stave";
+ const TString bsLadder = "Ladder";