52 TEnv
cenv(
"alignenv");
55 const char *env =
cenv.GetValue(
"emalign.env" ,
"align.rootrc");
56 const char *
outdir =
cenv.GetValue(
"emalign.outdir" ,
"..");
68 for(
int i=1; i<argc; i++ ) {
71 if (!strncmp(key,
"-A=",3))
73 if(strlen(key)>3)
if(idA.
Set(key+3)) do_ida=
true;
75 else if (!strncmp(key,
"-B=",3))
77 if(strlen(key)>3)
if(idB.
Set(key+3)) do_idb=
true;
79 else if (!strncmp(key,
"-FA=",4))
81 if(strlen(key)>4) { fa=key+4; do_fa=
true; }
83 else if (!strncmp(key,
"-FB=",4))
85 if(strlen(key)>4) { fb=key+4; do_fb=
true; }
87 else if (!strncmp(key,
"-dz=",4))
89 if(strlen(key)>4)
DZ = atof(key+4);
91 else if(!strncmp(key,
"-v=",3))
99 cenv.SetValue(
"emalign.env" , env);
100 cenv.ReadFile(
cenv.GetValue(
"emalign.env" ,
"align.rootrc") ,kEnvLocal);
106 cenv.WriteFile(
"align.save.rootrc");
108 EdbAffine2D aff(
cenv.GetValue(
"emaligns2s.applyAff" ,
"1 0 0 1 0 0") );
111 printf(
"\n----------------------------------------------------------------------------\n");
113 printf(
"----------------------------------------------------------------------------\n\n");
118 printf(
"\n----------------------------------------------------------------------------\n");
119 printf(
"align %s and %s with dz = %f\n" ,fa, fb,
DZ);
120 printf(
"----------------------------------------------------------------------------\n\n");
125 cenv.WriteFile(
"align.save.rootrc");
Definition: EdbAffine.h:17
char * AsString() const
Definition: EdbID.cxx:24
bool Set(const char *id_string)
Definition: EdbID.cxx:17
Definition: EdbScanProc.h:12
int AlignNewCPFiles(const char *f1, const char *f2, TEnv &cenv, EdbAffine2D *aff=0, float dz=0)
Definition: EdbScanProc.cxx:520
int AlignNewNopar(EdbID id1, EdbID id2, TEnv &cenv, EdbAffine2D *aff=0, float dz=0)
Definition: EdbScanProc.cxx:485
TString eProcDirClient
Definition: EdbScanProc.h:14
EdbScanProc * sproc
Definition: comptonmap.cpp:29
void set_default(TEnv &cenv)
Definition: emaligns2s.cpp:29
void print_help_message()
Definition: emaligns2s.cpp:12
const char * outdir
Definition: emrec.cpp:37
gEDBDEBUGLEVEL
Definition: energy.C:7
float DZ
Definition: hwinit.C:66