// Default constructor
//
fIshunt = 0;
+ for(Int_t i=0;i<4;i++) fCurrentIndex[i]=0;
// fTrackHitsOld = 0;
#if ROOT_VERSION_CODE >= ROOT_VERSION(4,0,1)
fHitType = 2;
#endif
-
+ for(Int_t i=0;i<4;i++) fCurrentIndex[i]=0;
//
fIshunt = 0;
return;
}
for (Int_t i=0;i<fTPCParam->GetNSector();i++) fActiveSectors[i]=kFALSE;
- TBranch * branch=0;
+ //TBranch * branch=0;
if (fLoader->TreeH() == 0x0)
{
AliFatal("Can not find TreeH in folder");
return;
}
- if (fHitType>1) branch = fLoader->TreeH()->GetBranch("TPC2");
- else branch = fLoader->TreeH()->GetBranch("TPC");
+ //if (fHitType>1) branch = fLoader->TreeH()->GetBranch("TPC2");
+ if (fHitType>1) fLoader->TreeH()->GetBranch("TPC2");
+ //else branch = fLoader->TreeH()->GetBranch("TPC");
+ else fLoader->TreeH()->GetBranch("TPC");
Stat_t ntracks = fLoader->TreeH()->GetEntries();
// loop over all hits
AliDebug(1,Form("Got %d tracks", (Int_t) ntracks));
//
AliRunLoader* rl = (AliRunLoader*)fLoader->GetEventFolder()->FindObject(AliRunLoader::GetRunLoaderName());
rl->CdGAFile();
- AliTPCParamSR *param=(AliTPCParamSR*)gDirectory->Get("75x40_100x60");
- // if(param){
-// AliInfo("You are using 2 pad-length geom hits with 3 pad-lenght geom digits...");
-// delete param;
-// param = new AliTPCParamSR();
-// }
-// else {
-// param=(AliTPCParamSR*)gDirectory->Get("75x40_100x60_150x60");
-// }
- param = (AliTPCParamSR*)AliTPCcalibDB::Instance()->GetParameters();
+ //AliTPCParamSR *param=(AliTPCParamSR*)gDirectory->Get("75x40_100x60");
+ //gDirectory->Get("75x40_100x60");
+ AliTPCParamSR *param = (AliTPCParamSR*)AliTPCcalibDB::Instance()->GetParameters();
+ if(!param){
+ AliFatal("No TPC parameters found");
+ return;
+ }
if (!param->IsGeoRead()){
//
// read transformation matrices for gGeoManager
//
param->ReadGeoMatrices();
}
- if(!param){
- AliFatal("No TPC parameters found");
- }
+
AliTPCPRF2D * prfinner = new AliTPCPRF2D;
// Use gamma 4
//
char strgamma4[1000];
- sprintf(strgamma4,"AliTPCRF1D::Gamma4((x-0.135+%f)*%f,55,160)",3*param->GetZSigma(), 1000000000*param->GetTSample()/param->GetZWidth());
+ //sprintf(strgamma4,"AliTPCRF1D::Gamma4((x-0.135+%f)*%f,55,160)",3*param->GetZSigma(), 1000000000*param->GetTSample()/param->GetZWidth());
+ snprintf(strgamma4,1000,"AliTPCRF1D::Gamma4((x-0.135+%f)*%f,55,160)",3*param->GetZSigma(), 1000000000*param->GetTSample()/param->GetZWidth());
TF1 * fgamma4 = new TF1("fgamma4",strgamma4, -1,1);
AliTPCRF1D * rf = new AliTPCRF1D(kTRUE,1000);
rf->SetParam(fgamma4,param->GetZWidth(), 1,0.2);
Stat_t ntracks = tH->GetEntries();
-
-
- TObjArray **row;
-
Int_t nrows =fTPCParam->GetNRow(isec);
- row= new TObjArray* [nrows+2]; // 2 extra rows for cross talk
+ TObjArray **row=new TObjArray* [nrows+2]; // 2 extra rows for cross talk
+ for(Int_t j=0;j<nrows+2;j++) row[j]=0;
MakeSector(isec,nrows,tH,ntracks,row);
AliDebug(1,"");
if (fHitType<2) return;
char branchname[10];
- sprintf(branchname,"%s2",GetName());
+ //sprintf(branchname,"%s2",GetName());
+ snprintf(branchname,10,"%s2",GetName());
//
// Get the pointer to the header
const char *cH = strstr(option,"H");
TBranch *branch;
char branchname[20];
- sprintf(branchname,"%s2",GetName());
+ //sprintf(branchname,"%s2",GetName());
+ snprintf(branchname,20,"%s2",GetName());
//
// Branch address for hit tree
TTree *treeH = fLoader->TreeH();
// and one has to decide where to store the TPC parameters
// M.Kowalski
char paramName[50];
- sprintf(paramName,"75x40_100x60_150x60");
+ //sprintf(paramName,"75x40_100x60_150x60");
+ snprintf(paramName,50,"75x40_100x60_150x60");
AliTPCParam *paramTPC=(AliTPCParam*)file->Get(paramName);
if (paramTPC) {
AliDebugClass(1,Form("TPC parameters %s found.",paramName));