Skip to content

Commit

Permalink
update NuMI timing
Browse files Browse the repository at this point in the history
  • Loading branch information
lastgeorge committed Feb 24, 2021
1 parent 4a0980c commit 4382ee0
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion pid
4 changes: 2 additions & 2 deletions uboone_nusel_app/apps/dev-wire-cell-tpc-light.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,8 @@ int main(int argc, char* argv[])
double lowerwindow = 0., upperwindow = 0.;
if(datatier==0 && ((triggerbits>>11) & 1U)){ lowerwindow=3.1875; upperwindow=4.96876; } // BNB
if(datatier==0 && ((triggerbits>>12) & 1U)){ lowerwindow=4.9295; upperwindow=16.6483; } // NUMI
if ( ((datatier==0 && ((triggerbits>>9) & 1U)) || datatier==1 )&&time_offset<7){ lowerwindow=3.5625; upperwindow=5.34376; } // EXT, overlay
if ( ((datatier==0 && ((triggerbits>>9) & 1U)) || datatier==1) && time_offset >= 7 ){ lowerwindow=5.3045; upperwindow=17.0233; } // EXTNUMI, overlay
if ( ((datatier==0 && ((triggerbits>>9) & 1U)) || datatier==1 )&&time_offset != 3){ lowerwindow=3.5625; upperwindow=5.34376; } // EXT, overlay
if ( ((datatier==0 && ((triggerbits>>9) & 1U)) || datatier==1) && time_offset == 3 ){ lowerwindow=5.3045; upperwindow=17.0233; } // EXTNUMI, overlay
if (datatier==2){ lowerwindow=3.1718; upperwindow=4.95306; } // full mc

uboone_flash.load_event_raw(0,lowerwindow,upperwindow);
Expand Down
4 changes: 2 additions & 2 deletions uboone_nusel_app/apps/prod-nusel-eval.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,8 @@ int main(int argc, char* argv[])
double lowerwindow = 0., upperwindow = 0.;
if(datatier==0 && ((triggerbits>>11) & 1U)){ lowerwindow=3.1875; upperwindow=4.96876; } // BNB
if(datatier==0 && ((triggerbits>>12) & 1U)){ lowerwindow=4.9295; upperwindow=16.6483; } // NUMI
if(((datatier==0 && ((triggerbits>>9) & 1U)) || datatier==1) && time_offset<7){ lowerwindow=3.5625; upperwindow=5.34376; } // BNB EXT & overlay
if( ((datatier==0 && ((triggerbits>>9) & 1U)) || datatier==1) && time_offset >= 7 ){ lowerwindow=5.3045; upperwindow=17.0233; } // EXTNUMI, overlay
if(((datatier==0 && ((triggerbits>>9) & 1U)) || datatier==1) && time_offset != 3){ lowerwindow=3.5625; upperwindow=5.34376; } // BNB EXT & overlay
if( ((datatier==0 && ((triggerbits>>9) & 1U)) || datatier==1) && time_offset == 3 ){ lowerwindow=5.3045; upperwindow=17.0233; } // EXTNUMI, overlay
if(datatier==2){ lowerwindow=3.1718; upperwindow=4.95306; } // full mc

WCP2dToy::ToyLightReco uboone_flash(filename, 1, datatier);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,8 @@ int main(int argc, char* argv[])
double lowerwindow = 0., upperwindow = 0.;
if(datatier==0 && ((triggerbits>>11) & 1U)){ lowerwindow=3.1875; upperwindow=4.96876; } // BNB
if(datatier==0 && ((triggerbits>>12) & 1U)){ lowerwindow=4.9295; upperwindow=16.6483; } // NUMI
if( ((datatier==0 && ((triggerbits>>9) & 1U)) || datatier==1)&&time_offset < 7 ){ lowerwindow=3.5625; upperwindow=5.34376; } // EXT, overlay
if( ((datatier==0 && ((triggerbits>>9) & 1U)) || datatier==1) && time_offset >= 7 ){ lowerwindow=5.3045; upperwindow=17.0233; } // EXTNUMI, overlay
if( ((datatier==0 && ((triggerbits>>9) & 1U)) || datatier==1)&&time_offset !=3 ){ lowerwindow=3.5625; upperwindow=5.34376; } // EXT, overlay
if( ((datatier==0 && ((triggerbits>>9) & 1U)) || datatier==1) && time_offset == 3 ){ lowerwindow=5.3045; upperwindow=17.0233; } // EXTNUMI, overlay
if(datatier==2){ lowerwindow=3.1718; upperwindow=4.95306; } // full mc

WCP2dToy::ToyLightReco uboone_flash(filename,true,datatier);
Expand Down
4 changes: 2 additions & 2 deletions uboone_nusel_app/apps/prod-wire-cell-matching-nusel.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,8 @@ int main(int argc, char* argv[])
double lowerwindow = 0., upperwindow = 0.;
if(datatier==0 && ((triggerbits>>11) & 1U)){ lowerwindow=3.1875; upperwindow=4.96876; } // BNB
if(datatier==0 && ((triggerbits>>12) & 1U)){ lowerwindow=4.9295; upperwindow=16.6483; } // NUMI
if( ((datatier==0 && ((triggerbits>>9) & 1U)) || datatier==1) && time_offset < 7 ){ lowerwindow=3.5625; upperwindow=5.34376; } // EXTBNB, overlay
if( ((datatier==0 && ((triggerbits>>9) & 1U)) || datatier==1) && time_offset >= 7 ){ lowerwindow=5.3045; upperwindow=17.0233; } // EXTNUMI, overlay
if( ((datatier==0 && ((triggerbits>>9) & 1U)) || datatier==1) && time_offset != 3 ){ lowerwindow=3.5625; upperwindow=5.34376; } // EXTBNB, overlay
if( ((datatier==0 && ((triggerbits>>9) & 1U)) || datatier==1) && time_offset == 3 ){ lowerwindow=5.3045; upperwindow=17.0233; } // EXTNUMI, overlay

