26{
27 cout<< "\nUsage: \n\t scan2db -file=bXXX_eYYY.scan2db.rootrc [-commit -v=V]\n";
28 cout<< "\t\t Assumed that feedbackfile name is like bBBBB_eEEEE.feedback as b010234_e11293015645.feedback\n";
29 cout<< "\t\t brick id and event id extracted from the file name are used for data insertion into db\n";
30
31 cout<< "\n\t scan2db -file=bXXX_eYYY.scan2db.rootrc -makesets \n";
32 cout<< "\t\t make *.set.root files for the involved datasets (use default OPERA geometry settings)\n";
33
34 cout<< "\n\t scan2db -checkbrick=BRICK \n";
35 cout<< "\t\t check if the brick structure was already loaded";
36
37 cout<< "\n\t scan2db -publicate=BRICK \n";
38 cout<< "\t\t replicate brick in opfra";
39
40 cout<< "\n\n\t-----------------------------------------------------------------------------------------";
41 cout<< "\n\t By default the application is started in test mode and does not commit transactions";
42 cout<< "\n\t TO LOAD DATA USE -commit OPTION";
43 cout<< "\n\t-------------------------------------------------------------------------------------------";
44
45 cout<< "\n\n\t If the input parameters file (scan2db.rootrc) is not present in the current dir - the default";
46 cout<< "\n\t parameters used. After the execution them are saved into scan2db.save.rootrc file\n";
47
48 cout<< "\n\t Options: \n";
49 cout<< "\t\t -v=V verbosity level (0-4) \n";
50
51 cout <<"\nExample of b010234_e11293015645.feedback file:\n";
52 cout <<"\
53##-------------------------------------------------------------\n\
54## - EventBrick operations and datasets definitions\n\
55## - Used by scan2db as the input cards\n\
56## - To be placed into the brick folder as\n\
57## \"bXXXXXX_eYYYYYYYYYYY.scan2db.rootrc\" (b102143_e12186044883.scan2db.rootrc)\n\
58## - All datasets should be correctly assembled using\n\
59## the \"makescanset\" application before scan2db starts (*.set.root)\n\
60##\n\
61## scan2db.X_MARKS:\n\
62## 2=in case lateral X-rays marks, followed by a calibration scan;\n\
63## 1=in case lateral X-rays marks only;\n\
64## 0=calibration scan only\n\
65##\n\
66## scan2db.BlackCS:\n\
67## 1 - fill TB_SCANBACK_PATHS only\n\
68## 0 - try to fill also TB_B_CSCANDS_SBPATHS\n\
69##\n\
70## scan2db.VOLUME.IDPATH:\n\
71## <0 - (default) do not connect path and volume (table TB_B_SBPATHS_VOLUMES). This is useful when volume\n\
72## was scanned because of a vertex hunting and not because it's related to a SB track\n\
73## >=0 - is prediction path id to be connected\n\
74##\n\
75##-------------------------------------------------------------\n\
76scan2db.X_MARKS: 1\n\
77scan2db.BlackCS: 1\n\
78scan2db.CALIBRATION: 76735.0.1.1000\n\
79scan2db.CALIBRATION.raw: 0\n\
80scan2db.PREDICTION: 76735.0.1.100\n\
81scan2db.VOLUME: 76735.0.1.1000\n\
82scan2db.VOLUME.IDPATH: 1\n";
83
84 cout<<endl;
85}