Version 1.1 2006/10
Preliminary test version (T.Malkiewicz)
*/
+// T0 preprocessor:
+// 1) takes data from DCS and passes it to the class AliTOFDataDCS
+// for processing and writes the result to the Reference DB.
+// 2) takes data form DAQ (both from Laser Calibration and Physics runs),
+// processes it, and stores either to OCDB or to Reference DB.
+
#include "AliT0Preprocessor.h"
#include "AliT0DataDCS.h"
#include <TNamed.h>
#include "AliT0Dqclass.h"
-// T0 preprocessor:
-// 1) takes data from DCS and passes it to the class AliTOFDataDCS
-// for processing and writes the result to the Reference DB.
-// 2) takes data form DAQ (both from Laser Calibration and Physics runs),
-// processes it, and stores either to OCDB or to Reference DB.
-
ClassImp(AliT0Preprocessor)
//____________________________________________________
-AliT0Preprocessor::AliT0Preprocessor(AliShuttleInterface* shuttle) : AliPreprocessor("T00", shuttle), fData(0)
+AliT0Preprocessor::AliT0Preprocessor(AliShuttleInterface* shuttle) :
+ AliPreprocessor("T00", shuttle),
+ fData(0)
{
//constructor
}
}
else
{
-
+ /*
resultDCSMap=fData->ProcessData(*dcsAliasMap);
if(!resultDCSMap)
{
}
else
{
+ Float_t *meanScaler[24] = fData->GetScalerMean();
+
AliCDBMetaData metaDataDCS;
metaDataDCS.SetBeamPeriod(0);
metaDataDCS.SetResponsible("Tomasz Malkiewicz");
metaDataDCS.SetComment("This preprocessor fills an AliTODataDCS object.");
AliInfo("Storing DCS Data");
- resultDCSStore = StoreReferenceData("Calib","DCSData", fData, &metaDataDCS);
+ resultDCSStore = Store("Calib","DCSData",meanScaler, &metaDataDCS);
if (!resultDCSStore)
{
Log("Some problems occurred while storing DCS data results in ReferenceDB");
- //return 2;// return error Code for processed DCS data not stored
+ return 2;// return error Code for processed DCS data not stored
}
}
+ */
}
// processing DAQ
TString runType = GetRunType();
- if(runType == "T0_STANDALONE_LASER")
+ if(runType == "STANDALONE")
{
TList* list = GetFileSources(kDAQ, "LASER");
if (list)
metaData.SetBeamPeriod(0);
metaData.SetResponsible("Tomek&Michal");
metaData.SetComment("Walk correction from laser runs.");
- //TObjArray* arrLaser = laser->GetfWalk();
resultLaser=Store("Calib","Slewing_Walk", laser, &metaData, 0, 1);
delete laser;
}
{
AliT0CalibTimeEq *online = new AliT0CalibTimeEq();
online->Reset();
- online->ComputeOnlineParams("CFD", 20, 4., filePhys);
+ online->ComputeOnlineParams(filePhys);
AliCDBMetaData metaData;
metaData.SetBeamPeriod(0);
metaData.SetResponsible("Tomek&Michal");
/* $Id$ */
-#include "AliPreprocessor.h"
// T0 preprocessor.
// Takes data from DCS and passes it to the class AliTOFDataDCS for processing and writes the result to the Reference DB.
// Takes data form DAQ (both from Laser Calibration and Physics runs), processes it, and stores either to OCDB or to Reference DB.
+#include "AliPreprocessor.h"
+
class AliT0DataDCS;
class AliT0Preprocessor: public AliPreprocessor
{
public:
- AliT0Preprocessor(): AliPreprocessor("T00",0),
- fData(0) { }
+ AliT0Preprocessor(): AliPreprocessor("T00",0),
+ fData(0)
+ { }
AliT0Preprocessor(AliShuttleInterface* shuttle);
- AliT0Preprocessor& operator= (const AliT0Preprocessor &) { return *this;};
-
virtual ~AliT0Preprocessor();
protected:
private:
AliT0Preprocessor(const AliT0Preprocessor & proc); // copy constructor
- AliT0DataDCS *fData; // Data member to process DCS data
- ClassDef(AliT0Preprocessor, 1)
+ AliT0Preprocessor& operator=(const AliT0Preprocessor&); //operator
+ AliT0DataDCS *fData; // Data member to process DCS data
+
+ ClassDef(AliT0Preprocessor, 2)
};
typedef AliT0Preprocessor AliSTARTPreprocessor; // for backward compatibility
#include "TF1.h"
#include "TSpectrum.h"
#include "TVirtualFitter.h"
-#include "TProfile.h"
+//#include "TProfile.h"
int cqbx,cqby,clbx,clby,cbx;
float cqlx,cqmx,cqly,cqmy,cllx,clmx,clly,clmy,clx,cmx;
/* Main routine
if(iev==1){
printf("First event - %i\n",iev);
}
-// if((iev<10) || (iev>11000)){
-// printf(" event number = %i \n",iev);
-// }
-
// Initalize raw-data reading and decoding
AliRawReader *reader = new AliRawReaderDate((void*)event);
// Enable the following two lines in case of real-data
- // reader->LoadEquipmentIdsMap("T0map.txt");
- // reader->RequireHeader(kFALSE);
- // reader->RequireHeader(kTRUE);
+ reader->RequireHeader(kTRUE);
AliT0RawReader *start = new AliT0RawReader(reader, kTRUE);
// Read raw data
hCFDvsLED[cc]->Fill(allData[cc+57][iHt]-allData[cc+45][iHt],allData[cc+45][iHt]-allData[0][0]+5000);
}
}
-
delete start;
start = 0x0;
}
-
-
/* free resources */
free(event);
status=0;
/* export file to FXS */
- if (daqDA_FES_storeFile(FILE_OUT, FILE_OUT)) {
+ if (daqDA_FES_storeFile(FILE_OUT, "LASER")) {
status=-2;
}
printf("First event - %i\n",iev);
}
-// printf(" event number = %i \n",iev);
-
// Initalize raw-data reading and decoding
AliRawReader *reader = new AliRawReaderDate((void*)event);
// Enable the following two lines in case of real-data
- // reader->LoadEquipmentIdsMap("T0map.txt");
- // reader->RequireHeader(kFALSE);
- // reader->RequireHeader(kTRUE);
+ reader->RequireHeader(kTRUE);
AliT0RawReader *start = new AliT0RawReader(reader, kTRUE);
// Read raw data
for(Int_t i0=0;i0<105;i0++)
for(Int_t j0=0;j0<5;j0++)
allData[i0][j0] = 0;
-
if(start->Next())
for (Int_t i=0; i<105; i++) {
}
}
-
delete start;
start = 0x0;
reader->Reset();
}
-
-
/* free resources */
free(event);
status=0;
/* export file to FXS */
- if (daqDA_FES_storeFile(FILE_OUT, FILE_OUT)) {
+ if (daqDA_FES_storeFile(FILE_OUT, "PHYSICS")) {
status=-2;
}