]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
changes by Sebastian: coding conventions and compilation warnings; bugfix AliHLTPredi...
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Sep 2008 09:18:40 +0000 (09:18 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Sep 2008 09:18:40 +0000 (09:18 +0000)
HLT/libHLTpendolino.pkg
HLT/pendolino/AliHLTPendolino.cxx
HLT/pendolino/AliHLTPendolino.h
HLT/pendolino/AliHLTPredictionProcessorDummy.cxx
HLT/pendolino/AliHLTPredictionProcessorDummy.h
HLT/pendolino/AliHLTPredictionProcessorInterface.cxx
HLT/pendolino/AliHLTPredictionProcessorInterface.h
HLT/pendolino/HLT/AliHLTPredicProcTempMonitor.cxx
HLT/pendolino/HLT/AliHLTPredicProcTempMonitor.h
HLT/pendolino/HLT/AliHLTPredictionProcessorHLT.cxx
HLT/pendolino/HLT/AliHLTPredictionProcessorHLT.h

index 0856e8d979886c157ab02a6ea9290b63ecf1a20f..6c4f1b96fe84dc77c224ca0da3742f7a9df7aa66 100644 (file)
@@ -20,7 +20,7 @@ MODULE_HDRS:=         $(CLASS_HDRS)
 
 MODULE_DHDR:=          
 
-EINCLUDE := HLT/pendolino HLT/BASE STEER
+EINCLUDE := HLT/pendolino HLT/BASE STEER TPC MUON
 
 LIBRARY_DEP := -lHLTbase -lCDB
 
index d3f891c571ef2789ca13513dc5305858edbf196a..4dfd445b3d290259e5479659e988db3e13600ef1 100644 (file)
@@ -78,17 +78,18 @@ const Int_t AliHLTPendolino::kHLTPendolinoNoDCS = -6;
 
 
 AliHLTPendolino::AliHLTPendolino(Int_t run, TString HCDBbase, 
-                       TString runType, AliHLTPendolinoLogger* logger) {
+                       TString runType, AliHLTPendolinoLogger* logger) :
+                       fRunType(runType), fRunNumber(run), 
+                       fHCDBPath(""), fPredictionProcessorMap(),
+                       fpLogger(0), fOwnLogger(kFALSE) {
        // C-tor of AliHLTPendolino
-       mRunType = runType;
-       mRunNumber = run;
-       mHCDBPath = kLOCAL_STORAGE_DEFINE + HCDBbase;
+       fHCDBPath = kLOCAL_STORAGE_DEFINE + HCDBbase;
        if (logger == 0) {
-               mpLogger = new AliHLTPendolinoLoggerOStream();
-               mOwnLogger = kTRUE;
+               fpLogger = new AliHLTPendolinoLoggerOStream();
+               fOwnLogger = kTRUE;
        } else {
-               mpLogger = logger;
-               mOwnLogger = kFALSE;
+               fpLogger = logger;
+               fOwnLogger = kFALSE;
        }
 }
 
@@ -96,7 +97,7 @@ AliHLTPendolino::AliHLTPendolino(Int_t run, TString HCDBbase,
 AliHLTPendolino::~AliHLTPendolino() {
        // D-tor of AliHLTPendolino
        // clean up registered PredicitonProcs
-    TMapIter iter(&mPredictionProcessorMap, kIterForward);
+    TMapIter iter(&fPredictionProcessorMap, kIterForward);
     AliHLTPredictionProcessorInterface* aPredict;
     TObject* key = 0;
 
@@ -107,7 +108,7 @@ AliHLTPendolino::~AliHLTPendolino() {
         try {
             // get value for the key
             aPredict = dynamic_cast<AliHLTPredictionProcessorInterface*>
-                    (mPredictionProcessorMap.GetValue(key));
+                    (fPredictionProcessorMap.GetValue(key));
 
             if (aPredict == 0) {
                 Log(kHLTInterfaceModule, 
@@ -132,10 +133,11 @@ AliHLTPendolino::~AliHLTPendolino() {
             continue;
         }
     }
+       Log(kHLTInterfaceModule, " ### [DEBUG] Deleting of PredictionProcessors finished.");
 
        // clean up logger
-       if ((mOwnLogger) && (mpLogger != 0)) {
-               delete mpLogger;
+       if ((fOwnLogger) && (fpLogger != 0)) {
+               delete fpLogger;
        }
        
 }
@@ -152,8 +154,8 @@ Bool_t AliHLTPendolino::Store(const AliCDBPath& path, TObject* object,
        AliCDBManager* man = 0; 
        AliCDBStorage* local_hcdb = 0;  
 
-       startNumber = ((mRunNumber - validityStart) <= 0) ? 0 : (mRunNumber - validityStart);
-       endNumber = (validityInfinite) ? AliCDBRunRange::Infinity() : mRunNumber;
+       startNumber = ((fRunNumber - validityStart) <= 0) ? 0 : (fRunNumber - validityStart);
+       endNumber = (validityInfinite) ? AliCDBRunRange::Infinity() : fRunNumber;
 
        man = AliCDBManager::Instance();
     if (man == 0) {
@@ -162,10 +164,10 @@ Bool_t AliHLTPendolino::Store(const AliCDBPath& path, TObject* object,
        }
 
     // contact local storage (HCDB)
-    local_hcdb = man->GetStorage(mHCDBPath.Data());
+    local_hcdb = man->GetStorage(fHCDBPath.Data());
     if (local_hcdb == 0) {
                TString msg(" *** ERROR in initiating HCDB: ");
-               msg += mHCDBPath;
+               msg += fHCDBPath;
         Log(kHLTInterfaceModule, msg.Data());
         man->DestroyActiveStorages();
         return kFALSE;
@@ -173,14 +175,14 @@ Bool_t AliHLTPendolino::Store(const AliCDBPath& path, TObject* object,
 
        // taken from AliShuttle
        if (! dynamic_cast<TObjString*> (metaData->GetProperty("RunUsed(TObjString)"))) {
-        TObjString runUsed = Form("%d", mRunNumber);
+        TObjString runUsed = Form("%d", fRunNumber);
         metaData->SetProperty("RunUsed(TObjString)", runUsed.Clone());
     }
 
 
     // Version is set to current run, it will be used later to transfer data to Grid
     // Why using current run number as version number ???
-       AliCDBId entryID(path, startNumber, endNumber, mRunNumber, -1);
+       AliCDBId entryID(path, startNumber, endNumber, fRunNumber, -1);
        
        if (local_hcdb->Put(object, entryID, metaData)) {
                retVal = kTRUE;
@@ -197,7 +199,7 @@ Bool_t AliHLTPendolino::Store(const AliCDBPath& path, TObject* object,
 
 
 Bool_t AliHLTPendolino::StoreReferenceData(const AliCDBPath& path,
-                       TObject* object, AliCDBMetaData* metaData) {
+                                          TObject* /*object*/, AliCDBMetaData* /*metaData*/) {
        // Disabled Function inherited from interface
        TString msg(" ~~~ PredictProc tries to store reference data to '" 
                        + path.GetPath() + "'. Discarding call in Pendolino.");
@@ -293,7 +295,7 @@ TList* AliHLTPendolino::GetFileIDs(Int_t system, const char* detector,
 }
 
 
-const char* AliHLTPendolino::GetRunParameter(const char* lbEntry) {
+const char* AliHLTPendolino::GetRunParameter(const char* /*lbEntry*/) {
        // getter for run parameter
                
 // TODO
@@ -326,20 +328,20 @@ AliCDBEntry* AliHLTPendolino::GetFromOCDB(const char* detector,
                return NULL;
        }
 
-       AliCDBStorage *hcdb = man->GetStorage(mHCDBPath.Data());
+       AliCDBStorage *hcdb = man->GetStorage(fHCDBPath.Data());
        if (hcdb == 0) {
                TString msg(" *** ERROR, cannot acquire HCDB storage (");
-               msg += mHCDBPath + ") for fetching data for Pendolino.";
+               msg += fHCDBPath + ") for fetching data for Pendolino.";
                Log(kHLTInterfaceModule, msg.Data());
                return NULL;
        }
        
-       entry = hcdb->Get(path, mRunNumber);
+       entry = hcdb->Get(path, fRunNumber);
 
        if (entry == 0) {
                TString msg(" ~~~ WARNING: no valid entry for '");
                msg += path.GetPath() + "' in HCDB for run number ";
-               msg += mRunNumber;
+               msg += fRunNumber;
                Log(kHLTInterfaceModule, msg.Data());
        }
 
@@ -348,7 +350,7 @@ AliCDBEntry* AliHLTPendolino::GetFromOCDB(const char* detector,
 /*
        AliCDBEntry* entry = 0;
        try {
-               entry = dynamic_cast<AliCDBEntry*> (hcdb->Get(path, mRunNumber));
+               entry = dynamic_cast<AliCDBEntry*> (hcdb->Get(path, fRunNumber));
        } catch (std::bad_cast) {
                TString msg(" *** ERROR, bad cast of HCDB entry (");
                msg += path.GetPath() + ") after fetching from HCDB.";
@@ -400,7 +402,7 @@ Bool_t AliHLTPendolino::includeAliCDBEntryInList(const TString& entryPath) {
                }
 //             outfile.seekp(-1, ios::end);
                outfile << endl;
-               outfile << "#HLT (Pendolino) - Run: " << mRunNumber << ", Time: " <<
+               outfile << "#HLT (Pendolino) - Run: " << fRunNumber << ", Time: " <<
                                ts.AsString() << endl;
                outfile << entryPath.Data() << endl;
                outfile.close();
@@ -422,14 +424,14 @@ Bool_t AliHLTPendolino::includeAliCDBEntryInList(const TString& entryPath) {
                                        << endl << "#" << endl;
                        outfile << "#    !!! DON'T EDIT THIS FILE (if you don't know what you are doing) !!!"
                                        << endl << endl;
-                       outfile << "#HLT (Pendolino) - Run: " << mRunNumber << ", Time: " << 
+                       outfile << "#HLT (Pendolino) - Run: " << fRunNumber << ", Time: " << 
                                        ts.AsString() << endl;
                        outfile << entryPath.Data() << endl;
                        outfile.close();
                        bRet = kTRUE;
                
                } else {
-                       TString msg(" *** Unable to create Pendolino list file '");
+                       msg=" *** Unable to create Pendolino list file '";
                        msg += filename + "' for Taxi. Continueing without list update...";
                        Log(kHLTInterfaceModule, msg.Data());
                }       
@@ -441,7 +443,7 @@ Bool_t AliHLTPendolino::includeAliCDBEntryInList(const TString& entryPath) {
 
 void AliHLTPendolino::Log(const char* detector, const char* message) {
        // logging function
-       mpLogger->log(detector, message);
+       fpLogger->log(detector, message);
        // refer data to a Pendolino Logger, which can take care of it
 }
 
@@ -456,14 +458,14 @@ void AliHLTPendolino::RegisterPreprocessor(AliPreprocessor* preprocessor) {
 
     TString detector(preprocessor->GetName());
 
-    if (mPredictionProcessorMap.GetValue(detector.Data())) {
+    if (fPredictionProcessorMap.GetValue(detector.Data())) {
         Log(kHLTInterfaceModule, " ~~~ Already registered PredictionProcessor '" +
                 detector + "'. Ignoring call.");
         return;
     }
        // store as AliPreprocessor* and make cast to AliHLTPredictionProcessorInterface*
        // later, when accesing them.
-    mPredictionProcessorMap.Add(new TObjString(detector), preprocessor);
+    fPredictionProcessorMap.Add(new TObjString(detector), preprocessor);
 
 /*     
        TString detector(preprocessor->GetName());
@@ -511,13 +513,13 @@ void AliHLTPendolino::RegisterPreprocessor(AliPreprocessor* preprocessor) {
                Log(kHLTInterfaceModule, " *** Exception in the registering of the PredictProc.");              
        }
 
-       if (mPredictionProcessorMap.GetValue(detector.Data())) {
+       if (fPredictionProcessorMap.GetValue(detector.Data())) {
                Log(kHLTInterfaceModule, " ~~~ Already registered PredictionProcessor '" +
                                detector + "'. Ignoring call.");
                return;
        }
 
-       mPredictionProcessorMap.Add(new TObjString(detector), predictProc);
+       fPredictionProcessorMap.Add(new TObjString(detector), predictProc);
 */
 }
 
@@ -527,7 +529,7 @@ UInt_t AliHLTPendolino::setToPredictMaking() {
        UInt_t retVal = 0;
 
        // get an iterator for the map
-       TMapIter iter(&mPredictionProcessorMap, kIterForward);
+       TMapIter iter(&fPredictionProcessorMap, kIterForward);
        AliHLTPredictionProcessorInterface* aPredict;
        TObject* key = 0;       
        
@@ -538,7 +540,7 @@ UInt_t AliHLTPendolino::setToPredictMaking() {
                try {
                        // get value for the key
                        aPredict = dynamic_cast<AliHLTPredictionProcessorInterface*>
-                                       (mPredictionProcessorMap.GetValue(key));
+                                       (fPredictionProcessorMap.GetValue(key));
                
                        if (aPredict == 0) {
                                Log(kHLTInterfaceModule, " *** Cannot use PredictionProcessor '"
@@ -579,7 +581,7 @@ Int_t AliHLTPendolino::setToPredictMaking(TString detector) {
        
        try {
                // get the value for the key
-               TObject* object = mPredictionProcessorMap.GetValue(detector.Data());
+               TObject* object = fPredictionProcessorMap.GetValue(detector.Data());
 
                if (object == 0) {
                        Log(kHLTInterfaceModule, " *** No PredictionProcessor for '" +
@@ -628,7 +630,7 @@ Int_t AliHLTPendolino::prepareDCSValues(TString detector, TMap* DCSValues) {
 
        try {
                // get the value for the key
-               TObject* object = mPredictionProcessorMap.GetValue(detector.Data());
+               TObject* object = fPredictionProcessorMap.GetValue(detector.Data());
                
                if (object == 0) {
                        Log(kHLTInterfaceModule, " *** No PredictionProcessor for '" +
@@ -672,7 +674,7 @@ TMap* AliHLTPendolino::emulateDCSMap(TString detector, TString aliasName) {
 
     try {
         // get the value for the key
-        TObject* object = mPredictionProcessorMap.GetValue(detector.Data());
+        TObject* object = fPredictionProcessorMap.GetValue(detector.Data());
 
         if (object == 0) {
             Log(kHLTInterfaceModule, " *** No PredictionProcessor for '" +
@@ -715,7 +717,7 @@ Int_t AliHLTPendolino::initPredictProc(TString detector, Int_t run,
 
     try {
         // get the value for the key
-        TObject* object = mPredictionProcessorMap.GetValue(detector.Data());
+        TObject* object = fPredictionProcessorMap.GetValue(detector.Data());
 
         if (object == 0) {
             Log(kHLTInterfaceModule, " *** No PredictionProcessor for '" +
index c0ec01bac0b7e57bdaa308f7f1c278f62e689e00..4874e4f7bf9de7189b93153e09668d5b362ef8de 100644 (file)
@@ -426,52 +426,52 @@ class AliHLTPendolino : public AliShuttleInterface {
                /**
                 * Stores the current run type
                 */
-               TString mRunType;  // Stores the current run type
+               TString fRunType;  // Stores the current run type
+
+               /**
+                * Stores the current run number
+                */
+               Int_t fRunNumber;  // Stores the current run number
+
+               /**
+                * Stores the HCDBpath
+                */
+               TString fHCDBPath;       // Stores the HCDBpath
 
                /**
                 * Map that stores the all PredictionProcessors with their name
                 * (detector)
                 */
-               TMap mPredictionProcessorMap;  // stores the all PredictionProcessors
+               TMap fPredictionProcessorMap;  // stores the all PredictionProcessors
 
                /**
                 * Pointer to the used Pendolino logger
                 */
-               AliHLTPendolinoLogger* mpLogger; // Pointer to the used Pendolino logger
-
-               /**
-                * Stores the current run number
-                */
-               Int_t mRunNumber;  // Stores the current run number
-
-               /**
-                * Stores the HCDBpath
-                */
-               TString mHCDBPath;       // Stores the HCDBpath
+               AliHLTPendolinoLogger* fpLogger; // Pointer to the used Pendolino logger
 
                /**
                 * Indicates, if Logger is owned by Pendolino
                 */
-               Bool_t mOwnLogger;  //  Indicates, if Logger is owned by Pendolino
+               Bool_t fOwnLogger;  //  Indicates, if Logger is owned by Pendolino
                
-               ClassDef(AliHLTPendolino, 4);
+               ClassDef(AliHLTPendolino, 5);
 
 };
 
 
 inline const char* AliHLTPendolino::GetRunType() {
        // getter for run type
-       return mRunType.Data();
+       return fRunType.Data();
 }
 
 inline Int_t AliHLTPendolino::GetRunNumber() {
        // getter for run number
-       return mRunNumber;
+       return fRunNumber;
 }
 
 inline Int_t AliHLTPendolino::getNumberOfPredictProc() {
        // getter for number of registered PredictionProcessors
-       return mPredictionProcessorMap.GetSize();
+       return fPredictionProcessorMap.GetSize();
 }
 
 
index aa6d95f9b998d7c9636038e907ce9e66b76d8046..51ff7299a9ee5e67daf72c2c46567d36e823800c 100644 (file)
@@ -36,12 +36,9 @@ ClassImp(AliHLTPredictionProcessorDummy)
 
 AliHLTPredictionProcessorDummy::AliHLTPredictionProcessorDummy(
                        const char* detector, AliHLTPendolino* pendolino) :
-                               AliHLTPredictionProcessorInterface(detector, pendolino) {
+                               AliHLTPredictionProcessorInterface(detector, pendolino),
+                                fPredict(false), fRun(0), fStartTime(0), fEndTime(0) {
        // C-tor of AliHLTPredictionProcessorDummy
-       mPredict = false;
-       mRun = 0;
-       mStartTime = 0;
-       mEndTime = 0;
 }
 
 
@@ -54,7 +51,7 @@ AliHLTPredictionProcessorDummy::~AliHLTPredictionProcessorDummy() {
 UInt_t AliHLTPredictionProcessorDummy::makePrediction(Bool_t doPrediction) {
        // switches prediction making on or off
        Log("Prediction switched on");
-       mPredict = doPrediction;
+       fPredict = doPrediction;
        return 0;
 }
 
@@ -62,20 +59,20 @@ UInt_t AliHLTPredictionProcessorDummy::makePrediction(Bool_t doPrediction) {
 void AliHLTPredictionProcessorDummy::Initialize(Int_t run, UInt_t startTime, 
                        UInt_t endTime) {
        // initializes AliHLTPredictionProcessorDummy
-       mRun = run;
-       mStartTime = startTime;
-       mEndTime = endTime;
+       fRun = run;
+       fStartTime = startTime;
+       fEndTime = endTime;
 
        TString msg("Initialized Dummy PredictProc. Run: ");
-       msg += mRun;
+       msg += fRun;
        msg += ", start time: ";
-       msg += mStartTime;
+       msg += fStartTime;
        msg += ", end time: ";
-       msg += mEndTime;
+       msg += fEndTime;
        msg += ".";     
        Log(msg.Data());
 
-       if (mPredict) {
+       if (fPredict) {
                Log("Dummy PredictProc has prediction switched ON.");
        } else {
                Log("Prediction is switched OFF.");
@@ -141,10 +138,10 @@ UInt_t AliHLTPredictionProcessorDummy::Process(TMap* dcsAliasMap) {
 
        //transform dcsAliasMap to ROOT object 
        TString comment("Beam it up");
-       if (mPredict) {
+       if (fPredict) {
                comment += " with PREDICTION!";
        }
-       if (mRun > 3) {
+       if (fRun > 3) {
                start = 3;
        }
        AliCDBMetaData meta(this->GetName(), 666, "unknownAliRoot", 
index 2804742ea0a739d2d604636c2c09d8251cd4724e..417406848143ffb391a3492145cab422a9dc7ebe 100644 (file)
@@ -136,25 +136,25 @@ class AliHLTPredictionProcessorDummy : public AliHLTPredictionProcessorInterface
                /**
                 * Stores if prediction shall be made
                 */
-               Bool_t mPredict;  // Stores if prediction shall be made
+               Bool_t fPredict;  // Stores if prediction shall be made
 
                /**
                 * Stores the run number
                 */
-               Int_t mRun;  // Stores the run number
+               Int_t fRun;  // Stores the run number
        
                /**
                 * Stores the start time of the to process DCS data
                 */     
-               UInt_t mStartTime; // Stores the start time of the to process DCS data
+               UInt_t fStartTime; // Stores the start time of the to process DCS data
        
                /**
                 * Stores the end time of the to process DCS data
                 */     
-               UInt_t mEndTime;  // Stores the end time of the to process DCS data
+               UInt_t fEndTime;  // Stores the end time of the to process DCS data
 
                
-               ClassDef(AliHLTPredictionProcessorDummy, 0);
+               ClassDef(AliHLTPredictionProcessorDummy, 1);
        
 };
 
index 0b28a097cefd392b1b37c4a24c8b973a7405a7f9..2a6801a36a8eaba987ac92694cad978adef988d3 100644 (file)
@@ -32,10 +32,7 @@ ClassImp(AliHLTPredictionProcessorInterface)
 AliHLTPredictionProcessorInterface::AliHLTPredictionProcessorInterface(
                        const char* detector, AliHLTPendolino* pendolino) : 
                        AliPreprocessor(detector, reinterpret_cast<AliShuttleInterface*>
-                                       (pendolino)),
-                       mPend(pendolino)
-
-{
+                                       (pendolino)), fpPend(pendolino) {
 }
 
 
@@ -44,14 +41,14 @@ AliHLTPredictionProcessorInterface::~AliHLTPredictionProcessorInterface() {
 }
 
 Int_t AliHLTPredictionProcessorInterface::GetRunNumber() {
-       return mPend->GetRunNumber();
+       return fpPend->GetRunNumber();
 }
 
 
 Bool_t AliHLTPredictionProcessorInterface::includeAliCDBEntryInList(
             const TString& entryPath) {
 
-    return mPend->includeAliCDBEntryInList(entryPath);
+    return fpPend->includeAliCDBEntryInList(entryPath);
 }
 
 
index a81293b7687457e9ca46bf5218f153c43651e0d9..debd73f91736768ad3073765a2f3a16d110640a4 100644 (file)
@@ -164,10 +164,10 @@ class AliHLTPredictionProcessorInterface : public AliPreprocessor {
                /**
                 * Stores pointer to Pendolino
                 */
-               AliHLTPendolino* mPend;  //  Stores pointer to Pendolino
+               AliHLTPendolino* fpPend;  //  Stores pointer to Pendolino
 
                
-               ClassDef(AliHLTPredictionProcessorInterface, 5);
+               ClassDef(AliHLTPredictionProcessorInterface, 6);
        
 };
 
index ac0152f39fe88298b215865c142cd70d8573a0fe..9485742d80ca2c258f79593a918de74937a115fa 100644 (file)
@@ -55,12 +55,13 @@ const UInt_t AliHLTPredicProcTempMonitor::kUnableToStoreObject = 7;
                
 AliHLTPredicProcTempMonitor::AliHLTPredicProcTempMonitor(
                        const char* detector, AliHLTPendolino* pendolino) :
-                               AliHLTPredictionProcessorInterface(detector, pendolino) {
+                               AliHLTPredictionProcessorInterface(detector, pendolino),
+                               fPredict(true), fRun(0), fStartTime(0), fEndTime(0), fBField("") {
        // C-tor for AliHLTPredicProcTempMonitor
-       mPredict = true;
-       mRun = 0;
-       mStartTime = 0;
-       mEndTime = 0;
+//     fPredict = true;
+//     fRun = 0;
+//     fStartTime = 0;
+//     fEndTime = 0;
 }
 
 
@@ -73,7 +74,7 @@ AliHLTPredicProcTempMonitor::~AliHLTPredicProcTempMonitor() {
 UInt_t AliHLTPredicProcTempMonitor::makePrediction(Bool_t doPrediction) {
        // switch for prediction making in AliHLTPredicProcTempMonitor
        Log("AliHLTPredicProcTempMonitor + B-Field extractor: prediction switched on");
-       mPredict = doPrediction;
+       fPredict = doPrediction;
        return 0;
 }
 
@@ -81,16 +82,16 @@ UInt_t AliHLTPredicProcTempMonitor::makePrediction(Bool_t doPrediction) {
 void AliHLTPredicProcTempMonitor::Initialize(Int_t run, UInt_t startTime, 
                        UInt_t endTime) {
        // initializes AliHLTPredicProcTempMonitor
-       mRun = run;
-       mStartTime = startTime;
-       mEndTime = endTime;
+       fRun = run;
+       fStartTime = startTime;
+       fEndTime = endTime;
 
        TString msg("Initialized HLT PredictionProcessor; Run: ");
-       msg += mRun;
+       msg += fRun;
        msg += ", start time: ";
-       msg += mStartTime;
+       msg += fStartTime;
        msg += ", end time: ";
-       msg += mEndTime;
+       msg += fEndTime;
        msg += ".";     
        Log(msg.Data());
 }
@@ -160,18 +161,18 @@ UInt_t AliHLTPredicProcTempMonitor::Process(TMap* dcsAliasMap) {
 UInt_t AliHLTPredicProcTempMonitor::ExtractBField(TMap* dcsAliasMap) {
        // extracts the B-field value from DCS value map
   
-       TString stringId = "dcs_magnet:Magnet/ALICESolenoid.Current";
+       TString stringId = "L3Current"; // "dcs_magnet:Magnet/ALICESolenoid.Current";
   
        Float_t BField = 0; 
        Bool_t bRet = GetSensorValue(dcsAliasMap,stringId.Data(),&BField);
 
        if (bRet) {
                BField = BField / 60000; // If we get field, take this away and change SensorValue
-               TString dummy("-bfield ");
+               TString dummy("-solenoidBZ ");
                dummy += BField;
                TObjString dummy2(dummy.Data());
-               mBField = dummy2; 
-               Log(Form("BField set to %s", mBField.String().Data())); 
+               fBField = dummy2; 
+               Log(Form("BField set to %s", fBField.String().Data())); 
        } else {
                return 1;
        }
@@ -183,7 +184,7 @@ UInt_t AliHLTPredicProcTempMonitor::ExtractBField(TMap* dcsAliasMap) {
        TString comment("BField");
        AliCDBMetaData meta(this->GetName(), 0, "unknownAliRoot", comment.Data());
   
-       if (Store(path2.Data(), path3.Data(), (TObject*) (&mBField), &meta, start, 
+       if (Store(path2.Data(), path3.Data(), (TObject*) (&fBField), &meta, start, 
                        kTRUE)) {
                Log(" +++ Successfully stored object ;-)");
        } else {
@@ -225,7 +226,7 @@ TMap* AliHLTPredicProcTempMonitor::produceTestData(TString aliasName) {
     resultMap = new TMap();
     TTimeStamp tt;
        Float_t fval = 33.3;
-    TObjString* name = new TObjString("DummyData");
+    TObjString* name = new TObjString("L3Current");
     AliDCSValue* val = new AliDCSValue(fval, tt.GetTime());
     TObjArray* arr = new TObjArray();
     arr->Add(val);
index 11ceb4113ab51ce22855ddef655aee039fe30f18..7f6d2189447407d8812cbc23af8c7b1d0ca04b76 100644 (file)
@@ -186,30 +186,30 @@ class AliHLTPredicProcTempMonitor : public AliHLTPredictionProcessorInterface {
                /**
                 * Stores if prediction shall be made
                 */
-               Bool_t mPredict;  // flag for prediction making
+               Bool_t fPredict;  // flag for prediction making
 
                /**
                 * Stores the run number
                 */
-               Int_t mRun;  //  Stores the run number
+               Int_t fRun;  //  Stores the run number
        
                /**
                 * Stores the start time of the to process DCS data
                 */     
-               UInt_t mStartTime; // Stores the start time of the to process DCS data
+               UInt_t fStartTime; // Stores the start time of the to process DCS data
        
                /**
                 * Stores the end time of the to process DCS data
                 */     
-               UInt_t mEndTime;  // Stores the end time of the to process DCS data
+               UInt_t fEndTime;  // Stores the end time of the to process DCS data
 
                /**
                 * Stores the extracted B-Field in a TObjString
                 */
-               TObjString mBField;  // Stores the extracted B-Field in a TObjString
+               TObjString fBField;  // Stores the extracted B-Field in a TObjString
 
                /** ClassDef of AliHLTPredicProcTempMonitor for AliRoot */
-               ClassDef(AliHLTPredicProcTempMonitor, 2);
+               ClassDef(AliHLTPredicProcTempMonitor, 4);
        
 };
 
index 1807ffc31f6ce031abb4f0d337dc61269aab4581..668e48cf110d7d8f11ed8a8828e4ee1044bb1219 100644 (file)
@@ -39,13 +39,14 @@ ClassImp(AliHLTPredictionProcessorHLT)
 
 AliHLTPredictionProcessorHLT::AliHLTPredictionProcessorHLT(
                        const char* detector, AliHLTPendolino* pendolino) :
-                               AliHLTPredictionProcessorInterface(detector, pendolino) {
+                               AliHLTPredictionProcessorInterface(detector, pendolino),
+                               fPredict(true), fRun(0), fStartTime(0), fEndTime(0), fBField("") {
        // C-tor for AliHLTPredictionProcessorHLT
-       mPredict = false;
-       mRun = 0;
-       mStartTime = 0;
-       mEndTime = 0;
-       mBField = 0;
+//     fPredict = false;
+//     fRun = 0;
+//     fStartTime = 0;
+//     fEndTime = 0;
+//     fBField = 0;
 }
 
 
@@ -57,7 +58,7 @@ AliHLTPredictionProcessorHLT::~AliHLTPredictionProcessorHLT() {
 UInt_t AliHLTPredictionProcessorHLT::makePrediction(Bool_t doPrediction) {
        // switch for prediction making
        Log("Prediction switched on");
-       mPredict = doPrediction;
+       fPredict = doPrediction;
        return 0;
 }
 
@@ -65,20 +66,20 @@ UInt_t AliHLTPredictionProcessorHLT::makePrediction(Bool_t doPrediction) {
 void AliHLTPredictionProcessorHLT::Initialize(Int_t run, UInt_t startTime, 
                        UInt_t endTime) {
        // initializes AliHLTPredictionProcessorHLT
-       mRun = run;
-       mStartTime = startTime;
-       mEndTime = endTime;
+       fRun = run;
+       fStartTime = startTime;
+       fEndTime = endTime;
 
        TString msg("Initialized HLT PredictProc. Run: ");
-       msg += mRun;
+       msg += fRun;
        msg += ", start time: ";
-       msg += mStartTime;
+       msg += fStartTime;
        msg += ", end time: ";
-       msg += mEndTime;
+       msg += fEndTime;
        msg += ".";     
        Log(msg.Data());
 
-       if (mPredict) {
+       if (fPredict) {
                Log("HLT PredictProc has prediction switched ON.");
        } else {
                Log("Prediction is switched OFF.");
@@ -109,7 +110,7 @@ UInt_t AliHLTPredictionProcessorHLT::Process(TMap* dcsAliasMap) {
   TString comment("BField");
   AliCDBMetaData meta(this->GetName(), 0, "unknownAliRoot",comment.Data());
   
-  if (Store(path2.Data(),path3.Data(),(TObject*) &mBField,&meta,start,kTRUE)) {
+  if (Store(path2.Data(),path3.Data(),(TObject*) &fBField,&meta,start,kTRUE)) {
     Log(" +++ Successfully stored object ;-)");
   } else {
     Log(" *** Storing of OBJECT failed!!");
@@ -130,12 +131,12 @@ UInt_t AliHLTPredictionProcessorHLT::ExtractBField(TMap* dcsAliasMap){
   if(bRet){
        // new   
     BField = BField/60000; // If we get field, take this away and change SensorValue
-    TString dummy("-solenoidBz");
+    TString dummy("-solenoidBz ");
     dummy += BField;
     TObjString dummy2(dummy.Data());
-    mBField = dummy2;
+    fBField = dummy2;
        
-    Log(Form("BField set to %s",mBField.String().Data()));
+    Log(Form("BField set to %s",fBField.String().Data()));
     return 0; 
   }
   
@@ -172,7 +173,7 @@ TMap* AliHLTPredictionProcessorHLT::produceTestData(TString aliasName) {
     resultMap = new TMap();
     TTimeStamp tt;
        Float_t fval = 33.3;
-    TObjString* name = new TObjString("DummyData");
+    TObjString* name = new TObjString("L3Current");
     AliDCSValue* val = new AliDCSValue(fval, tt.GetTime());
     TObjArray* arr = new TObjArray();
     arr->Add(val);
index 2ce6c2f39427157ca1b9a6fbda423e18af46dab0..3c55bd0ea7573278b8f642af2a3d5282bfad5381 100644 (file)
@@ -133,31 +133,30 @@ class AliHLTPredictionProcessorHLT : public AliHLTPredictionProcessorInterface {
                AliHLTPredictionProcessorHLT& operator=(
                                                const AliHLTPredictionProcessorHLT& rhs);
 
-
-               /**
-                * TObjstring which stores the B-field value
-                */
-               TObjString mBField;  // TObjstring which stores the B-field value
-
                /**
                 * Stores if prediction shall be made
                 */
-               Bool_t mPredict;  // flag for prediction making
+               Bool_t fPredict;  // flag for prediction making
 
                /**
                 * Stores the run number
                 */
-               Int_t mRun;  // Stores the run number
+               Int_t fRun;  // Stores the run number
        
                /**
                 * Stores the start time of the to process DCS data
                 */     
-               UInt_t mStartTime;  // Stores the start time of the to process DCS data
+               UInt_t fStartTime;  // Stores the start time of the to process DCS data
        
                /**
                 * Stores the end time of the to process DCS data
                 */     
-               UInt_t mEndTime;  // Stores the end time of the to process DCS data
+               UInt_t fEndTime;  // Stores the end time of the to process DCS data
+
+        /**
+                * TObjstring which stores the B-field value
+                */
+               TObjString fBField;  // TObjstring which stores the B-field value
 
                /**
                 * Function to extract the B-field from the DCS value map
@@ -179,7 +178,7 @@ class AliHLTPredictionProcessorHLT : public AliHLTPredictionProcessorInterface {
                 */
                Bool_t GetSensorValue(TMap* dcsAliasMap,const char* stringId, Float_t * value);
                
-               ClassDef(AliHLTPredictionProcessorHLT, 0);
+               ClassDef(AliHLTPredictionProcessorHLT, 1);
        
 };