from AliHLTPHOSConfig (hlt configuration), and AliHLTPHOSAltroConfig (FEE configuration)
--- /dev/null
+/**************************************************************************
+ * 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 "AliHLTPHOSConfig.h"
+#include <stdio.h>
+
+
+AliHLTPHOSConfig::AliHLTPHOSConfig() :
+ fIsSoftwareBaselineSubtraction(true)
+{
+ /*
+ FILE *fp = fopen("hltConfig.txt", "r");
+
+
+ if(fp == 0)
+ {
+ printf("\nAliHLTPHOSConfig::AliHLTPHOSConfig(): WARNING: Could not find file \"hltConfig.txt\" \n");
+ printf("Default values will be used\n");
+ PrintDefaultValues();
+ }
+ else
+ {
+ printf("Reading PHOS HLT configurations from file is no yest implemented\n");
+ printf("You can use Setter functions of AliHLTPHOSConfig to set the appropriate parameters\n");
+ printf("See AliHLTPHOSConfig.h for details\n");
+ printf("Using default values for the moment\n");
+ PrintDefaultValues();
+ }
+ */
+
+}
+
+
+AliHLTPHOSConfig::~AliHLTPHOSConfig()
+{
+
+}
+
+void
+AliHLTPHOSConfig:: PrintDefaultValues()
+{
+ printf("\n AliHLTPHOSConfig Default Values\n");
+
+
+ if(fIsSoftwareBaselineSubtraction == true)
+ {
+ printf("fisSoftwarebaselinesubtraction = true\n");
+ }
+ else
+ {
+ printf("fisSoftwarebaselinesubtraction == false\n");
+ }
+
+}
+
+
+void
+AliHLTPHOSConfig::SetSoftwareBaselineSubtraction(bool isSoftwareBaselineSubtraction)
+{
+ fIsSoftwareBaselineSubtraction = isSoftwareBaselineSubtraction;
+}
--- /dev/null
+#ifndef ALIHLTPHOSCONFIG_H
+#define ALIHLTPHOSCONFIG_H
+
+/**************************************************************************
+ * 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. *
+ **************************************************************************/
+
+
+
+class AliHLTPHOSConfig
+{
+public:
+ AliHLTPHOSConfig();
+ virtual ~AliHLTPHOSConfig();
+ void SetSoftwareBaselineSubtraction(bool isSoftwareBaselineSubtraction);
+ void PrintDefaultValues();
+
+protected:
+ bool fIsSoftwareBaselineSubtraction;
+};
+
+#endif
const unsigned char PF_VECTOR_DIR[] = "/HLT/PHOS/PFVectors";
#endif
- const unsigned int PF_DEFAULT_N_SAMPLES = 70;
+ const unsigned int PF_DEFAULT_N_SAMPLES = 70;
const unsigned int PF_DEFAULT_STARTINDEX = 0;
const unsigned int DEFAULT_TAU = 2; /**<Assume that the signal rise time of the altrp pulses is 2 us (nominal value of the electronics)*/
{
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;
+ iResult = -3;
}
return iResult;
}
-#ifndef ALIHLTPHOSVALIDCELLDATASTRUCT_H
-#define ALIHLTPHOSVALIDCELLDATASTRUCT_H
+#ifndef ALIHLTPHOSVALIDCELLDEBUGDATASTRUCT_H
+#define ALIHLTPHOSVALIDCELLDEBUGDATASTRUCT_H
/***************************************************************************
* Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved. *
#include "AliHLTDataTypes.h"
#include "Rtypes.h"
+//#define N_DATA_SAMPLES 70
+#define N_DATA_SAMPLES 510
+
struct AliHLTPHOSValidCellDataStruct
{
AliHLTUInt8_t fZ;
AliHLTUInt8_t fGain;
Float_t fEnergy;
Float_t fTime;
+ Int_t fCrazyness;
+ Int_t fData[N_DATA_SAMPLES];
};