#include "AliAltroRawStreamV3.h"
#include "AliCaloRawStreamV3.h"
#include "AliRawReaderMemory.h"
-
+#include "AliHLTPHOSUtilities.h"
AliHLTPHOSRawAnalyzerComponentv3::AliHLTPHOSRawAnalyzerComponentv3():
AliHLTPHOSRcuProcessor(),
{
//See base class for documentation
- fPrintInfo = kFALSE;
+ // fPrintInfo = kFALSE;
int iResult=0;
fMapperPtr = new AliHLTPHOSMapper();
#include "AliHLTPHOSConstants.h"
//#include "AliHLTPHOSRcuCellEnergyDataStruct.h"
#include "TObjArray.h"
+#include "AliHLTPHOSUtilities.h"
//#include <iostream>
AliHLTPHOSRcuDAComponent gAliHLTPHOSRcuDAComponent;
-AliHLTPHOSRcuDAComponent::AliHLTPHOSRcuDAComponent() : AliHLTPHOSRcuProperties(),
+AliHLTPHOSRcuDAComponent::AliHLTPHOSRcuDAComponent() : //AliHLTPHOSRcuProperties(),
AliHLTCalibrationProcessor(),
fPhosEventCount(0),
fPHOSDAPtr(0),
Int_t
AliHLTPHOSRcuDAComponent::ScanArgument( Int_t argc, const char** argv)
{
- ScanArguments(argc, argv);
- return 0;
+ //CRAP PTH
+ // AliHLTPHOSUtilities::ScanArguments(argc, argv);
+
+
+ return 0;
}
#include "AliHLTCalibrationProcessor.h"
#include "AliHLTPHOSConstants.h"
-#include "AliHLTPHOSRcuProperties.h"
+//#include "AliHLTPHOSRcuProperties.h"
using namespace PhosHLTConst;
class TObjArray;
//class AliHLTPHOSRcuDAComponent: public AliHLTCalibrationProcessor, public AliHLTPHOSRcuProcessor
-class AliHLTPHOSRcuDAComponent: public AliHLTPHOSRcuProperties, public AliHLTCalibrationProcessor
+//class AliHLTPHOSRcuDAComponent: public AliHLTPHOSRcuProperties, public AliHLTCalibrationProcessor
+class AliHLTPHOSRcuDAComponent: public AliHLTCalibrationProcessor
+
+
{
public:
/** constructor */
//#include "AliHLTPHOSValidCellDataStruct.h"
#include "AliHLTPHOSChannelDataHeaderStruct.h"
#include "AliHLTPHOSChannelDataStruct.h"
+//#include "AliHLTPHOSUtilities.h"
AliHLTPHOSRcuHistogramProducerComponent gAliHLTPHOSRcuHistogramProducerComponent;
AliHLTPHOSRcuHistogramProducerComponent::DoInit( int argc, const char** argv )
{
//See html documentation of base class
- fPrintInfo = kFALSE;
+ // fPrintInfo = kFALSE;
int iResult=0;
TString argument="";
- iResult = ScanArguments(argc, argv);
+
+ // iResult = ScanArguments(argc, argv);
+
+ /*
if(fIsSetEquippmentID == kFALSE)
{
Logging( kHLTLogFatal, "HLT::AliHLTPHOSRcuHistogramProducerComponent::DoInt( int argc, const char** argv )", "Missing argument",
"The argument equippmentID is not set: set it with a component argumet like this: -equippmentID <number>");
iResult = -2;
}
- fRcuHistoProducerPtr = new AliHLTPHOSRcuHistogramProducer( fModuleID, fRcuX, fRcuZ);
+ */
+
+
+ //fRcuHistoProducerPtr = new AliHLTPHOSRcuHistogramProducer( fModuleID, fRcuX, fRcuZ);
+
+
return iResult;
}
* See cxx source for full Copyright notice */
#include "AliHLTPHOSRcuProcessor.h"
-
+#include "AliHLTPHOSUtilities.h"
//
// Class tp produce calibration data
**************************************************************************/
#include "AliHLTPHOSRcuProcessor.h"
-AliHLTPHOSRcuProcessor::AliHLTPHOSRcuProcessor():AliHLTPHOSProcessor(),
- AliHLTPHOSRcuProperties()
+AliHLTPHOSRcuProcessor::AliHLTPHOSRcuProcessor():AliHLTPHOSProcessor()
+ // AliHLTPHOSRcuProperties()
{
}
#include "AliHLTPHOSProcessor.h"
-#include "AliHLTPHOSRcuProperties.h"
+//#include "AliHLTPHOSRcuProperties.h"
+
+//class AliHLTPHOSRcuProcessor : public AliHLTPHOSProcessor, public AliHLTPHOSRcuProperties
+class AliHLTPHOSRcuProcessor : public AliHLTPHOSProcessor
-class AliHLTPHOSRcuProcessor : public AliHLTPHOSProcessor, public AliHLTPHOSRcuProperties
{
public:
AliHLTPHOSRcuProcessor();
+++ /dev/null
-// $Id$
-
-/**************************************************************************
- * This file is property of and copyright by the Experimental Nuclear *
- * Physics Group, Dep. of Physics *
- * University of Oslo, Norway, 2007 *
- * *
- * Author: Per Thomas Hille <perthi@fys.uio.no> for the ALICE HLT Project.*
- * Contributors are mentioned in the code where appropriate. *
- * Please report bugs to perthi@fys.uio.no *
- * *
- * Permission to use, copy, modify and distribute this software and its *
- * documentation strictly for non-commercial purposes is hereby granted *
- * without fee, provided that the above copyright notice appears in all *
- * copies and that both the copyright notice and this permission notice *
- * appear in the supporting documentation. The authors make no claims *
- * about the suitability of this software for any purpose. It is *
- * provided "as is" without express or implied warranty. *
- **************************************************************************/
-
-#include "AliHLTPHOSRcuProperties.h"
-#include "AliHLTPHOSUtilities.h"
-
-
-
-AliHLTPHOSRcuProperties::AliHLTPHOSRcuProperties() :fkEquippmentID(0),
- fModID(2),
- fRcuID(0),
- fRcuX(0),
- fRcuZ(0),
- fRcuZOffset(0),
- fRcuXOffset(0),
- fPrintInfo(false),
- fPrintInfoFrequncy(10000),
- fIsSetEquippmentID(kFALSE),
- fLog(),
- fIsInitialized(false),
- fUtilitiesPtr(0)
-{
-
- fUtilitiesPtr = new AliHLTPHOSUtilities();
-
-}
-
-
-AliHLTPHOSRcuProperties::~AliHLTPHOSRcuProperties()
-{
-
-}
-
-
-int
-AliHLTPHOSRcuProperties::GetEquippmentID() const
-{
- return fkEquippmentID;
-}
-
-
-int
-AliHLTPHOSRcuProperties::GetRCUID() const
-{
- return fRcuID;
-}
-
-
-int
-AliHLTPHOSRcuProperties::ScanArguments(int argc, const char** argv)
-{
- int iResult=0;
- // -equipmentID
- fIsSetEquippmentID = fUtilitiesPtr->ScanSingleIntArgument(argc, argv, "-equipmentID", &fkEquippmentID);
-
- if(fIsSetEquippmentID == true)
- {
- // cout << "AliHLTPHOSRcuProperties::ScanArguments fIsSetEquippmentID == true" << endl;
- }
- else
- {
- // cout << "AliHLTPHOSRcuProperties::ScanArguments fIsSetEquippmentID == false" << endl;
- }
-
-
- InitializeCoordinates(fkEquippmentID);
- // fPrintInfo = fIsSetEquippmentID = fUtilitiesPtr->ScanSingleIntArgument(argc, argv, "-printinfo", &fPrintInfoFrequncy);
- fPrintInfo = fUtilitiesPtr->ScanSingleIntArgument(argc, argv, "-printinfo", &fPrintInfoFrequncy);
-
- if(fIsSetEquippmentID == kFALSE)
- {
- fLog.Logging( kHLTLogFatal, "HLT::AliHLTPHOSRcuProperties::DoInt( int argc, const char** argv )", "Missing argument",
- "The argument equippmentID is not set: set it with a component argumet like this: -equippmentID <number>");
- iResult = -3;
- }
-
- return iResult;
-}
-
-
-void
-AliHLTPHOSRcuProperties::InitializeCoordinates(AliHLTUInt16_t /*equippmentID*/)
-{
- fRcuID = (fkEquippmentID - 1792)%NRCUSPERMODULE;
- fModID = (fkEquippmentID -1792 - fRcuID)/NRCUSPERMODULE;
-
- if( fRcuID == 0)
- {
- fRcuX = 0;
- fRcuZ = 0;
- }
-
- if( fRcuID == 1)
- {
- fRcuX = 1;
- fRcuZ = 0;
- }
-
- if( fRcuID == 2)
- {
- fRcuX = 2;
- fRcuZ = 0;
- }
-
- if( fRcuID == 3)
- {
- fRcuX = 3;
- fRcuZ = 0;
- }
-
- fRcuZOffset = NZROWSRCU*fRcuZ;
- fRcuXOffset = NXCOLUMNSRCU*fRcuX;
- fIsInitialized = true;
-}
-
+++ /dev/null
-//-*- Mode: C++ -*-
-// $Id$
-
-#ifndef ALIHLTPHOSRCUPROPERTIES_HPP
-#define ALIHLTPHOSRCUPROPERTIES_HPP
-
-/**************************************************************************
- * This file is property of and copyright by the Experimental Nuclear *
- * Physics Group, Dep. of Physics *
- * University of Oslo, Norway, 2007 *
- * *
- * Author: Per Thomas Hille <perthi@fys.uio.no> for the ALICE HLT Project.*
- * Contributors are mentioned in the code where appropriate. *
- * Please report bugs to perthi@fys.uio.no *
- * *
- * Permission to use, copy, modify and distribute this software and its *
- * documentation strictly for non-commercial purposes is hereby granted *
- * without fee, provided that the above copyright notice appears in all *
- * copies and that both the copyright notice and this permission notice *
- * appear in the supporting documentation. The authors make no claims *
- * about the suitability of this software for any purpose. It is *
- * provided "as is" without express or implied warranty. *
- **************************************************************************/
-
-#include "AliHLTDataTypes.h"
-#include "AliHLTLogging.h"
-#include "AliHLTPHOSConstants.h"
-
-using namespace PhosHLTConst;
-
-#include "AliHLTPHOSUtilities.h"
-
-class AliHLTPHOSRcuProperties
-{
-public:
- AliHLTPHOSRcuProperties();
- virtual ~AliHLTPHOSRcuProperties();
- // const int GetEquippmentID() const;
- // const int GetRCUID() const;
- int GetEquippmentID() const; //OD
- int GetRCUID() const; //OD
- virtual int ScanArguments(int argc, const char** argv);
- void InitializeCoordinates(const AliHLTUInt16_t equippmentID);
-
- protected:
- int fkEquippmentID; /**<Equippment ID as defined by ALICE*/
- AliHLTUInt8_t fModID; /**<ID of the module this component read data from (0-4)*/
- int fRcuID;
- AliHLTUInt8_t fRcuX; /**<X position of RCU the data from this Equippment comes from (0 or 1)*/
- AliHLTUInt8_t fRcuZ; /**<Z position of RCU the data from this Equippment comes from (0 or 1)*/
- AliHLTUInt8_t fRcuZOffset; /**<offset in therms of towers in the Z direction relative to the module*/
- AliHLTUInt8_t fRcuXOffset; /**<offset in therms of towers in the X direction relative to the module*/
- bool fPrintInfo; /**<wether or not to print debugg info to std out*/
- int fPrintInfoFrequncy; /**<Defines the update frequency for information printet to std out*/
- bool fIsSetEquippmentID; /**<wether or not the EquippmentID is set*/
- AliHLTLogging fLog;
- bool fIsInitialized;
- AliHLTPHOSUtilities *fUtilitiesPtr;
-
- private:
- AliHLTPHOSRcuProperties (const AliHLTPHOSRcuProperties & );
- AliHLTPHOSRcuProperties & operator = (const AliHLTPHOSRcuProperties &);
-
-};
-
-#endif
// returns the index if the argument if it exists
// returns a negative value if it doesnt exist
int
-AliHLTPHOSUtilities::DoExistArgument(const int argc, const char** argv, const char *name) const
+AliHLTPHOSUtilities::DoExistArgument(const int argc, const char** argv, const char *name)
{
string s1;
bool CheckFile(const char *fileName, const char *opt) const;
- bool ScanSingleIntArgument(int argc, const char** argv, const char *name, int *value = 0 );
- bool ScanSingleFloatArgument(int argc, const char** argv, const char *name, float *value = 0 );
- bool ScanSingleNameArgument(int argc, const char** argv, const char *name, char *outname = 0 );
- bool ScanSingleArgument(int argc, const char** argv, const char *name);
+ static bool ScanSingleIntArgument(int argc, const char** argv, const char *name, int *value = 0 );
+ static bool ScanSingleFloatArgument(int argc, const char** argv, const char *name, float *value = 0 );
+ static bool ScanSingleNameArgument(int argc, const char** argv, const char *name, char *outname = 0 );
+ static bool ScanSingleArgument(int argc, const char** argv, const char *name);
template<typename T>
void DumpData(T *array, int N, int nPerLine)
private:
- int DoExistArgument(const int argc, const char** argv, const char *argument) const;
+ static int DoExistArgument(const int argc, const char** argv, const char *argument) ;
};
AliHLTPHOSESDMaker.h \
AliHLTPHOSESDMakerComponent.h \
AliHLTPHOSRcuDAComponent.h \
- AliHLTPHOSRcuProperties.h \
AliHLTPHOSUtilities.h \
AliHLTPHOSHistogramProducer.h \
AliHLTPHOSHistogramProducerComponent.h \