ITSDigitsInfo::ITSDigitsInfo() :
TObject(),
- fRefCount(0),
+ ReferenceCount(),
fSPDmap(), fSDDmap(), fSSDmap(),
fTree (0),
fGeom (0),
ITSDigitsInfo:: ~ITSDigitsInfo()
{
- for(map<Int_t, TClonesArray*>::iterator j=fSPDmap.begin(); j!=fSPDmap.end(); ++j) {
+ map<Int_t, TClonesArray*>::iterator j;
+ for(j = fSPDmap.begin(); j != fSPDmap.end(); ++j)
delete j->second;
- }
- for(map<Int_t, TClonesArray*>::iterator j=fSDDmap.begin(); j!=fSDDmap.end(); ++j) {
+ for(j = fSDDmap.begin(); j != fSDDmap.end(); ++j)
delete j->second;
- }
- for(map<Int_t, TClonesArray*>::iterator j=fSSDmap.begin(); j!=fSSDmap.end(); ++j) {
+ for(j = fSSDmap.begin(); j != fSSDmap.end(); ++j)
delete j->second;
- }
+
delete fSegSPD; delete fSegSDD; delete fSegSSD;
delete fGeom;
delete fTree;
SetITSSegmentation();
// create tables for scaling
- // lowest scale factor refers unscaled ITS module
- fSPDScaleX[0]=1;
- fSPDScaleZ[0]=1;
- fSDDScaleX[0]=1;
- fSDDScaleZ[0]=1;
- fSSDScale[0]=1;
- // spd lows rsolution is in the level of 8x2 redaut chips
+ // lowest scale factor refers to unscaled ITS module
+ fSPDScaleX[0] = 1;
+ fSPDScaleZ[0] = 1;
+ fSDDScaleX[0] = 1;
+ fSDDScaleZ[0] = 1;
+ fSSDScale [0] = 1;
+ // spd lows resolution is in the level of 8x2 readout chips
Int_t nx = 8; // fSegSPD->Npx()/8; // 32
Int_t nz = 6; // fSegSPD->Npz()/2; // 128
// lowest scale factor refers unscaled ITS module
- fSPDScaleX[0]=1;
- fSPDScaleZ[0]=1;
- fSDDScaleX[0]=1;
- fSDDScaleZ[0]=1;
- fSSDScale[0]=1;
+ fSPDScaleX[0] = 1;
+ fSPDScaleZ[0] = 1;
+ fSDDScaleX[0] = 1;
+ fSDDScaleZ[0] = 1;
+ fSSDScale [0] = 1;
}
/**************************************************************************/
fTree->GetEntry(mod);
fSPDmap[mod] = digitsSPD;
return digitsSPD;
- }
- else{
+ } else {
return i->second;
}
break;
fTree->GetEntry(mod);
fSDDmap[mod] = digitsSDD;
return digitsSDD;
- }
- else{
+ } else {
return i->second;
}
break;
fTree->GetEntry(mod);
fSSDmap[mod] = digitsSSD;
return digitsSSD;
- }
- else{
+ } else {
return i->second;
}
break;
#ifndef ALIEVE_ITSDigitsInfo_H
#define ALIEVE_ITSDigitsInfo_H
-#include <Reve/VSD.h>
+#include <Reve/Reve.h>
#include <map>
#include <AliITSsegmentationSDD.h>
#include <AliITSsegmentationSSD.h>
-static const int NSCALE = 5;
namespace Alieve {
-class ITSDigitsInfo : public TObject
+class ITSDigitsInfo : public TObject, public Reve::ReferenceCount
{
ITSDigitsInfo(const ITSDigitsInfo&); // Not implemented
ITSDigitsInfo& operator=(const ITSDigitsInfo&); // Not implemented
Float_t fSPDZCoord[192];
protected:
- Int_t fRefCount;
-
map<Int_t, TClonesArray*> fSPDmap;
map<Int_t, TClonesArray*> fSDDmap;
map<Int_t, TClonesArray*> fSSDmap;
AliITSsegmentationSDD* fSegSDD;
AliITSsegmentationSSD* fSegSSD;
- Int_t fSPDScaleX[NSCALE];
- Int_t fSPDScaleZ[NSCALE];
- Int_t fSDDScaleX[NSCALE];
- Int_t fSDDScaleZ[NSCALE];
- Int_t fSSDScale[NSCALE];
+ Int_t fSPDScaleX[5];
+ Int_t fSPDScaleZ[5];
+ Int_t fSDDScaleX[5];
+ Int_t fSDDScaleZ[5];
+ Int_t fSSDScale [5];
ITSDigitsInfo();
virtual ~ITSDigitsInfo();
void GetSPDLocalZ(Int_t j, Float_t& z);
- void IncRefCount() { ++fRefCount; }
- void DecRefCount() { --fRefCount; if(fRefCount <= 0) delete this; }
-
virtual void Print(Option_t* opt="") const;
ClassDef(ITSDigitsInfo, 1);
fMainColor = new TGColorSelect(fHFrame, 0, -1);
fHFrame->AddFrame(fMainColor, new TGLayoutHints(kLHintsLeft, 1, 1, 1, 1));
- fMainColor->Associate(fHFrame);
fMainColor->Connect
("ColorSelected(Pixel_t)",
"Reve::RenderElementEditor", this, "DoMainColor(Pixel_t)");
void RenderElementEditor::DoRnrElement()
{
- Bool_t fd = fRnrElement->IsOn();
- fRE->SetRnrElement(fd);
+ fRE->SetRnrElement(fRnrElement->IsOn());
Update();
}
void RenderElementEditor::DoMainColor(Pixel_t color)
{
- // Slot connected to the axis color.
-
fRE->SetMainColor(color);
Update();
}
// $Header$
#include "TriangleSet.h"
+#include "RGBAPalette.h"
#include <TVector3.h>
#include <TRandom3.h>
if (fTringCols == 0) fTringCols = new UChar_t[3*fNTrings];
if (fTringNorms == 0) GenerateTriangleNormals();
- Reve::RGBAPalette pal(min, max, interp, wrap);
+ RGBAPalette pal(min, max, interp, wrap);
UChar_t *C = fTringCols;
Float_t *N = fTringNorms;
for(Int_t t=0; t<fNTrings; ++t, C+=3, N+=3)