1 /**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * All rights reserved. *
6 * Artur Szostak <artursz@iafrica.com> *
8 * Permission to use, copy, modify and distribute this software and its *
9 * documentation strictly for non-commercial purposes is hereby granted *
10 * without fee, provided that the above copyright notice appears in all *
11 * copies and that both the copyright notice and this permission notice *
12 * appear in the supporting documentation. The authors make no claims *
13 * about the suitability of this software for any purpose. It is *
14 * provided "as is" without express or implied warranty. *
15 **************************************************************************/
20 /// @file AliHLTMUONProcessor.cxx
21 /// @author Artur Szostak <artursz@iafrica.com>
23 /// @brief Implementation of the abstract base dHLT processor component.
25 /// This component is the abstract base class of dHLT specific components.
26 /// It implements some common methods used by all the dHLT components.
29 #include "AliHLTMUONProcessor.h"
30 #include "AliHLTMUONConstants.h"
31 #include "AliMUONRecoParam.h"
32 #include "AliCDBManager.h"
33 #include "AliCDBStorage.h"
34 #include "AliCDBEntry.h"
35 #include "AliGRPManager.h"
36 #include "AliGRPObject.h"
39 #include "AliMpDDLStore.h"
40 #include "AliMpDEStore.h"
41 #include "TGeoGlobalMagField.h"
43 #include "TObjString.h"
50 ClassImp(AliHLTMUONProcessor)
53 AliHLTMUONProcessor::AliHLTMUONProcessor() :
55 fWarnForUnexpecedBlock(false),
57 fDumpDataOnError(false),
60 /// Default constructor.
64 int AliHLTMUONProcessor::DoInit(int argc, const char** argv)
66 /// Parses common dHLT component arguments.
68 // Set the default values for various arguments comming from the command line.
70 fDumpDataOnError = false;
72 const char* cdbPath = NULL;
75 for (int i = 0; i < argc; i++)
77 // Ignore the argument if the child class indicates to do so.
78 if (IgnoreArgument(argv[i])) continue;
80 if (strcmp(argv[i], "-cdbpath") == 0)
84 HLTWarning("CDB path was already specified. Will"
85 " replace previous value given by -cdbpath."
90 HLTError("The CDB path was not specified." );
98 if (strcmp(argv[i], "-run") == 0)
102 HLTWarning("Run number was already specified. Will"
103 " replace previous value given by -run."
108 HLTError("The run number was not specified.");
113 run = Int_t( strtol(argv[i+1], &cpErr, 0) );
114 if (cpErr == NULL or *cpErr != '\0' or run < 0)
116 HLTError("Cannot convert '%s' to a valid run number."
117 " Expected a positive integer value.", argv[i+1]
126 if (strcmp(argv[i], "-delaysetup") == 0)
132 if (strcmp(argv[i], "-dumponerror") == 0)
134 fDumpDataOnError = true;
138 if (strcmp(argv[i], "-dumppath") == 0)
140 if (fDumpPath != NULL)
142 HLTWarning("The dump path was already specified. Will"
143 " replace previous value given by -dumppath."
148 HLTError("The dump path was not specified.");
151 fDumpPath = argv[i+1];
157 if (cdbPath != NULL or run != -1)
159 int result = SetCDBPathAndRunNo(cdbPath, run);
162 // Error messages already generated in SetCDBPathAndRunNo.
171 bool AliHLTMUONProcessor::ArgumentAlreadyHandled(int& i, const char* argi) const
173 /// This method can be used by the derivind child class to check if a particular
174 /// argument in argv was already processed.
176 if (strcmp(argi, "-cdbpath") == 0)
178 if (IgnoreArgument(argi)) return false;
179 i++; // argument takes one parameter
183 if (strcmp(argi, "-run") == 0)
185 if (IgnoreArgument(argi)) return false;
186 i++; // argument takes one parameter
190 if (strcmp(argi, "-delaysetup") == 0)
192 if (IgnoreArgument(argi)) return false;
196 if (strcmp(argi, "-dumponerror") == 0)
198 if (IgnoreArgument(argi)) return false;
202 if (strcmp(argi, "-dumppath") == 0)
204 if (IgnoreArgument(argi)) return false;
205 i++; // argument takes one parameter
213 int AliHLTMUONProcessor::SetCDBPathAndRunNo(
214 const char* cdbPath, Int_t run, bool useDefault
217 /// Sets the CDB path and run number to read from.
218 /// \param cdbPath The CDB path to use. If set to NULL and the path has
219 /// not been set in the CDB manager then the default path
220 /// "local://$ALICE_ROOT/OCDB" is used if the 'useDefault' flag is also true.
221 /// \param run The run number to use. If set to -1 and the run number has
222 /// not been set in the CDB manager then a value of zero is used if
223 /// the 'useDefault' flag is also true.
224 /// \param useDefault If set to true then a default CDB path and/or run number
225 /// is used if they have not been set and 'cdbPath' == NULL or
227 /// \return Zero if the object could be loaded. Otherwise an error code,
228 /// compatible with the HLT framework, is returned.
230 const char* defaultPath = "local://$ALICE_ROOT/OCDB";
231 Int_t defaultRun = 0;
233 AliCDBManager* cdbManager = AliCDBManager::Instance();
234 if (cdbManager == NULL)
236 HLTError("CDB manager instance does not exist.");
240 // Setup the CDB path.
243 cdbManager->SetDefaultStorage(cdbPath);
245 else if (not cdbManager->IsDefaultStorageSet() and useDefault)
247 cdbManager->SetDefaultStorage(defaultPath);
250 // Now setup the run number.
253 cdbManager->SetRun(run);
257 if (useDefault) cdbManager->SetRun(defaultRun);
264 int AliHLTMUONProcessor::FetchMappingStores() const
266 /// Fetches the DDL and detector element store objects for MUON mapping.
267 /// \return Zero if the objects could be loaded. Otherwise an error code,
268 /// which is compatible with the HLT framework, is returned.
269 /// \note AliMpDDLStore::Instance() and AliMpDEStore::Instance() must be used
270 /// to fetch the objects after this method returns a code equal to zero.
272 Bool_t warn = kFALSE;
274 // Check if the objects are already loaded. If they are then exit early,
275 // otherwise we need to try load the objects.
276 if (AliMpDDLStore::Instance(warn) != NULL and AliMpDEStore::Instance(warn) != NULL)
279 AliCDBManager* cdbManager = AliCDBManager::Instance();
280 if (cdbManager == NULL)
282 HLTError("CDB manager instance does not exist.");
286 const char* cdbPathUsed = "unknown (not set)";
287 AliCDBStorage* store = cdbManager->GetDefaultStorage();
288 if (store != NULL) cdbPathUsed = store->GetURI().Data();
290 Int_t runUsed = cdbManager->GetRun();
292 // Now we can try load the DDL and DE store objects.
293 if (cdbManager->GetId("MUON/Calib/MappingData", runUsed) == NULL)
295 HLTError("Could not find entry in CDB path '%s/MUON/Calib/MappingData' and run no. %d.",
300 if (cdbManager->GetId("MUON/Calib/Gains", runUsed) == NULL)
302 HLTError("Could not find entry in CDB path '%s/MUON/Calib/Gains' and run no. %d.",
307 if (cdbManager->GetId("MUON/Calib/Pedestals", runUsed) == NULL)
309 HLTError("Could not find entry in CDB path '%s/MUON/Calib/Pedestals' and run no. %d.",
314 if (not AliMpCDB::LoadDDLStore(warn))
316 HLTError("Failed to load DDL or detector element store specified"
317 " for CDB path '%s' and run no. %d.",
323 if (AliMpDDLStore::Instance(warn) == NULL or AliMpDEStore::Instance(warn) == NULL)
325 HLTError("Could not find or load the DDL or detector element store instance.");
333 int AliHLTMUONProcessor::FetchTMapFromCDB(const char* pathToEntry, TMap*& map) const
335 /// Fetches a TMap object from the CDB.
336 /// [in] \param pathToEntry The relative path to the entry in the CDB to fetch.
337 /// [out] \param map This will be filled with the TMap object found if
338 /// a successful status code is returned. Otherwise it will be unchanged.
339 /// \return Zero if the object could be found. Otherwise an error code,
340 /// which is compatible with the HLT framework, is returned.
342 TObject* obj = LoadAndExtractOCDBObject(pathToEntry);
345 HLTError("Configuration object for \"%s\" is missing.", pathToEntry);
349 if (obj->IsA() != TMap::Class())
351 HLTError("Wrong type for configuration object in \"%s\". Found a %s but we need a TMap.",
352 pathToEntry, obj->ClassName()
356 map = static_cast<TMap*>(obj);
362 int AliHLTMUONProcessor::GetValueFromTMap(
363 TMap* map, const char* paramName, TString& value,
364 const char* pathToEntry, const char* prettyName
367 /// Tries to find the string value associated with a certain parameter in a TMap.
368 /// [in] \param map The TMap object to search in.
369 /// [in] \param paramName The name of the parameter to search for.
370 /// [out] \param value Will be filled with the object found.
371 /// [in] \param pathToEntry The relative path to the entry in the CDB.
372 /// Used when printing error messages. If set to NULL then a string of
373 /// "(unknown)" is used. (default is NULL).
374 /// [in] \param prettyName Should be the name of the parameter which will
375 /// be used when printing error messages. If this is set to NULL then
376 /// the paramName will be used instead (default is NULL).
377 /// \return Zero if the object could be found. Otherwise an error code,
378 /// which is compatible with the HLT framework, is returned.
380 if (pathToEntry == NULL) pathToEntry = "(unknown)";
381 if (prettyName == NULL) prettyName = paramName;
383 TPair* pair = static_cast<TPair*>(map->FindObject(paramName));
386 HLTError("Configuration object for \"%s\" does not contain the %s value.",
387 pathToEntry, prettyName
391 TObject* valueObj = pair->Value();
392 if (valueObj->IsA() != TObjString::Class())
394 HLTError("The %s parameter found in configuration object \"%s\""
395 " is not a TObjString. Found an object of type %s instead.",
396 prettyName, pathToEntry, valueObj->ClassName()
400 value = static_cast<TObjString*>(valueObj)->GetString();
406 int AliHLTMUONProcessor::GetIntFromTMap(
407 TMap* map, const char* paramName, Int_t& value,
408 const char* pathToEntry, const char* prettyName
411 /// Tries to find a certain parameter in the TMap object and convert it to
412 /// an integer value.
413 /// [in] \param map The TMap object to search in.
414 /// [in] \param paramName The name of the parameter to search for.
415 /// [out] \param value Will be filled with the integer value for the parameter,
416 /// if it was found and it was an integer value.
417 /// [in] \param pathToEntry The relative path to the entry in the CDB.
418 /// Used when printing error messages. If set to NULL then a string of
419 /// "(unknown)" is used. (default is NULL).
420 /// [in] \param prettyName Should be the name of the parameter which will
421 /// be used when printing error messages. If this is set to NULL then
422 /// the paramName will be used instead (default is NULL).
423 /// \return Zero if the object could be found and is valid. Otherwise an
424 /// error code, which is compatible with the HLT framework, is returned.
426 if (pathToEntry == NULL) pathToEntry = "(unknown)";
427 if (prettyName == NULL) prettyName = paramName;
430 int result = GetValueFromTMap(map, paramName, valueStr, pathToEntry, prettyName);
431 if (result != 0) return result;
433 if (not valueStr.IsDigit())
435 HLTError("The %s parameter found in configuration object \"%s\""
436 "is not a valid integer number string; found \"%s\".",
437 prettyName, pathToEntry, valueStr.Data()
441 value = valueStr.Atoi();
447 int AliHLTMUONProcessor::GetPositiveIntFromTMap(
448 TMap* map, const char* paramName, Int_t& value,
449 const char* pathToEntry, const char* prettyName
452 /// Tries to find a certain parameter in the TMap object and convert it to
453 /// a positive integer value.
454 /// [in] \param map The TMap object to search in.
455 /// [in] \param paramName The name of the parameter to search for.
456 /// [out] \param value Will be filled with the integer value for the parameter,
457 /// if it was found and it was a positive integer value.
458 /// [in] \param pathToEntry The relative path to the entry in the CDB.
459 /// Used when printing error messages. If set to NULL then a string of
460 /// "(unknown)" is used. (default is NULL).
461 /// [in] \param prettyName Should be the name of the parameter which will
462 /// be used when printing error messages. If this is set to NULL then
463 /// the paramName will be used instead (default is NULL).
464 /// \return Zero if the object could be found and is valid. Otherwise an
465 /// error code, which is compatible with the HLT framework, is returned.
467 if (pathToEntry == NULL) pathToEntry = "(unknown)";
468 if (prettyName == NULL) prettyName = paramName;
471 int result = GetValueFromTMap(map, paramName, valueStr, pathToEntry, prettyName);
472 if (result != 0) return result;
474 if (not valueStr.IsDigit())
476 HLTError("The %s parameter found in configuration object \"%s\""
477 "is not a valid integer number string; found \"%s\".",
478 prettyName, pathToEntry, valueStr.Data()
482 Int_t val = valueStr.Atoi();
485 HLTError("The %s parameter found in configuration object \"%s\""
486 "is not a positive integer number; found \"%d\".",
487 prettyName, pathToEntry, val
497 int AliHLTMUONProcessor::GetFloatFromTMap(
498 TMap* map, const char* paramName, Double_t& value,
499 const char* pathToEntry, const char* prettyName
502 /// Tries to find a certain parameter in the TMap object and convert it to
503 /// an floating point value.
504 /// [in] \param map The TMap object to search in.
505 /// [in] \param paramName The name of the parameter to search for.
506 /// [out] \param value Will be filled with the floating point value for the
507 /// parameter, if it was found and it was a floating point value.
508 /// [in] \param pathToEntry The relative path to the entry in the CDB.
509 /// Used when printing error messages. If set to NULL then a string of
510 /// "(unknown)" is used. (default is NULL).
511 /// [in] \param prettyName Should be the name of the parameter which will
512 /// be used when printing error messages. If this is set to NULL then
513 /// the paramName will be used instead (default is NULL).
514 /// \return Zero if the object could be found and is valid. Otherwise an
515 /// error code, which is compatible with the HLT framework, is returned.
517 if (pathToEntry == NULL) pathToEntry = "(unknown)";
518 if (prettyName == NULL) prettyName = paramName;
521 int result = GetValueFromTMap(map, paramName, valueStr, pathToEntry, prettyName);
522 if (result != 0) return result;
524 if (not valueStr.IsFloat())
526 HLTError("The %s parameter found in configuration object \"%s\""
527 "is not a valid floating point number string; found \"%s\".",
528 prettyName, pathToEntry, valueStr.Data()
532 value = valueStr.Atof();
538 int AliHLTMUONProcessor::GetPositiveFloatFromTMap(
539 TMap* map, const char* paramName, Double_t& value,
540 const char* pathToEntry, const char* prettyName
543 /// Tries to find a certain parameter in the TMap object and convert it to
544 /// an positive floating point value.
545 /// [in] \param map The TMap object to search in.
546 /// [in] \param paramName The name of the parameter to search for.
547 /// [out] \param value Will be filled with the floating point value for the
548 /// parameter, if it was found and it was a positive floating point value.
549 /// [in] \param pathToEntry The relative path to the entry in the CDB.
550 /// Used when printing error messages. If set to NULL then a string of
551 /// "(unknown)" is used. (default is NULL).
552 /// [in] \param prettyName Should be the name of the parameter which will
553 /// be used when printing error messages. If this is set to NULL then
554 /// the paramName will be used instead (default is NULL).
555 /// \return Zero if the object could be found and is valid. Otherwise an
556 /// error code, which is compatible with the HLT framework, is returned.
558 if (pathToEntry == NULL) pathToEntry = "(unknown)";
559 if (prettyName == NULL) prettyName = paramName;
562 int result = GetValueFromTMap(map, paramName, valueStr, pathToEntry, prettyName);
563 if (result != 0) return result;
565 if (not valueStr.IsFloat())
567 HLTError("The %s parameter found in configuration object \"%s\""
568 "is not a valid floating point number string; found \"%s\".",
569 prettyName, pathToEntry, valueStr.Data()
573 Double_t val = valueStr.Atof();
576 HLTError("The %s parameter found in configuration object \"%s\""
577 "is not a positive floating point number; found \"%d\".",
578 prettyName, pathToEntry, val
588 int AliHLTMUONProcessor::FetchFieldIntegral(Double_t& bfieldintegral) const
590 // Fetches the correct dipole magnetic field integral to use.
592 Float_t currentL3 = 0;
593 Float_t currentDip = 0;
595 if (TGeoGlobalMagField::Instance() == NULL or
596 (TGeoGlobalMagField::Instance() != NULL and TGeoGlobalMagField::Instance()->GetField() == NULL)
599 HLTWarning("The magnetic field has not been set in TGeoGlobalMagField."
600 " Will try and load the GRP entry directly."
603 AliGRPManager grpman;
604 if (not grpman.ReadGRPEntry() or grpman.GetGRPData() == NULL)
606 HLTError("GRP entry could not be loaded.");
610 const AliGRPObject* grp = grpman.GetGRPData();
611 Char_t polarityL3 = grp->GetL3Polarity();
612 Char_t polarityDip = grp->GetDipolePolarity();
613 currentL3 = grp->GetL3Current(AliGRPObject::kMean);
614 currentDip = grp->GetDipoleCurrent(AliGRPObject::kMean);
615 if (polarityL3 == AliGRPObject::GetInvalidChar())
617 HLTError("L3 polarity in GRP is invalid.");
620 if (polarityDip == AliGRPObject::GetInvalidChar())
622 HLTError("Dipole polarity in GRP is invalid.");
625 if (currentL3 == AliGRPObject::GetInvalidFloat())
627 HLTError("L3 current in GRP is invalid.");
630 if (currentDip == AliGRPObject::GetInvalidFloat())
632 HLTError("Dipole current in GRP is invalid.");
635 if (grp->IsPolarityConventionLHC())
637 currentL3 *= (polarityL3 ? -1:1);
638 currentDip *= (polarityDip ? -1:1);
642 currentL3 *= (polarityL3 ? -1:1);
643 currentDip *= (polarityDip ? 1:-1);
648 TVirtualMagField* vfield = TGeoGlobalMagField::Instance()->GetField();
649 AliMagF* field = dynamic_cast<AliMagF*>(vfield);
650 if (vfield->IsA() != AliMagF::Class() or field == NULL)
653 "The magnetic field is not of type AliMagF."
654 " Do not know how to handle class of type '%s'.",
659 currentL3 = field->GetCurrentSol();
660 currentDip = field->GetCurrentDip();
663 const char* path = AliHLTMUONConstants::FieldIntegralsCDBPath();
665 int result = FetchTMapFromCDB(path, map);
666 if (result != 0) return result;
667 const char* paramName = Form("L3_current=%0.2e;Dipole_current=%0.2e", currentL3, currentDip);
669 result = GetFloatFromTMap(map, paramName, value, path);
670 if (result != 0) return result;
671 bfieldintegral = value;
676 int AliHLTMUONProcessor::LoadRecoParamsFromCDB(AliMUONRecoParam*& params) const
678 /// Fetches the reconstruction parameters object from the CDB for MUON.
679 /// [out] \param params This will be filled with the reconstruction
680 /// parameters object found if a successful status code is returned.
681 /// Otherwise it will be unchanged.
682 /// \return Zero if the object could be found. Otherwise an error code,
683 /// which is compatible with the HLT framework, is returned.
685 const char* pathToEntry = "MUON/Calib/RecoParam";
686 TObject* obj = LoadAndExtractOCDBObject(pathToEntry);
689 HLTError("Reconstruction parameters object for \"%s\" is missing.", pathToEntry);
693 TObjArray* objarr = dynamic_cast<TObjArray*>(obj);
696 obj = objarr->Last();
699 AliMUONRecoParam* par = dynamic_cast<AliMUONRecoParam*>(obj);
702 HLTError("No AliMUONRecoParam class found for entry \"%s\". Found a %s class instead.",
703 pathToEntry, obj->ClassName()
713 void AliHLTMUONProcessor::DumpBuffer(
714 const void* buffer, AliHLTUInt32_t size, const char* filename
717 /// Dumps the data contained in a buffer to file as is.
721 fstream file(filename, fstream::out | fstream::trunc | fstream::binary);
724 file.write(reinterpret_cast<const char*>(buffer), size);
727 HLTError("Could not write data block to file %s during"
728 " dumping operation!",
735 HLTError("Could not open file %s for dumping data block!", filename);
740 void AliHLTMUONProcessor::DumpBlock(
741 const AliHLTComponentBlockData* block, const char* fileNamePrefix
744 /// Dumps the data block and meta information to file.
746 std::string filename = fDumpPath;
747 filename += fileNamePrefix;
748 filename += "-blockmeta.bin";
749 DumpBuffer(block, sizeof(AliHLTComponentBlockData), filename.c_str());
750 filename = fDumpPath;
751 filename += fileNamePrefix;
752 filename += "-data.bin";
753 DumpBuffer(block->fPtr, block->fSize, filename.c_str());
757 void AliHLTMUONProcessor::DumpEvent(
758 const AliHLTComponentEventData& evtData,
759 const AliHLTComponentBlockData* blocks,
760 AliHLTComponentTriggerData& trigData,
761 AliHLTUInt8_t* outputPtr,
762 AliHLTUInt32_t& size,
763 AliHLTComponentBlockDataList& outputBlocks
766 /// Dumps the event information to files in the dump path given by the
767 /// method DumpPath, which can be set by the command line argument -dumppath.
772 std::string filename = fDumpPath;
773 sprintf(strbuf, "dump_event-0x%16.16llX.log", evtData.fEventID);
775 fstream logfile(filename.c_str(), fstream::out | fstream::trunc);
778 HLTError("Could not open log file '%s' for dump information.", filename.c_str());
782 filename = fDumpPath;
783 sprintf(strbuf, "dump_event-0x%16.16llX-eventdata.bin", evtData.fEventID);
785 logfile << "Dumping event data structure to file: " << filename << std::endl;
786 DumpBuffer(&evtData, sizeof(AliHLTComponentEventData), filename.c_str());
788 filename = fDumpPath;
789 sprintf(strbuf, "dump_event-0x%16.16llX-triggerdata.bin", evtData.fEventID);
791 logfile << "Dumping trigger data structure to file: " << filename << std::endl;
792 DumpBuffer(&trigData, sizeof(AliHLTComponentTriggerData), filename.c_str());
794 for (unsigned int n = 0; n < evtData.fBlockCnt; n++)
796 sprintf(strbuf, "dump_event-0x%16.16llX-block-0x%8.8X", evtData.fEventID, n);
798 sprintf(strbuf, "0x%8.8X", blocks[n].fSpecification);
799 logfile << "Found block with data type = " << DataType2Text(blocks[n].fDataType)
800 << ", specification = " << strbuf << ". Dumping to file: "
801 << filename << "-data.bin" << std::endl;
802 DumpBlock(&blocks[n], filename.c_str());
805 filename = fDumpPath;
806 sprintf(strbuf, "dump_event-0x%16.16llX-output-buffer.bin", evtData.fEventID);
808 logfile << "Dumping output buffer to file: " << filename << std::endl;
809 DumpBuffer(outputPtr, size, filename.c_str());
811 for (size_t i = 0; i < outputBlocks.size(); i++)
813 sprintf(strbuf, "dump_event-0x%16.16llX-output-block-0x%8.8X", evtData.fEventID, int(i));
815 sprintf(strbuf, "0x%8.8X", outputBlocks[i].fSpecification);
816 logfile << "Generated output data block with type = "
817 << DataType2Text(outputBlocks[i].fDataType)
818 << ", specification = " << strbuf << ". Dumping to file: "
819 << filename << "-data.bin" << std::endl;
820 DumpBlock(&outputBlocks[i], filename.c_str());
825 void AliHLTMUONProcessor::DumpEvent(
826 const AliHLTComponentEventData& evtData,
827 AliHLTComponentTriggerData& trigData
830 /// Dumps the event information to files in the dump path given by the
831 /// method DumpPath, which can be set by the command line argument -dumppath.
836 std::string filename = fDumpPath;
837 sprintf(strbuf, "dump_event-0x%16.16llX.log", evtData.fEventID);
839 fstream logfile(filename.c_str(), fstream::out | fstream::trunc);
842 HLTError("Could not open log file '%s' for dump information.", filename.c_str());
846 filename = fDumpPath;
847 sprintf(strbuf, "dump_event-0x%16.16llX-eventdata.bin", evtData.fEventID);
849 logfile << "Dumping event data structure to file: " << filename << std::endl;
850 DumpBuffer(&evtData, sizeof(AliHLTComponentEventData), filename.c_str());
852 filename = fDumpPath;
853 sprintf(strbuf, "dump_event-0x%16.16llX-triggerdata.bin", evtData.fEventID);
855 logfile << "Dumping trigger data structure to file: " << filename << std::endl;
856 DumpBuffer(&trigData, sizeof(AliHLTComponentTriggerData), filename.c_str());
858 for (int i = 0; i < GetNumberOfInputBlocks(); i++)
860 const AliHLTComponentBlockData* block = GetInputBlock(i);
861 sprintf(strbuf, "dump_event-0x%16.16llX-block-0x%8.8X", evtData.fEventID, i);
863 sprintf(strbuf, "0x%8.8X", block->fSpecification);
864 logfile << "Found block with data type = " << DataType2Text(block->fDataType)
865 << ", specification = " << strbuf << ". Dumping to file: "
866 << filename << "-data.bin" << std::endl;
867 DumpBlock(block, filename.c_str());