1 /**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * All rights reserved. *
5 * Primary Author: Per Thomas Hille <perthi@fys.uio.no> *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 #include "AliHLTPHOSProcessor.h"
20 const AliHLTComponentDataType AliHLTPHOSProcessor::fgkInputDataTypes[]={kAliHLTVoidDataType,{0,"",""}}; //'zero' terminated array
23 AliHLTPHOSProcessor::AliHLTPHOSProcessor():AliHLTProcessor(), AliHLTPHOSBase(), fModuleID(0), fPrintInfoFrequncy(1000), fRunNumber(0)
25 ScanRunNumberFromFile();
30 AliHLTPHOSProcessor::~AliHLTPHOSProcessor()
37 AliHLTPHOSProcessor::ScanRunNumberFromFile()
39 char tmpDirectory[512];
40 char tmpFileName[512];
41 sprintf(tmpDirectory, "%s", getenv("HOME"));
42 sprintf(tmpFileName, "%s%s", tmpDirectory, "/rundir/runNumber.txt");
44 if(CheckFile(tmpFileName, "r") == true)
46 FILE *fp = fopen(tmpFileName, "r");
47 fscanf(fp, "%d", &fRunNumber);
53 cout << "ERROR, could not find file " << tmpFileName <<endl;