]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixing compilation problem due to missing include file in Make*Table.C macros.
authoraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Sep 2008 16:08:26 +0000 (16:08 +0000)
committeraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Sep 2008 16:08:26 +0000 (16:08 +0000)
Removing obsolete macros.

HLT/MUON/macros/MakeClusterPointFiles.C [deleted file]
HLT/MUON/macros/MakeHitsTable.C
HLT/MUON/macros/MakeTrackTable.C
HLT/MUON/macros/MakeTriggerRecordFiles.C [deleted file]
HLT/MUON/macros/MakeTriggerTable.C

diff --git a/HLT/MUON/macros/MakeClusterPointFiles.C b/HLT/MUON/macros/MakeClusterPointFiles.C
deleted file mode 100644 (file)
index 40d5996..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Author: Artur Szostak
-// Email:  artur@alice.phy.uct.ac.za | artursz@iafrica.com
-//
-////////////////////////////////////////////////////////////////////////////////
-
-#include "../src/Cluster.hpp"
-
-
-// TODO: fix the endian encoding of the data format.
-
-/* Generates .clusters binary files with the following structure:
-      
-     Byte #   Field
-
-   // Header
-         00   size              - Size of the structure in 32-bit words (excluding this word).
-      
-   // First ClusterPoint structure
-         04   x                 - X coordinate of point.
-         08   y                 - Y coordinate of point.
-
-   // Next ClusterPoint structure
-         08   x                 - X coordinate of point.
-         12   y                 - Y coordinate of point.
-
-   // etc...
- */
-void MakeClusterPointFiles(const char* outputpath = ".")
-{
-       //gSystem->Load("../lib/Linux-debug/libMUONHLT.so");
-       gSystem->Load("../lib/Linux/libMUONHLT.so");
-
-       using namespace AliMUONHLT;
-       
-       AliMUONDataInterface data;
-       data.SetFile();
-       
-       // Load the cluster data.
-       AliMUONHLT::ClusterSource cs;
-       cs.DataToUse(AliMUONHLT::ClusterSource::FromHits);
-       cs.FillFrom(&data);
-       
-       for (Int_t event = 0; event < cs.NumberOfEvents(); event++)
-       {
-               cs.GetEvent(event);
-               
-               for (UInt_t chamber = 0; chamber < 10; chamber++)
-               {
-                       // For every event create a new file.
-                       char buffer[1024];
-                       char* filename = &buffer[0];
-                       sprintf(filename, "%s/event%d_chamber%d.clusters", outputpath, event, chamber+1);
-                       FILE* file = fopen(filename, "w+b");
-                       if (file == NULL)
-                       {
-                               Error("MakeClusterPointFiles", "Could not create/open file: %s", filename);
-                               return;
-                       };
-
-                       // Compute and write the size of the whole data structure in 32bit words:
-                       dHLT::UInt size = 0;
-                       for (Int_t block = 0; block < cs.NumberOfBlocks(); block++)
-                       {
-                               cs.GetBlock(block);
-                               if (cs.Chamber() != chamber) continue;
-                               size += (cs.NumberOfClusters() * sizeof(dHLT::ClusterPoint)) / 4;
-                       };
-
-                       fwrite(&size, sizeof(dHLT::UInt), 1, file);
-                       if (ferror(file))
-                       {
-                               Error("MakeClusterPointFiles", "Could not write to file: %s", filename);
-                               return;
-                       };
-
-                       // Write all the TriggerRecord structures into the file.
-                       for (Int_t block = 0; block < cs.NumberOfBlocks(); block++)
-                       {
-                               cs.GetBlock(block);
-                               if (cs.Chamber() != chamber) continue;
-
-                               for (   const Point* cluster = cs.GetFirstCluster();
-                                       cs.MoreClusters();
-                                       cluster = cs.GetNextCluster()
-                               )
-                               {
-                                       dHLT::ClusterPoint point;
-                                       point.x = cluster->fX;
-                                       point.y = cluster->fY;
-
-                                       fwrite(&point, sizeof(point), 1, file);
-                                       if (ferror(file))
-                                       {
-                                               Error("MakeClusterPointFiles", "Could not write to file: %s", filename);
-                                               return;
-                                       };
-                               };
-                       };
-
-                       fclose(file);
-               };
-       };
-};
-
index 695e6110404178e62e10dbcbdda70da289d6edce..f53c0e7bbf83bb81659fc5a32bd232ea5743e234 100644 (file)
@@ -38,6 +38,7 @@
 #include "AliMUON.h"
 #include "AliMUONMCDataInterface.h"
 #include "AliMUONHit.h"
+#include "AliHLTMUONEvent.h"
 #include "AliHLTMUONRootifierComponent.h"
 #include "AliHLTMUONRecHit.h"
 #include "AliHLTMUONTriggerRecord.h"
index 6112407534195cdcdc3f4632dfcfe31fb91d73c1..df74a44b4c22a3161c0c226f45d2790690d9a100 100644 (file)
@@ -39,6 +39,7 @@
 #include "AliMUON.h"
 #include "AliMUONMCDataInterface.h"
 #include "AliMUONHit.h"
