/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * *
- * Author: The ALICE Off-line Project. *
- * Contributors are mentioned in the code where appropriate. *
- * *
- * Permission to use, copy, modify and distribute this software and its *
- * documentation strictly for non-commercial purposes is hereby granted *
- * without fee, provided that the above copyright notice appears in all *
- * copies and that both the copyright notice and this permission notice *
- * appear in the supporting documentation. The authors make no claims *
- * about the suitability of this software for any purpose. It is *
- * provided "as is" without express or implied warranty. *
- **************************************************************************/
+* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+* *
+* Author: The ALICE Off-line Project. *
+* Contributors are mentioned in the code where appropriate. *
+* *
+* Permission to use, copy, modify and distribute this software and its *
+* documentation strictly for non-commercial purposes is hereby granted *
+* without fee, provided that the above copyright notice appears in all *
+* copies and that both the copyright notice and this permission notice *
+* appear in the supporting documentation. The authors make no claims *
+* about the suitability of this software for any purpose. It is *
+* provided "as is" without express or implied warranty. *
+**************************************************************************/
/* $Id$ */
:AliReconstructor()
,fSteerParam(0x00000007)
{
- //
- // Default constructor
- //
-
memset(fStreamLevel, 0, 5*sizeof(UChar_t));
// Xe tail cancellation parameters
fTCParams[0] = 1.156; // r1
fTCParams[5] = 0.62; // r2
fTCParams[6] = 0.0087;// c1
fTCParams[7] = 0.07; // c2
-
}
//_____________________________________________________________________________
:AliReconstructor(r)
,fSteerParam(r.fSteerParam)
{
- //
- // Copy constructor
- //
-
- memcpy(fStreamLevel,r.fStreamLevel, 5*sizeof(UChar_t));
- memcpy(fTCParams ,r.fTCParams , 8*sizeof(Double_t));
-
+ memcpy(fStreamLevel, r.fStreamLevel, 5*sizeof(UChar_t));
+ memcpy(fTCParams, r.fTCParams, 8*sizeof(Double_t));
}
//_____________________________________________________________________________
AliTRDReconstructor::~AliTRDReconstructor()
{
- //
- // Destructor
- //
-
if(fgClusters) {
fgClusters->Delete(); delete fgClusters;
}
-
}
+
//_____________________________________________________________________________
-void AliTRDReconstructor::Init()
-{
+void AliTRDReconstructor::Init(){
//
// Init Options
//
-
SetOption(GetOption());
AliInfo("TRD reconstruction will use the following settings:");
printf("\tDrift Gas Argon [ar] : %s\n", fSteerParam&kDriftGas?"yes":"no");
printf("\tStand Alone Tracking [sa] : %s\n", fSteerParam&kSeeding?"yes":"no");
printf("\tHLT Tracking [hlt] : %s\n", fSteerParam&kHLT?"yes":"no");
+ printf("\tCosmic Reconstruction [cos] : %s\n", fSteerParam&kCosmic?"yes":"no");
printf("\tNN PID [nn] : %s\n", fSteerParam&kSteerPID?"yes":"no");
- printf("\tStreaming Levels : Clusterizer[%d] Tracker[%d] PID[%d]\n"
- ,fStreamLevel[kClusterizer]
- ,fStreamLevel[kTracker]
- ,fStreamLevel[kPID]);
-
+ printf("\tStreaming Levels : Clusterizer[%d] Tracker[%d] PID[%d]\n", fStreamLevel[kClusterizer], fStreamLevel[kTracker], fStreamLevel[kPID]);
}
//_____________________________________________________________________________
void AliTRDReconstructor::ConvertDigits(AliRawReader *rawReader
- , TTree *digitsTree) const
+ , TTree *digitsTree) const
{
//
// Convert raw data digits into digit objects in a root tree
//
+ AliInfo("Convert raw data digits into digit objects [RawReader -> Digit TTree]");
+
AliTRDrawData rawData;
rawReader->Reset();
rawReader->Select("TRD");
// Reconstruct clusters
//
+ //AliInfo("Reconstruct TRD clusters from RAW data [RawReader -> Cluster TTree]");
+
+
rawReader->Reset();
rawReader->Select("TRD");
// take over ownership of clusters
fgClusters = clusterer.RecPoints();
clusterer.SetClustersOwner(kFALSE);
-
}
//_____________________________________________________________________________
// Reconstruct clusters
//
+ //AliInfo("Reconstruct TRD clusters from Digits [Digit TTree -> Cluster TTree]");
+
AliTRDclusterizer clusterer("clusterer","TRD clusterizer");
clusterer.SetReconstructor(this);
clusterer.OpenOutput(clusterTree);
// take over ownership of clusters
fgClusters = clusterer.RecPoints();
clusterer.SetClustersOwner(kFALSE);
-
}
//_____________________________________________________________________________
//_____________________________________________________________________________
void AliTRDReconstructor::FillESD(TTree* /*digitsTree*/
- , TTree* /*clusterTree*/
- , AliESDEvent* /*esd*/) const
+ , TTree* /*clusterTree*/
+ , AliESDEvent* /*esd*/) const
{
//
// Fill ESD
}
+
//_____________________________________________________________________________
void AliTRDReconstructor::SetOption(Option_t *opt)
{
- //
- // Read option string into the steer param.
- //
- // Default steer param values
- //
- // write clusters [cw] = true
- // track seeding (stand alone tracking) [sa] = true
- // PID method in reconstruction (NN) [nn] = true
- // write online tracklets [tw] = false
- // drift gas [ar] = false
- // HLT tracking [hlt] = false
- //
-
+// Read option string into the steer param.
+//
+// Default steer param values
+//
+// write clusters [cw] = true
+// track seeding (stand alone tracking) [sa] = true
+// PID method in reconstruction (NN) [nn] = true
+// write online tracklets [tw] = false
+// drift gas [ar] = false
+// HLT tracking [hlt] = false
+// Cosmic Reconstruction [cos] = false
+//
fSteerParam = 0x00000007;
TString s(opt);
} else if(sopt.Contains("hlt")){
if(!sopt.Contains("!")) fSteerParam |= kHLT;
continue;
+ } else if(sopt.Contains("cos")){
+ if(!sopt.Contains("!")) fSteerParam |= kCosmic;
} else if(sopt.Contains("sl")){
- TObjArray *stl = sopt.Tokenize("_");
- if(stl->GetEntriesFast() < 3) continue;
- TString taskstr(((TObjString*)(*stl)[1])->String());
- TString levelstring(((TObjString*)(*stl)[2])->String());
- // Set the stream Level
- Int_t level = levelstring.Atoi();
- AliTRDReconstructorTask task = kTracker;
- if(taskstr.CompareTo("cl") == 0) task = kClusterizer;
- else if(taskstr.CompareTo("tr") == 0) task = kTracker;
- else if(taskstr.CompareTo("pi") == 0) task = kPID;
- SetStreamLevel(level, task);
- continue;
- }
+ TObjArray *stl = sopt.Tokenize("_");
+ if(stl->GetEntriesFast() < 3) continue;
+ TString taskstr(((TObjString*)(*stl)[1])->String());
+ TString levelstring(((TObjString*)(*stl)[2])->String());
+ // Set the stream Level
+ Int_t level = levelstring.Atoi();
+ AliTRDReconstructorTask task = kTracker;
+ if(taskstr.CompareTo("cl") == 0) task = kClusterizer;
+ else if(taskstr.CompareTo("tr") == 0) task = kTracker;
+ else if(taskstr.CompareTo("pi") == 0) task = kPID;
+ SetStreamLevel(level, task);
+ continue;
+ }
}
-
}
//_____________________________________________________________________________
-void AliTRDReconstructor::SetStreamLevel(Int_t level, AliTRDReconstructorTask task)
-{
+void AliTRDReconstructor::SetStreamLevel(Int_t level, AliTRDReconstructorTask task){
//
// Set the Stream Level for one of the tasks Clusterizer, Tracker or PID
//
-
TString taskname;
- switch(task) {
- case kClusterizer:
- taskname = "Clusterizer";
- break;
- case kTracker:
- taskname = "Tracker";
- break;
- case kPID:
- taskname = "PID";
- break;
+ switch(task){
+ case kClusterizer:
+ taskname = "Clusterizer";
+ break;
+ case kTracker:
+ taskname = "Tracker";
+ break;
+ case kPID:
+ taskname = "PID";
+ break;
}
-
+ //AliInfo(Form("Setting Stream Level for Task %s to %d", taskname.Data(),level));
fStreamLevel[(Int_t)task] = level;
-
}