if(datatier==2){ lowerwindow=3.1718; upperwindow=4.95306; } // full mc

Expand Down
4 changes: 2 additions & 2 deletions uboone_nusel_app/apps/test_neutrino.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ int main(int argc, char* argv[])
//enlarge window ...
if ((triggerbits>>11) & 1U) { lowerwindow=3.1875; upperwindow=4.96876;} // bnb
if ((triggerbits>>12) & 1U) { lowerwindow=4.9295; upperwindow=16.6483;}
if (((triggerbits>>9) & 1U) && time_offset < 7) { lowerwindow=3.5625; upperwindow=5.34376; } //extbnb
if (((triggerbits>>9) & 1U) && time_offset >= 7) {lowerwindow=5.3045; upperwindow=17.0233;} // EXTNUMI
if (((triggerbits>>9) & 1U) && time_offset !=3) { lowerwindow=3.5625; upperwindow=5.34376; } //extbnb
if (((triggerbits>>9) & 1U) && time_offset ==3) {lowerwindow=5.3045; upperwindow=17.0233;} // EXTNUMI


float energy_nu = 0;
Expand Down
4 changes: 2 additions & 2 deletions uboone_nusel_app/apps/test_stm.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ int main(int argc, char* argv[])
//enlarge window ...
if((triggerbits>>11) & 1U) { lowerwindow=3.1875; upperwindow=4.96876;} // bnb
if ((triggerbits>>12) & 1U) { lowerwindow=4.9295; upperwindow=16.6483;} // NUMI
if(((triggerbits>>9) & 1U)&& time_offset < 7) { lowerwindow=3.5625; upperwindow=5.34376; } //extbnb
if (((triggerbits>>9) & 1U) && time_offset >= 7) {lowerwindow=5.3045; upperwindow=17.0233;} // EXTNUMI
if(((triggerbits>>9) & 1U)&& time_offset != 3) { lowerwindow=3.5625; upperwindow=5.34376; } //extbnb
if (((triggerbits>>9) & 1U) && time_offset == 3) {lowerwindow=5.3045; upperwindow=17.0233;} // EXTNUMI

TTree *T_match = (TTree*)file1->Get("T_match");
Int_t tpc_cluster_id;
Expand Down
4 changes: 2 additions & 2 deletions uboone_nusel_app/apps/test_tgm.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ int main(int argc, char* argv[])
//enlarge window ...
if((triggerbits>>11) & 1U) { lowerwindow = 3.0; upperwindow = 5.0; }// bnb
if ((triggerbits>>12) & 1U) { lowerwindow=4.9295; upperwindow=16.6483;} //NUMI
if( ((triggerbits>>9) & 1U) && time_offset < 7) { lowerwindow = 3.45; upperwindow = 5.45; } // extbnb
if (((triggerbits>>9) & 1U) && time_offset >= 7) {lowerwindow=5.3045; upperwindow=17.0233;} // EXTNUMI
if( ((triggerbits>>9) & 1U) && time_offset != 3) { lowerwindow = 3.45; upperwindow = 5.45; } // extbnb
if (((triggerbits>>9) & 1U) && time_offset == 3) {lowerwindow=5.3045; upperwindow=17.0233;} // EXTNUMI

TTree *T_flash = (TTree*)file1->Get("T_flash");
Double_t time;
Expand Down
6 changes: 3 additions & 3 deletions uboone_nusel_app/apps/wire-cell-imaging-lmem-celltree.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ bool flashFilter(const char* file, int eve_num, unsigned int triggerbits, int ti

if ((triggerbits>>12) & 1U){ lowerwindow = 4.9295; upperwindow = 16.6483;} //NUMI

if (((triggerbits>>9) & 1U) && time_offset < 7) { lowerwindow = 3.45; upperwindow = 5.45; } // extbnb
if (((triggerbits>>9) & 1U) && time_offset >= 7){lowerwindow = 5.3045; upperwindow = 17.0233;} //EXTNUMI
if (((triggerbits>>9) & 1U) && time_offset != 3) { lowerwindow = 3.45; upperwindow = 5.45; } // extbnb
if (((triggerbits>>9) & 1U) && time_offset == 3){lowerwindow = 5.3045; upperwindow = 17.0233;} //EXTNUMI
if(type == 2 && time > lowerwindow && time < upperwindow)
{
beamspill = true;
Expand Down Expand Up @@ -277,7 +277,7 @@ int main(int argc, char* argv[])
int time_offset = 4; // Now the time offset is taken care int he signal processing, so we just need the overall offset ... // us ...
if (flag_numi!=0){
// remove NuMI offset ...
//time_offset = 11;
time_offset = 3; // use this weird Number to illustrate that this is NuMI not BNB ...
}

int run_no, subrun_no, event_no;
Expand Down

0 comments on commit 4382ee0

Please sign in to comment.