+#include "AliHLTMUONEvent.h"
 #include "AliHLTMUONRootifierComponent.h"
 #include "AliHLTMUONMansoTrack.h"
 
diff --git a/HLT/MUON/macros/MakeTriggerRecordFiles.C b/HLT/MUON/macros/MakeTriggerRecordFiles.C
deleted file mode 100644 (file)
index 68133cf..0000000
+++ /dev/null
@@ -1,120 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Author: Artur Szostak
-// Email:  artur@alice.phy.uct.ac.za | artursz@iafrica.com
-//
-////////////////////////////////////////////////////////////////////////////////
-
-#include "../src/TriggerRecord.hpp"
-
-
-// TODO: fix the endian encoding of the data format.
-
-/* Generates .trigrec binary files with the following structure:
-      
-     Byte #   Field
-
-   // Header
-         00   size              - Size of the structure in 32-bit words (excluding this word).
-
-         04   Trigger ID offset - The offset to add to the trigger record index number
-                                  to get full trigger ID of any trigger record.
-      
-   // First TriggerRecord structure.
-         08   sign              - Signed integer, possible values: -1, 0, +1
-         12   pt                - Transverse momentum as a 32bit floating point number.
-         16   station1impact.x  - 
-         20   station1impact.y  - 
-         24   station2impact.x  -
-         28   station2impact.y  -
-
-   // Next TriggerRecord structure.
-   // ...
- */
-void MakeTriggerRecordFiles(const char* outputpath = ".")
-{
-       //gSystem->Load("../lib/Linux-debug/libMUONHLT.so");
-       gSystem->Load("../lib/Linux/libMUONHLT.so");
-
-       using namespace AliMUONHLT;
-       
-       AliMUONDataInterface data;
-       data.SetFile();
-       
-       // Load the trigger data.
-       AliMUONHLT::TriggerSource ts;
-       ts.DataToUse(AliMUONHLT::TriggerSource::FromHits);
-       ts.FillFrom(&data);
-       
-       dHLT::UInt triggerIDoffset;
-       
-       for (Int_t event = 0; event < ts.NumberOfEvents(); event++)
-       {
-               ts.GetEvent(event);
-               
-               // For every event create a new file.
-               char buffer[1024];
-               char* filename = &buffer[0];
-               sprintf(filename, "%s/event%d.trigrec", outputpath, event);
-               FILE* file = fopen(filename, "w+b");
-               if (file == NULL)
-               {
-                       Error("MakeTriggerRecordFiles", "Could not create/open file: %s", filename);
-                       return;
-               };
-               
-               // Compute and write the size of the whole data structure in 32bit words:
-               dHLT::UInt size = 0;
-               for (Int_t block = 0; block < ts.NumberOfBlocks(); block++)
-               {
-                       ts.GetBlock(block);
-                       size += (ts.NumberOfTriggers() * sizeof(dHLT::TriggerRecord)) / 4;
-               };
-               size += sizeof(triggerIDoffset) / 4; // Add word count of triggerIDoffset.
-               
-               fwrite(&size, sizeof(size), 1, file);
-               if (ferror(file))
-               {
-                       Error("MakeTriggerRecordFiles", "Could not write to file: %s", filename);
-                       return;
-               };
-               
-               // Compute and write the trigger ID offset.
-               triggerIDoffset = 0;  // very simple case.
-               fwrite(&triggerIDoffset, sizeof(triggerIDoffset), 1, file);
-               if (ferror(file))
-               {
-                       Error("MakeTriggerRecordFiles", "Could not write to file: %s", filename);
-                       return;
-               };
-               
-               // Write all the TriggerRecord structures into the file.
-               for (Int_t block = 0; block < ts.NumberOfBlocks(); block++)
-               {
-                       ts.GetBlock(block);
-                       for (   const TriggerRecord* trigger = ts.GetFirstTrigger();
-                               ts.MoreTriggers();
-                               trigger = ts.GetNextTrigger()
-                           )
-                       {
-                               dHLT::TriggerRecord record;
-                               record.sign = trigger->ParticleSign();
-                               record.pt = trigger->Pt();
-                               record.station1impact.x = trigger->Station1Point().fX;
-                               record.station1impact.y = trigger->Station1Point().fY;
-                               record.station2impact.x = trigger->Station2Point().fX;
-                               record.station2impact.y = trigger->Station2Point().fY;
-                               
-                               fwrite(&record, sizeof(record), 1, file);
-                               if (ferror(file))
-                               {
-                                       Error("MakeTriggerRecordFiles", "Could not write to file: %s", filename);
-                                       return;
-                               };
-                       };
-               };
-               
-               fclose(file);
-       };
-};
-
index 777d52f0eb9e70aec0c489ef749b1f9a6f251e1d..c5df28161a291299d28c21c6d3e342b9f1931d29 100644 (file)
@@ -38,6 +38,7 @@
 #include "AliMUON.h"
 #include "AliMUONMCDataInterface.h"
 #include "AliMUONHit.h"
+#include "AliHLTMUONEvent.h"
 #include "AliHLTMUONRootifierComponent.h"
 #include "AliHLTMUONMansoTrack.h"