///////////////////////////////////////////////////////////////////////////////
#include <TBrowser.h>
+#include <TClonesArray.h>
#include <TTree.h>
#include "AliLog.h"
//_______________________________________________________________________
AliDetector::AliDetector():
+ AliModule(),
fTimeGate(200.e-9),
fIshunt(0),
fNhits(0),
fNdigits(0),
fBufferSize(1600),
+ fMaxIterHit(0),
+ fCurIterHit(0),
fHits(0),
fDigits(0),
fPoints(0),
//
}
-//_______________________________________________________________________
-AliDetector::AliDetector(const AliDetector &det):
- AliModule(det),
- fTimeGate(200.e-9),
- fIshunt(0),
- fNhits(0),
- fNdigits(0),
- fBufferSize(1600),
- fHits(0),
- fDigits(0),
- fPoints(0),
- fLoader(0x0)
-{
- det.Copy(*this);
-}
-
//_____________________________________________________________________________
AliDetector::AliDetector(const char* name,const char *title):
AliModule(name,title),
fNhits(0),
fNdigits(0),
fBufferSize(1600),
+ fMaxIterHit(0),
+ fCurIterHit(0),
fHits(0),
fDigits(0),
fPoints(0),
MayNotUse("Publish");
}
+//_______________________________________________________________________
+void AliDetector::AddAlignableVolumes() const
+{
+ //
+ AliWarning(Form("%s still has to implement the AddAlignableVolumes method!",GetName()));
+}
+
//_______________________________________________________________________
TBranch* AliDetector::MakeBranchInTree(TTree *tree, const char* name,
void* address, Int_t size,
//
//
//
-// if (GetDebug()>1)
+
AliDebug(2,Form("Making Branch %s",name));
if (tree == 0x0)
{
}
else
{
- branch = tree->Branch(name,address,size);
+ branch = tree->Bronch(name, "TClonesArray", address, size, splitlevel);
}
AliDebug(2,Form("Branch %s returning branch %#x",name,branch));
return branch;
}
}
-//_______________________________________________________________________
-void AliDetector::Copy(TObject &) const
-{
- //
- // Copy *this onto det -- not implemented
- //
- AliFatal("Not implemented");
-}
-
//_______________________________________________________________________
void AliDetector::FinishRun()
{
for (Int_t hit=0;hit<nhits;hit++) {
ahit = dynamic_cast<AliHit*>(fHits->UncheckedAt(hit));
trk=ahit->GetTrack();
- if(trk>tracks) AliFatal(Form("Found track number %d, max track %d",trk, tracks));
+ if(trk>tracks) {
+ AliError(Form("Found track number %d, max track %d",trk, tracks));
+ continue;
+ }
if(ntrk[trk]==limi[trk])
{
//
for(trk=0; trk<tracks; ++trk) {
if(ntrk[trk]) {
points = new AliPoints();
- points->SetMarkerColor(GetMarkerColor());
- points->SetMarkerSize(GetMarkerSize());
+ points->SetMarkerColor(3); //PH color=3 was set in AliModule
+ points->SetMarkerSize(1); //PH size-1 is the default value
points->SetDetector(this);
points->SetParticle(trk);
- points->SetPolyMarker(ntrk[trk],coor[trk],GetMarkerStyle());
+ points->SetPolyMarker(ntrk[trk],coor[trk],1);//PH style=1 is the default value
fPoints->AddAt(points,trk);
delete [] coor[trk];
coor[trk]=0;
branch = treeD->GetBranch(GetName());
if (branch) branch->SetAddress(&fDigits);
}
-
- AliModule::SetTreeAddress();
}
//_______________________________________________________________________