gDirectory = cwd;
- if(fNevents == 0) fNevents=fRunLoader->TreeE()->GetEntries();
+ if(fNevents == 0) fNevents=Int_t (fRunLoader->TreeE()->GetEntries());
cout<<" fNevents "<<fNevents<<endl;
for(Int_t ievent=0;ievent<fNevents;ievent++)
{
etain = - TMath::Log( TMath::Tan(theta/2.));
theta=TMath::ATan(rin[ivol]/TMath::Abs(realZ));
etaout=- TMath::Log( TMath::Tan(theta/2.));
- numberOfEtaIntervals[ivol]=(etaout-etain)*10-1;
+ numberOfEtaIntervals[ivol]=Int_t((etaout-etain)*10)-1;
eta=etain;
for (Int_t e1=0;e1<=numberOfEtaIntervals[ivol];e1++)
{
cout<<" zero "<<zeroPads++<<" pads "<<numberOfPads;
Double_t lambda=-TMath::Log(Double_t(zeroPads)/numberOfPads);
- Int_t fRecon=(lambda*numberOfPads+0.5);
+ Int_t fRecon=Int_t (lambda*numberOfPads+0.5);
Float_t zerosRatio=
(Float_t)zeroPads/(Float_t)numberOfPads;
#include "AliSTARThit.h"
#include "AliSTARThitPhoton.h"
#include "AliSTARTvertex.h"
-#include "AliMC.h"
+#include "AliSTARTLoader.h"
ClassImp(AliSTART)
-static AliSTARTdigit *digits;
+ //static AliSTARTdigit *digits;
//_____________________________________________________________________________
AliSTART::AliSTART()
//
// Initialise Hit array
fHits = new TClonesArray("AliSTARThit", 405);
- gAlice->GetMCApp()->AddHitList(fHits);
+ gAlice->AddHitList(fHits);
fPhotons = new TClonesArray("AliSTARThitPhoton", 10000);
- gAlice->GetMCApp()->AddHitList (fPhotons);
+ gAlice->AddHitList (fPhotons);
fIshunt = 1;
fIdSens = 0;
//_____________________________________________________________________________
-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.
}
//_____________________________________________________________________________
-Int_t AliSTART::DistanceToPrimitive(Int_t px, Int_t py)
+Int_t AliSTART::DistanceToPrimitive(Int_t /*px*/, Int_t /*py*/)
{
//
// Calculate the distance from the mouse to the START on the screen
// 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())
}
AliDetector::MakeBranch(option);
-
+ /*
if (cD) {
digits = new AliSTARTdigit();
MakeBranchInTree(fLoader->TreeD(), branchname, "AliSTARTdigit", digits, buffersize, 1, 0);
}
+ */
}
//_____________________________________________________________________________
}
-//_____________________________________________________________________________
+//______________________________________________________________________
+AliLoader* AliSTART::MakeLoader(const char* topfoldername)
+{
+ //builds STARTgetter (AliLoader type)
+ //if detector wants to use castomized getter, it must overload this method
-void AliSTART::Hit2digit(Int_t evnum)
-{
+ Info("MakeLoader","Creating AliSTARTLoader. Top folder is %s.",topfoldername);
+ fLoader = new AliSTARTLoader(GetName(),topfoldername);
+ return fLoader;
}
-