37{
41 const char *
outdir =
cenv.GetValue(
"empred.outdir" ,
"..");
42
44
45 bool do_set1 = false;
46 bool do_set2 = false;
49
50 for(int i=1; i<argc; i++ ) {
51 char *key = argv[i];
52
53 if (!strncmp(key,"-set1=",6))
54 {
55 if(strlen(key)>6)
if(idset1.
Set(key+6)) do_set1=
true;
56 }
57 else if(!strncmp(key,"-set2=",6))
58 {
59 if(strlen(key)>6)
if(idset2.
Set(key+6)) do_set2=
true;
60 }
61 else if(!strncmp(key,"-plate=",7))
62 {
63 if(strlen(key)>4) {
plate = atoi(key+7); }
64 }
65 else if(!strncmp(key,"-o=",3))
66 {
67 if(strlen(key)>3)
outdir=key+3;
68 }
69 else if(!strncmp(key,"-v=",3))
70 {
72 }
73 }
74
76
77 cenv.ReadFile(
cenv.GetValue(
"empred.env" ,
"empred.rootrc") ,kEnvLocal);
79 cenv.WriteFile(
"empred.save.rootrc");
80
83 printf("\n----------------------------------------------------------------------------\n");
84 printf(
"prepare predictions %s for the plate %d\n", idset1.
AsString(),
plate );
85 printf("----------------------------------------------------------------------------\n\n");
86
88
89 TCut
cut =
cenv.GetValue(
"empred.trcut" ,
"nseg>2");
92
93 if(do_set2)
94 {
102 Log(1,
"empred",
"%d predictions found using cut %s",n,
cut.GetTitle());
103 }
104 else
105 {
110 Log(1,
"empred",
"%d predictions found using cut %s",n,
cut.GetTitle());
111 }
112
113 cenv.WriteFile(
"empred.save.rootrc");
114
115 return 1;
116}
bool Log(int level, const char *location, const char *fmt,...)
Definition: EdbLog.cxx:75
char * AsString() const
Definition: EdbID.cxx:26
bool Set(const char *id_string)
Definition: EdbID.cxx:19
Definition: EdbLayer.h:39
void SubstructCorrections(EdbLayer &la)
Definition: EdbLayer.cxx:102
void Print()
Definition: EdbLayer.cxx:149
Definition: EdbPVRec.h:148
TObjArray * eTracks
Definition: EdbPVRec.h:161
scanned data processing
Definition: EdbScanProc.h:12
bool ReadAffToLayer(EdbLayer &la, EdbID id1, EdbID id2)
Definition: EdbScanProc.cxx:65
int MakeTracksPred(TObjArray &tracks, EdbID id, EdbLayer &layer)
Definition: EdbScanProc.cxx:3265
int ReadTracksTree(EdbID id, EdbPVRec &ali, TCut cut="1")
Definition: EdbScanProc.cxx:604
TString eProcDirClient
directory path for root data
Definition: EdbScanProc.h:14
EdbScanSet * ReadScanSet(EdbID id)
Definition: EdbScanProc.cxx:1482
Definition: EdbScanSet.h:11
EdbPlateP * GetPlate(Int_t p)
Definition: EdbScanSet.h:56
EdbScanProc * sproc
Definition: comptonmap.cpp:29
void set_default(TEnv &cenv)
Definition: empred.cpp:27
void print_help_message()
Definition: empred.cpp:12
const char * outdir
Definition: emrec.cpp:37
TCut cut
Definition: check_shower.C:6
gEDBDEBUGLEVEL
Definition: energy.C:7
EdbPVRec * ali
Definition: test_oracle.C:9
Int_t plate
Definition: merge_Energy_SytematicSources_Electron.C:1