fRun(0),
fStartTime(0),
fEndTime(0),
+ fStartTimeDCSQuery(0),
+ fEndTimeDCSQuery(0),
fIsProcessed(kFALSE),
fFDR(kFALSE)
{
}
//---------------------------------------------------------------
-AliTOFDataDCS::AliTOFDataDCS(Int_t nRun, UInt_t startTime, UInt_t endTime):
+AliTOFDataDCS::AliTOFDataDCS(Int_t nRun, UInt_t startTime, UInt_t endTime, UInt_t startTimeDCSQuery, UInt_t endTimeDCSQuery):
TObject(),
fRun(nRun),
fStartTime(startTime),
fEndTime(endTime),
+ fStartTimeDCSQuery(startTimeDCSQuery),
+ fEndTimeDCSQuery(endTimeDCSQuery),
fIsProcessed(kFALSE),
fFDR(kFALSE)
{
// constructor with arguments
- AliInfo(Form("\n\tRun %d \n\tStartTime %s \n\tEndTime %s", nRun,
+ AliInfo(Form("\n\tRun %d \n\tStartTime %s \n\tEndTime %s \n\tStartTime DCS Query %s \n\tEndTime DCS Query %s", nRun,
TTimeStamp(startTime).AsString(),
- TTimeStamp(endTime).AsString()));
+ TTimeStamp(endTime).AsString(),
+ TTimeStamp(startTimeDCSQuery).AsString(),
+ TTimeStamp(endTimeDCSQuery).AsString()));
Init();
fRun(0),
fStartTime(0),
fEndTime(0),
+ fStartTimeDCSQuery(0),
+ fEndTimeDCSQuery(0),
fIsProcessed(kFALSE),
fFDR(kFALSE)
fRun=data.fRun;
fStartTime=data.fStartTime;
fEndTime=data.fEndTime;
+ fStartTimeDCSQuery=data.fStartTimeDCSQuery;
+ fEndTimeDCSQuery=data.fEndTimeDCSQuery;
fIsProcessed=data.fIsProcessed;
fFDR=data.fFDR;
this->fRun=data.GetRun();
this->fStartTime=data.GetStartTime();
this->fEndTime=data.GetEndTime();
+ this->fStartTimeDCSQuery=data.GetStartTimeDCSQuery();
+ this->fEndTimeDCSQuery=data.GetEndTimeDCSQuery();
for(int i=0;i<kNAliases;i++) {
this->fAliasNames[i]=data.GetAliasName(i);
AliInfo(Form(" Start Time = %i",fStartTime));
AliInfo(Form(" End Time = %i",fEndTime));
+ AliInfo(Form(" Start Time DCS Query= %i",fStartTimeDCSQuery));
+ AliInfo(Form(" End Time DCS Query= %i",fEndTimeDCSQuery));
if (fEndTime==fStartTime){
AliError(Form(" Run with null time length: start time = %i = end time = %i",fStartTime,fEndTime));
//computing the most significant variations
- Float_t timeDiff = (Float_t)(fEndTime-fStartTime);
+ //Float_t timeDiff = (Float_t)(fEndTime-fStartTime);
+ Float_t timeDiff = (Float_t)(fEndTimeDCSQuery-fStartTimeDCSQuery);
Int_t deltamin = (Int_t)(60/timeDiff*nentries); //sampling every minute
Int_t klast = nentries-deltamin;
enum {kNAliases=360, kNHV=90};
AliTOFDataDCS();
- AliTOFDataDCS(Int_t nRun, UInt_t startTime, UInt_t endTime);
+ AliTOFDataDCS(Int_t nRun, UInt_t startTime, UInt_t endTime, UInt_t startTimeDCSQuery, UInt_t endTimeDCSQuery );
AliTOFDataDCS(const AliTOFDataDCS & data);
AliTOFDataDCS& operator=(const AliTOFDataDCS & data);
~AliTOFDataDCS();
void SetRun(Int_t run) {fRun = run;}
void SetStartTime(Int_t startTime) {fStartTime = startTime;}
void SetEndTime(Int_t endTime) {fEndTime = endTime;}
+ void SetStartTimeDCSQuery(Int_t startTimeDCSQuery) {fStartTimeDCSQuery = startTimeDCSQuery;}
+ void SetEndTimeDCSQuery(Int_t endTimeDCSQuery) {fEndTimeDCSQuery = endTimeDCSQuery;}
Int_t GetRun() const {return fRun;}
Int_t GetStartTime() const {return fStartTime;}
Int_t GetEndTime() const {return fEndTime;}
+ Int_t GetStartTimeDCSQuery() const {return fStartTimeDCSQuery;}
+ Int_t GetEndTimeDCSQuery() const {return fEndTimeDCSQuery;}
Bool_t ProcessData(TMap& aliasMap);
Int_t fRun; // Run number
Int_t fStartTime; // start time
Int_t fEndTime; // end time
+ Int_t fStartTimeDCSQuery; // start time DCSQuery
+ Int_t fEndTimeDCSQuery; // end time DCSQuery
TString fAliasNames[kNAliases]; // aliases for DCS data
AliTOFFormatDCS *fHVvp[kNHV]; // HV voltages, positive ch
Bool_t fIsProcessed; // bool to know processing status
Bool_t fFDR; // bool to know whether we are in a FDR run
- ClassDef(AliTOFDataDCS, 4);
+ ClassDef(AliTOFDataDCS, 5);
};
#endif
AliPreprocessor::Initialize(run, startTime, endTime);
- AliInfo(Form("\n\tRun %d \n\tStartTime %s \n\tEndTime %s", run,
+ AliInfo(Form("\n\tRun %d \n\tStartTime %s \n\tEndTime %s \n\tStartTime DCS Query %s \n\tEndTime DCS Query %s", run,
TTimeStamp(startTime).AsString(),
- TTimeStamp(endTime).AsString()));
+ TTimeStamp(endTime).AsString(), ((TTimeStamp)GetStartTimeDCSQuery()).AsString(), ((TTimeStamp)GetEndTimeDCSQuery()).AsString()));
- fData = new AliTOFDataDCS(fRun, fStartTime, fEndTime);
+ fData = new AliTOFDataDCS(fRun, fStartTime, fEndTime, GetStartTimeDCSQuery(), GetEndTimeDCSQuery());
fNChannels = AliTOFGeometry::NSectors()*(2*(AliTOFGeometry::NStripC()+AliTOFGeometry::NStripB())+AliTOFGeometry::NStripA())*AliTOFGeometry::NpadZ()*AliTOFGeometry::NpadX();
}
//_____________________________________________________________________________
// create AliTestShuttle instance
Int_t nrun = 6;
- AliTestShuttle* shuttle = new AliTestShuttle(nrun, 0, 1000);
+ AliTestShuttle* shuttle = new AliTestShuttle(nrun, 30, 980);
//setting run type to physiscs
shuttle->SetInputRunType(RunType);
+ shuttle->SetTimeCreated(20);
+ shuttle->SetDCSQueryOffset(20);
// Generation of "fake" input DCS data
TMap* dcsAliasMap = CreateDCSAliasMap();