Added member for double sampling-rate fDoubleSR; copy visualization parameter from...
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Jun 2006 18:31:08 +0000 (18:31 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Jun 2006 18:31:08 +0000 (18:31 +0000)
EVE/Alieve/TPCLoader.cxx
EVE/Alieve/TPCLoader.h

index 97feb73..7b09125 100644 (file)
@@ -24,6 +24,7 @@ TPCLoader::TPCLoader(const Text_t* n, const Text_t* t) :
   RenderElementList(n, t),
 
   fEvent(-1),
+  fDoubleSR(kFALSE),
 
   fReader(0),
   fData(0),
@@ -153,8 +154,9 @@ void TPCLoader::UpdateSectors()
        fSec2Ds[i] = s;
        s->SetSectorID(i);
        s->SetDataSource(fData);
-       s->SetMinTime(0);
-       s->SetMaxTime(1023);
+
+       if(fDoubleSR)
+         s->SetMaxTime(1023);
 
        s->SetTrans(kTRUE);
        s->SetFrameColor(36);
@@ -181,8 +183,11 @@ void TPCLoader::CreateSectors3D()
       fSec3Ds[i] = s;
       s->SetSectorID(i);
       s->SetDataSource(fData);
-      s->SetMinTime(0);
-      s->SetMaxTime(1023);
+
+      if(fDoubleSR)
+       s->SetDriftVel(2.273);
+      if(fSec2Ds[i] != 0)
+       s->CopyVizParams(*fSec2Ds[i]);
 
       s->SetTrans(kTRUE);
       s->SetFrameColor(36);
index 9350552..e6dd794 100644 (file)
@@ -20,6 +20,7 @@ class TPCLoader : public Reve::RenderElementList
 protected:
   TString           fFile;
   Int_t             fEvent;
+  Bool_t            fDoubleSR;
 
   AliRawReaderRoot* fReader;
   TPCData*          fData;
@@ -34,6 +35,7 @@ public:
   virtual Bool_t CanEditMainColor() { return kFALSE; }
 
   void SetFile(const Text_t* f) { fFile = f; }
+  void SetDoubleSR(Bool_t d)    { fDoubleSR = d; }
 
   TPCData* GetData() const { return fData; }
   void     SetData(TPCData* d);