rootlogon.C 1.38 KB
Newer Older
1
{
2 3
    TString pathToLibs = "../build/lib/";
    // TString pathToLibs = "../";
4
    
5 6 7 8
    TString pathToTELoss = pathToLibs + "libTELoss.so";
    TString pathToAculData = pathToLibs + "libAculData.so";
    TString pathToUtilities = pathToLibs + "libUtilities.so";
    TString pathToAculCalib = pathToLibs + "libAculCalib.so";
9

10
    //libTELoss.so loading
11 12 13
    Int_t teloss = gSystem->Load(pathToTELoss);
    if (teloss==0) Info("rootlogon.C", "Library %s was successfully loaded.", pathToTELoss.Data());
    else Error("rootlogon.C", "Some error with %s loading", pathToTELoss.Data());
14 15 16 17 18

    //libAculData.so loading
    Int_t aculdata = gSystem->Load(pathToAculData);
    if (aculdata==0) Info("rootlogon.C", "Library %s was successfully loaded.", pathToAculData.Data());
    else Error("rootlogon.C", "Some error with %s loading", pathToAculData.Data());
19 20 21 22 23 24 25 26 27 28

    //libUtilities.so loading
    Int_t utilities = gSystem->Load(pathToUtilities);
    if (utilities==0) Info("rootlogon.C", "Library %s was successfully loaded.", pathToUtilities.Data());
    else Error("rootlogon.C", "Some error with %s loading", pathToUtilities.Data());

    //libAculCalib.so loading
    Int_t aculcalib = gSystem->Load(pathToAculCalib);
    if (aculcalib==0) Info("rootlogon.C", "Library %s was successfully loaded.", pathToAculCalib.Data());
    else Error("rootlogon.C", "Some error with %s loading", pathToAculCalib.Data());
29 30
    
}