From: alibrary Date: Fri, 24 Oct 2003 12:58:56 +0000 (+0000) Subject: Fixing warnings X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=f1538e332df86a003e4be970514678d0794316fc;p=u%2Fmrichter%2FAliRoot.git Fixing warnings --- diff --git a/START/AliSTART.cxx b/START/AliSTART.cxx index f14f3438247..bdf950af9d1 100755 --- a/START/AliSTART.cxx +++ b/START/AliSTART.cxx @@ -55,11 +55,11 @@ #include "AliSTARThit.h" #include "AliSTARThitPhoton.h" #include "AliSTARTvertex.h" -#include "AliSTARTLoader.h" +#include "AliMC.h" ClassImp(AliSTART) - //static AliSTARTdigit *digits; +static AliSTARTdigit *digits; //_____________________________________________________________________________ AliSTART::AliSTART() @@ -85,10 +85,10 @@ AliSTART::AliSTART(const char *name, const char *title) // // Initialise Hit array fHits = new TClonesArray("AliSTARThit", 405); - gAlice->AddHitList(fHits); + gAlice->GetMCApp()->AddHitList(fHits); fPhotons = new TClonesArray("AliSTARThitPhoton", 10000); - gAlice->AddHitList (fPhotons); + gAlice->GetMCApp()->AddHitList (fPhotons); fIshunt = 1; fIdSens = 0; @@ -129,7 +129,7 @@ void AliSTART::AddHitPhoton(Int_t track, Int_t *vol, Float_t *hits) //_____________________________________________________________________________ -void AliSTART::AddDigit(Int_t */*tracks*/,Int_t * /*digits*/) +void AliSTART::AddDigit(Int_t * /*tracks*/, Int_t * /*digits*/) { // Add a START digit to the list. Dummy function. @@ -200,11 +200,12 @@ void AliSTART::MakeBranch(Option_t* option) // Specific START branches // // Create Tree branches for the START. + Int_t buffersize = 4000; char branchname[20]; sprintf(branchname,"%s",GetName()); - // const char *cD = strstr(option,"D"); + const char *cD = strstr(option,"D"); const char *cH = strstr(option,"H"); if (cH && fLoader->TreeH()) @@ -216,12 +217,11 @@ void AliSTART::MakeBranch(Option_t* option) } AliDetector::MakeBranch(option); - /* + if (cD) { digits = new AliSTARTdigit(); MakeBranchInTree(fLoader->TreeD(), branchname, "AliSTARTdigit", digits, buffersize, 1, 0); } - */ } //_____________________________________________________________________________ @@ -255,13 +255,9 @@ void AliSTART::SetTreeAddress() } -//______________________________________________________________________ -AliLoader* AliSTART::MakeLoader(const char* topfoldername) -{ - //builds STARTgetter (AliLoader type) - //if detector wants to use castomized getter, it must overload this method +//_____________________________________________________________________________ - Info("MakeLoader","Creating AliSTARTLoader. Top folder is %s.",topfoldername); - fLoader = new AliSTARTLoader(GetName(),topfoldername); - return fLoader; +void AliSTART::Hit2digit(Int_t /*evnum*/) +{ } +