Changeset 274 in svn
- Timestamp:
- Feb 16, 2009, 1:16:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Examples/Trigger_Only.cpp
r264 r274 50 50 using namespace std; 51 51 52 //------------------------------------------------------------------------------53 void todo(string filename) {54 ifstream infile(filename.c_str());55 cout << "** TODO list ..." << endl;56 while(infile.good()) {57 string temp;58 getline(infile,temp);59 cout << "*" << temp << endl;60 }61 cout << "** done...\n";62 }63 64 //------------------------------------------------------------------------------65 66 52 int main(int argc, char *argv[]) 67 53 { 68 54 int appargc = 2; 69 char *appName = "Trigger_Only"; 70 char *appargv[] = {appName, "-b"}; 55 char *appName= new char[20]; 56 char *appOpt= new char[20]; 57 sprintf(appName,"Trigger_Only"); 58 sprintf(appOpt,"-b"); 59 char *appargv[] = {appName,appOpt}; 71 60 TApplication app(appName, &appargc, appargv); 72 61 delete [] appName; 62 delete [] appOpt; 63 73 64 if(argc != 2 && argc !=3 ) { 74 65 cout << " Usage: " << argv[0] << " input_file output_file [detector_card] [trigger_card] " << endl; … … 94 85 95 86 //read the datacard input file 96 string TrigDatacard(" data/trigger.dat");87 string TrigDatacard(""); 97 88 if(argc==3) TrigDatacard =argv[2]; 98 89
Note:
See TracChangeset
for help on using the changeset viewer.