Skip to content
Permalink
Browse files

berm

  • Loading branch information...
London Cooper-troendle
London Cooper-troendle committed Jun 17, 2019
2 parents 43d9127 + 736613b commit 7c3fc80bf131e5d21f1955f4e9f4430f3955148f
@@ -49,3 +49,7 @@
[submodule "paal"]
path = paal
url = https://github.com/BNLIF/wire-cell-paal.git
[submodule "3dst"]
path = 3dst
url = https://github.com/BNLIF/wire-cell-3dst.git
branch = master
1 3dst
Submodule 3dst added at df7e1a
@@ -12,10 +12,24 @@ using namespace std;
int main(int argc, char* argv[])
{
if (argc < 4) {
cerr << "usage: wire-cell-uboone /path/to/ChannelWireGeometry.txt /path/to/celltree.root eve_num " << endl;
cerr << "usage: wire-cell-uboone /path/to/ChannelWireGeometry.txt /path/to/celltree.root eve_num -i[0,1] -d[0,1,2]" << endl;
return 1;
}
TH1::AddDirectory(kFALSE);

int imagingoutput = 0;
int datatier = 0; // data=0, overlay=1, full mc=2
for(Int_t i=4; i!=argc; i++){
switch(argv[i][1]){
case 'i':
imagingoutput = atoi(&argv[i][2]);
break;
case 'd':
datatier = atoi(&argv[i][2]);
break;
}
}

WireCellSst::GeomDataSource gds(argv[1]);
std::vector<double> ex = gds.extent();
cerr << "Extent: "
@@ -35,9 +49,14 @@ int main(int argc, char* argv[])

const char* root_file = argv[2];
int eve_num = atoi(argv[3]);
// WireCell2dToy::ToyLightReco uboone_flash(root_file);
WireCell2dToy::ToyLightReco uboone_flash(root_file, false, true);
//WireCell2dToy::ToyLightReco uboone_flash(root_file, true, false);

bool use_imagingoutput = false;
if(imagingoutput==1) use_imagingoutput = true;
bool use_overlayinput = false;
if(datatier==1) use_overlayinput = true;
bool use_remap_channel = false;
if(datatier==2) use_remap_channel = true;
WireCell2dToy::ToyLightReco uboone_flash(root_file,use_imagingoutput,use_overlayinput,use_remap_channel);

uboone_flash.load_event_raw(eve_num);
TFile *file1 = new TFile(root_file);

0 comments on commit 7c3fc80

Please sign in to comment.
You can’t perform that action at this time.