filename : filename for "LinkDef" or "*.set.root(ScanSet)" or "*.root(linked_track.root format)"
datatype : only for "LinkDef". Data type for EdbDataProc::InitVolume(). put -1 for no InitVolume
if datatype= 100 or 1000. linked tracks will be registred to "TS".
rcut : Track selection when read.
if filename is not given. open file browser.
2065 {
2070
2073 TGFileInfo *fi=new TGFileInfo;
2074 fi->fIniDir = StrDup(".");
2075 const char *filetypes[] = { "LinkDef", "*.def",
2076 "Linkeda Tracks", "*.root",
2077 "ScanSet", "*.set.root",
2078 "Feedback file","*.feedback*",
2079 "Mxx file","*.all",
2080 "All files","*",0,0};
2081 fi->fFileTypes=filetypes;
2082 new TGFileDialog(gClient->GetRoot(), 0, kFDOpen, fi);
2084 }
2085
2087
2088 if(gSystem->AccessPathName(
filename, kReadPermission)!=0) {
2089 printf(
"Error : %s is not found\n",
filename);
2090 return;
2091 }
2092
2093
2094
2097 if(
s.EndsWith(
".set.root")){
2098
2099 printf(
"EDA Start with Scan Set : %s\n",
s.Data());
2100
2106
2108
2110 int IsExist = gSystem->AccessPathName(
s2.Data(), kReadPermission);
2111 if( IsExist==kFALSE) {
2116 }
2117 else{
2119 }
2120 }
2121 else if(
s.EndsWith(
".def")){
2122
2123 printf(
"EDA Start with LinkDef : %s\n",
s.Data());
2127
2128 if(datatype>=0) {
2135 }
2136 }
2137 else if(
s.EndsWith(
".root")){
2138
2140 printf(
"EDA Start with Linked_track : %s\n",
s.Data());
2145 }
2146 else if(
s.EndsWith(
".feedback")){
2147
2149 printf(
"EDA Start with Feedback : %s\n",
s.Data());
2150 printf("Only for viewer!\n");
2152 }
2153 else if(
s.EndsWith(
".all")){
2154
2157 printf(
"EDA Start with Mxx file : %s\n",
filename);
2159
2163 }
2164
2165
2166
2167}
FILE * f
Definition: RecDispMC.C:150
emulsion data processing
Definition: EdbDataSet.h:181
int InitVolume(int datatype=0, const char *rcut="1")
Definition: EdbDataSet.cxx:2066
int GetPlateUp()
Definition: EdbEDA.h:237
void SetDataType(int datatype)
Definition: EdbEDA.h:235
void ReadFeedbackFile(char *filename=NULL)
Definition: EdbEDA.C:757
void SetUpstreamPlate(int ipl)
Definition: EdbEDATrackSet.h:92
EdbDataProc * ReadLinkedTracks(char *lnkdef="lnk.def", TCut cut="1")
Definition: EdbEDATrackSet.C:717
void ReadPredictionScan(int BRICK, int SBVERSION, int RUN_PRED, int UseMicrotrack=0)
Definition: EdbEDATrackSet.C:777
EdbPVRec * GetPVRec()
Definition: EdbEDATrackSet.h:320
void ReadTracksTree(char *scanset_filename, TCut cut="1")
Definition: EdbEDATrackSet.C:666
void SetScanSet(EdbScanSet *ss)
Definition: EdbEDATrackSet.h:470
EdbDataProc * ReadLinkedTracksFile(char *filename="linked_tracks.root", TCut cut="1")
Definition: EdbEDATrackSet.C:689
void SetJapanese(bool b=kTRUE)
Definition: EdbEDA.h:735
Definition: EdbPVRec.h:148
void MakeFileName(TString &s, int id[4], const char *suffix, bool inplate=true)
Definition: EdbScanProc.cxx:1819
Definition: EdbScanSet.h:11
TList eIDS
list of the identifiers to be processed
Definition: EdbScanSet.h:16
EdbSegP * s2
Definition: tlg2couples.C:30
EdbPVRec * ReadMxxPVR(char *filename=NULL)
Definition: EdbEDAUtil.C:1051