Changeset 4878


Ignore:
Timestamp:
09/07/04 11:53:09 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/macros/sql
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/sql/fillcalib.C

    r4870 r4878  
    5757#include <iostream>
    5858
     59#include <TEnv.h>
    5960#include <TRegexp.h>
    6061
     
    151152void fillcallisto(TString fname, Bool_t dummy=kTRUE)
    152153{
    153     MSQLServer serv("mysql://hercules:d99swMT!@localhost");
     154    TEnv env("sql.rc");
     155
     156    MSQLServer serv(env);
    154157    if (!serv.IsConnected())
    155158    {
  • trunk/MagicSoft/Mars/macros/sql/filldotraw.C

    r4870 r4878  
    5757#include <iostream>
    5858
     59#include <TEnv.h>
    5960#include <TFile.h>
    6061#include <TTree.h>
     
    163164void filldotraw(TString fname, Bool_t dummy=kTRUE)
    164165{
    165     MSQLServer serv("mysql://hercules:d99swMT!@localhost");
     166    TEnv env("sql.rc");
     167
     168    MSQLServer serv(env);
    166169    if (!serv.IsConnected())
    167170    {
  • trunk/MagicSoft/Mars/macros/sql/filldotrbk.C

    r4869 r4878  
    6363#include <fstream>
    6464
     65#include <TEnv.h>
    6566#include <TRegexp.h>
    6667
     
    213214int filldotrbk(TString path="/data/MAGIC/Period017/ccdata", Bool_t dummy=kTRUE)
    214215{
    215     MSQLServer serv("mysql://hercules:d99swMT!@localhost");
     216    TEnv env("sql.rc");
     217
     218    MSQLServer serv(env);
    216219    if (!serv.IsConnected())
    217220    {
  • trunk/MagicSoft/Mars/macros/sql/filldotrun.C

    r4869 r4878  
    7171#include <fstream>
    7272
     73#include <TEnv.h>
    7374#include <TMath.h>
    7475#include <TRegexp.h>
     
    400401int filldotrun(const TString path="/data/MAGIC/Period018/ccdata", Bool_t dummy=kTRUE)
    401402{
    402     MSQLServer serv("mysql://hercules:d99swMT!@localhost");
     403    TEnv env("sql.rc");
     404
     405    MSQLServer serv(env);
    403406    if (!serv.IsConnected())
    404407    {
Note: See TracChangeset for help on using the changeset viewer.