-/*
+/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
/*
$Log$
+Revision 1.1 2001/05/11 13:21:16 morsch
+Geom. volume data class. Can be used during lego run for debugging.
+
*/
#include "AliDebugVolume.h"
ClassImp(AliDebugVolume)
-
-AliDebugVolume::AliDebugVolume()
+//_______________________________________________________________________
+AliDebugVolume::AliDebugVolume():
+ fCopy(0),
+ fStep(0),
+ fX(0),
+ fY(0),
+ fZ(0),
+ fStatus(0)
{
//
// Default constructor
//
}
-
-AliDebugVolume::AliDebugVolume(const char *name,
- Int_t copy, Float_t step, Float_t x, Float_t y, Float_t z, Int_t status)
- : TNamed(name, "Debug Volume")
+//_______________________________________________________________________
+AliDebugVolume::AliDebugVolume(const char *name, Int_t copy, Float_t step,
+ Float_t x, Float_t y, Float_t z, Int_t status):
+ TNamed(name, "Debug Volume"),
+ fCopy(copy),
+ fStep(step),
+ fX(x),
+ fY(y),
+ fZ(z),
+ fStatus(status)
{
-//
-// Constructor
-//
- fCopy = copy;
- fX = x;
- fY = y;
- fZ = z;
- fStep = step;
- fStatus = status;
+ //
+ // Normal constructor
+ //
}
-
-Bool_t AliDebugVolume::IsEqual(const char* name, const Int_t copy)
+//_______________________________________________________________________
+Bool_t AliDebugVolume::IsEqual(const char* name, const Int_t copy) const
{
- return (copy == fCopy && strcmp(name, fName) == 0);
+ return (copy == fCopy && strcmp(name, fName) == 0);
}
+//_______________________________________________________________________
char* AliDebugVolume::Status() const
{
- char* tmp;
- tmp = "Undefined";
- if (fStatus == 1) tmp = "Entering";
- if (fStatus == 2) tmp = "Exiting";
- return tmp;
-}
-
-
-void AliDebugVolume::Copy(AliDebugVolume &volume) const
-{
- //
- // Copy *this onto debug volume -- not implemented
- //
- Fatal("Copy","Not implemented!\n");
+ char* tmp;
+ tmp = "Undefined";
+ if (fStatus == 1) tmp = "Entering";
+ if (fStatus == 2) tmp = "Exiting";
+ return tmp;
}
-
-
-
-
-
-
-
-
-
-
-
-
-
/*
$Log$
+Revision 1.21 2002/10/22 15:02:15 alibrary
+Introducing Riostream.h
+
Revision 1.20 2002/10/14 14:57:32 hristov
Merging the VirtualMC branch to the main development branch (HEAD)
///////////////////////////////////////////////////////////////////////////////
#include <assert.h>
-#include <Riostream.h>
-#include <TTree.h>
#include <TBrowser.h>
#include <TFile.h>
-#include <TROOT.h>
#include <TFolder.h>
+#include <TROOT.h>
+#include <TTree.h>
+#include <Riostream.h>
#include "AliConfig.h"
#include "AliDetector.h"
-#include "AliRun.h"
#include "AliHit.h"
#include "AliPoints.h"
+#include "AliRun.h"
#include "AliTrackReference.h"
ClassImp(AliDetector)
-//_____________________________________________________________________________
-AliDetector::AliDetector()
+//_______________________________________________________________________
+AliDetector::AliDetector():
+ fTimeGate(200.e-9),
+ fIshunt(0),
+ fNhits(0),
+ fNdigits(0),
+ fBufferSize(1600),
+ fHits(0),
+ fDigits(0),
+ fDigitsFile(0),
+ fPoints(0),
+ fTrackReferences(0),
+ fMaxIterTrackRef(0),
+ fCurrentIterTrackRef(0)
{
//
// Default constructor for the AliDetector class
//
- fNhits = 0;
- fNdigits = 0;
- fPoints = 0;
- fHits = 0;
- fTrackReferences =0;
- fDigits = 0;
- fTimeGate = 200.e-9;
- fBufferSize = 16000;
- fDigitsFile = 0;
}
//_____________________________________________________________________________
-AliDetector::AliDetector(const char* name,const char *title):AliModule(name,title)
+AliDetector::AliDetector(const char* name,const char *title):
+ AliModule(name,title),
+ fTimeGate(200.e-9),
+ fIshunt(0),
+ fNhits(0),
+ fNdigits(0),
+ fBufferSize(1600),
+ fHits(0),
+ fDigits(0),
+ fDigitsFile(0),
+ fPoints(0),
+ fTrackReferences(new TClonesArray("AliTrackReference", 100)),
+ fMaxIterTrackRef(0),
+ fCurrentIterTrackRef(0)
{
//
// Normal constructor invoked by all Detectors.
// Add this Detector to the global list of Detectors in Run.
//
- fTimeGate = 200.e-9;
fActive = kTRUE;
- fNhits = 0;
- fHits = 0;
- fTrackReferences =0;
- fDigits = 0;
- fNdigits = 0;
- fPoints = 0;
- fBufferSize = 16000;
- fDigitsFile = 0;
-
AliConfig::Instance()->Add(this);
- fTrackReferences = new TClonesArray("AliTrackReference", 100);
- //if detector to want to create another track reference - than let's be free
-
}
-//_____________________________________________________________________________
+//_______________________________________________________________________
AliDetector::~AliDetector()
{
//
// Destructor
//
- fNhits = 0;
- fNdigits = 0;
- //
+
// Delete space point structure
if (fPoints) {
fPoints->Delete();
if (fDigitsFile) delete [] fDigitsFile;
}
-//_____________________________________________________________________________
+//_______________________________________________________________________
void AliDetector::Publish(const char *dir, void *address, const char *name)
{
//
}
}
-//_____________________________________________________________________________
-TBranch* AliDetector::MakeBranchInTree(TTree *tree, const char* name, void* address, Int_t size,const char *file)
+//_______________________________________________________________________
+TBranch* AliDetector::MakeBranchInTree(TTree *tree, const char* name,
+ void* address, Int_t size,
+ const char *file)
{
return(MakeBranchInTree(tree,name,0,address,size,99,file));
}
-//_____________________________________________________________________________
-TBranch* AliDetector::MakeBranchInTree(TTree *tree, const char* name, const char *classname, void* address,Int_t size, Int_t splitlevel, const char *file)
+//_______________________________________________________________________
+TBranch* AliDetector::MakeBranchInTree(TTree *tree, const char* name,
+ const char *classname,
+ void* address,Int_t size,
+ Int_t splitlevel, const char *file)
{
//
// Makes branch in given tree and diverts them to a separate file
return branch;
}
-//_____________________________________________________________________________
+//_______________________________________________________________________
void AliDetector::Browse(TBrowser *b)
{
//
}
}
-//_____________________________________________________________________________
+//_______________________________________________________________________
void AliDetector::Copy(AliDetector &det) const
{
//
Fatal("Copy","Not implemented~\n");
}
-//_____________________________________________________________________________
+//_______________________________________________________________________
void AliDetector::FinishRun()
{
//
//
}
-
-
+//_______________________________________________________________________
void AliDetector::RemapTrackReferencesIDs(Int_t *map)
{
//
- //remaping track reference
- //called at finish primary
+ // Remapping track reference
+ // Called at finish primary
+ //
if (!fTrackReferences) return;
for (Int_t i=0;i<fTrackReferences->GetEntries();i++){
AliTrackReference * ref = (AliTrackReference*) fTrackReferences->UncheckedAt(i);
}
}
-//_____________________________________________________________________________
+//_______________________________________________________________________
AliHit* AliDetector::FirstHit(Int_t track)
{
//
}
-//_____________________________________________________________________________
+//_______________________________________________________________________
AliTrackReference* AliDetector::FirstTrackReference(Int_t track)
{
//
else return 0;
}
-
-
-//_____________________________________________________________________________
+//_______________________________________________________________________
AliHit* AliDetector::NextHit()
{
//
return 0;
}
}
-//_____________________________________________________________________________
+
+//_______________________________________________________________________
AliTrackReference* AliDetector::NextTrackReference()
{
//
}
}
-//_____________________________________________________________________________
+//_______________________________________________________________________
void AliDetector::LoadPoints(Int_t)
{
//
delete [] limi;
}
-//_____________________________________________________________________________
+//_______________________________________________________________________
void AliDetector::MakeBranch(Option_t *option, const char *file)
{
//
}
}
}
-//_____________________________________________________________________________
+//_______________________________________________________________________
void AliDetector::MakeBranchTR(Option_t *option, const char *file)
{
//
}
}
-//_____________________________________________________________________________
+//_______________________________________________________________________
void AliDetector::ResetDigits()
{
//
if (fDigits) fDigits->Clear();
}
-//_____________________________________________________________________________
+//_______________________________________________________________________
void AliDetector::ResetHits()
{
//
if (fHits) fHits->Clear();
}
-
-
-//_____________________________________________________________________________
+//_______________________________________________________________________
void AliDetector::ResetTrackReferences()
{
//
if (fTrackReferences) fTrackReferences->Clear();
}
-
-
-//_____________________________________________________________________________
+//_______________________________________________________________________
void AliDetector::ResetPoints()
{
//
}
}
-//_____________________________________________________________________________
+//_______________________________________________________________________
void AliDetector::SetTreeAddress()
{
//
branch = treeTR->GetBranch(branchname);
if (branch) branch->SetAddress(&fTrackReferences);
}
-
-
}