+
+
+void tpc_digits_2drange(Int_t start, Int_t end)
+{
+ if (start < 0) start = 0;
+ if (end > 35) end = 35;
+
+ AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
+ rl->LoadDigits("TPC");
+ TTree* dt = rl->GetTreeD("TPC", false);
+ if (dt == 0)
+ {
+ throw TEveException("tpc_digits Can not access digits tree.");
+ }
+
+ AliEveTPCData *x = new AliEveTPCData;
+
+ x->LoadDigits(dt, kTRUE); // Create all present sectors.
+
+ gStyle->SetPalette(1, 0);
+ Color_t col = 36;
+
+ gEve->DisableRedraw();
+ {
+ TEveElementList* l = new TEveElementList("TPC sectors");
+ l->SetMainColor(col);
+ gEve->AddElement(l);
+
+ for (Int_t i=start; i<=end; i++)
+ {
+ AliEveTPCSector2D* s = new AliEveTPCSector2D();
+ s->SetSectorID(i);
+ s->SetDataSource(x);
+ s->SetFrameColor(col);
+ s->SetAutoTrans(kTRUE);
+ gEve->AddElement(s, l);
+ }
+ }
+ gEve->EnableRedraw();
+}