3 //**************************************************************************
4 //* This file is property of and copyright by the ALICE HLT Project *
5 //* ALICE Experiment at CERN, All rights reserved. *
8 //* for The ALICE HLT Project. *
10 //* Permission to use, copy, modify and distribute this software and its *
11 //* documentation strictly for non-commercial purposes is hereby granted *
12 //* without fee, provided that the above copyright notice appears in all *
13 //* copies and that both the copyright notice and this permission notice *
14 //* appear in the supporting documentation. The authors make no claims *
15 //* about the suitability of this software for any purpose. It is *
16 //* provided "as is" without express or implied warranty. *
17 //**************************************************************************
19 /** @file AliHLTTRDOfflineTrackerV1Component.cxx
22 @brief A TRDClusterizer processing component for the HLT.
25 #include "AliHLTTRDOfflineTrackerV1Component.h"
26 #include "AliCDBManager.h"
28 ClassImp(AliHLTTRDOfflineTrackerV1Component)
30 AliHLTTRDOfflineTrackerV1Component::AliHLTTRDOfflineTrackerV1Component():
31 AliHLTTRDTrackerV1Component()
33 // Default constructor
37 AliHLTTRDOfflineTrackerV1Component::~AliHLTTRDOfflineTrackerV1Component()
40 // Work is Done in DoDeInit()
43 AliHLTComponent* AliHLTTRDOfflineTrackerV1Component::Spawn()
45 // Spawn function, return new instance of this class
46 return new AliHLTTRDOfflineTrackerV1Component;
49 int AliHLTTRDOfflineTrackerV1Component::DoInit( int argc, const char** argv )
52 return AliHLTTRDTrackerV1Component::DoInit(argc, argv);
55 const char* AliHLTTRDOfflineTrackerV1Component::GetComponentID()
57 // Return the component ID const char *
58 return "TRDOfflineTrackerV1"; // The ID of this component
61 void AliHLTTRDOfflineTrackerV1Component::SetOfflineParams(){
62 HLTFatal("You have entered the OFFLINE configuration!");
63 HLTFatal("This program shall NOT run on the HLT cluster like this!");
64 if(!AliCDBManager::Instance()->IsDefaultStorageSet()){
65 HLTFatal("You are resetting the Default Storage of the CDBManager!");
66 HLTFatal("Let's hope that this program is NOT running on the HLT cluster!");
67 AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
69 HLTError("DefaultStorage was already set!");
71 if(AliCDBManager::Instance()->GetRun()<0){
72 HLTFatal("You are resetting the CDB run number to 0!");
73 HLTFatal("Let's hope that this program is NOT running on the HLT cluster!");
74 AliCDBManager::Instance()->SetRun(0);
76 HLTError("Run Number was already set!");
80 int AliHLTTRDOfflineTrackerV1Component::DoDeinit()
82 return AliHLTTRDTrackerV1Component::DoDeinit();
85 int AliHLTTRDOfflineTrackerV1Component::DoEvent(const AliHLTComponent_EventData& evtData, const AliHLTComponent_BlockData* blocks,
86 AliHLTComponent_TriggerData& trigData, AliHLTUInt8_t* outputPtr,
87 AliHLTUInt32_t& size, vector<AliHLTComponent_BlockData>& outputBlocks )
89 return AliHLTTRDTrackerV1Component::DoEvent(evtData, blocks, trigData, outputPtr, size, outputBlocks );