Obsolete TRD trigger code. It will be moved to the TRD simulation
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Mar 2007 11:48:59 +0000 (11:48 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Mar 2007 11:48:59 +0000 (11:48 +0000)
TRD/AliTRDReconstructor.cxx

index 0230682..ab56022 100644 (file)
@@ -123,35 +123,35 @@ void AliTRDReconstructor::Reconstruct(AliRunLoader *runLoader
   //
   // Trigger (tracklets, LTU)
   //
-  loader->LoadTracks();
-  if (loader->TreeT()) {
-    AliError("Tracklets already exist");
-    return;
-  }
-  AliInfo("Trigger tracklets will be produced");
-
-  AliTRDtrigger trdTrigger("Trigger","Trigger class"); 
-
-  AliTRDtrigParam *trigp = new AliTRDtrigParam("TRDtrigParam"
-                                              ,"TRD Trigger parameters");
-
-  Float_t field = AliTracker::GetBz() * 0.1; // Tesla
-  AliInfo(Form("Trigger set for magnetic field = %f Tesla \n",field));
-  trigp->SetField(field);
-  trigp->Init();
-  trdTrigger.SetParameter(trigp);
-
-  rawReader->RewindEvents();
-
-  for (Int_t iEvent = 0; iEvent < nEvents; iEvent++) {
-    if (!rawReader->NextEvent()) break;
-    trdTrigger.Open(runLoader->GetFileName(),iEvent);
-    trdTrigger.ReadDigits(rawReader);
-    trdTrigger.MakeTracklets();
-    trdTrigger.WriteTracklets(-1);
-  }
-
-  loader->UnloadTracks();
+//   loader->LoadTracks();
+//   if (loader->TreeT()) {
+//     AliError("Tracklets already exist");
+//     return;
+//   }
+//   AliInfo("Trigger tracklets will be produced");
+
+//   AliTRDtrigger trdTrigger("Trigger","Trigger class"); 
+
+//   AliTRDtrigParam *trigp = new AliTRDtrigParam("TRDtrigParam"
+//                                               ,"TRD Trigger parameters");
+
+//   Float_t field = AliTracker::GetBz() * 0.1; // Tesla
+//   AliInfo(Form("Trigger set for magnetic field = %f Tesla \n",field));
+//   trigp->SetField(field);
+//   trigp->Init();
+//   trdTrigger.SetParameter(trigp);
+
+//   rawReader->RewindEvents();
+
+//   for (Int_t iEvent = 0; iEvent < nEvents; iEvent++) {
+//     if (!rawReader->NextEvent()) break;
+//     trdTrigger.Open(runLoader->GetFileName(),iEvent);
+//     trdTrigger.ReadDigits(rawReader);
+//     trdTrigger.MakeTracklets();
+//     trdTrigger.WriteTracklets(-1);
+//   }
+
+//   loader->UnloadTracks();
 
 }