Add Far 80m Muon data file

From Daya Bay

Jump to: navigation, search

13dec11

  • Jilei added Mountain_Far_80m for actual far site
  • try to update to use it
offline-trunk> ./dybinst trunk external data
  • nope didn't download, try to force it
offline-trunk> rm -rf external/tarFiles/muondata-0.0.tgz external/build/LCG/muondata-0.0.tgz  external/data     
offline-trunk> ./dybinst trunk external data

offline-trunk> cd NuWa-trunk/
dayabay@bnlku24:NuWa-trunk>  svn co http://dayabay.ihep.ac.cn/svn/dybsvn/data

A    data/trunk
A    data/trunk/NewMuonGenerator
A    data/trunk/NewMuonGenerator/data
A    data/trunk/NewMuonGenerator/data/mountain_Far
A    data/trunk/NewMuonGenerator/data/mountain_Far_80m
A    data/trunk/NewMuonGenerator/data/mountain_LA
A    data/trunk/NewMuonGenerator/data/mountain_DYB
A    data/trunk/SimuAlg
A    data/trunk/SimuAlg/output
A    data/trunk/SimuAlg/output/inversebeta.output
A    data/trunk/SimuAlg/output/neutron.output
A    data/trunk/SimuAlg/output/muon.output
A    data/trunk/OldMuonGenerator
A    data/trunk/OldMuonGenerator/data
A    data/trunk/OldMuonGenerator/data/mu_plus_minus_ratio.root
A    data/trunk/OldMuonGenerator/data/muon10000evts
A    data/trunk/OldMuonGenerator/data/mountain_Far
A    data/trunk/OldMuonGenerator/data/mountain_LA
A    data/trunk/OldMuonGenerator/data/mountain_DYB
A    data/trunk/DryRunGenerator
A    data/trunk/DryRunGenerator/data
A    data/trunk/DryRunGenerator/data/GroundLevelmuonGenerator
Checked out revision 15328.
  • make tar file
trunk> cd NewMuonGenerator/data/
data> ls -lrt
total 578144
-rw-r--r--  1 dayabay  staff  74000248 Dec 13 08:45 mountain_Far
-rw-r--r--  1 dayabay  staff  74000248 Dec 13 08:45 mountain_Far_80m
-rw-r--r--  1 dayabay  staff  74000247 Dec 13 08:45 mountain_LA
-rw-r--r--  1 dayabay  staff  74000246 Dec 13 09:01 mountain_DYB
dayabay@bnlku24:data> tar -czvf muondata-0.0.tgz mountain_*
a mountain_DYB
a mountain_Far
a mountain_Far_80m
a mountain_LA
  • add tar file to cache
dayabay@bnlku24:data> scp muondata-0.0.tgz dayabay@dayabay.bnl.gov:~/public_html/software/offline/tarFiles/.
  • check that it works
offline-trunk> rm -rf external/tarFiles/muondata-0.0.tgz external/build/LCG/muondata-0.0.tgz  external/data
dayabay@bnlku24:offline-trunk> ./dybinst trunk external data
[snip]
  Installing data ... done with data
dayabay@bnlku24:offline-trunk> ls external/data/0.0/ 
Daq/              mountain_DYB      mountain_Far      mountain_Far_80m  mountain_LA    
  • WRONG! Want to preserve Muon/ directory in .tgz
  • here is original contents of external/data/0.0/Muon
offline-trunk> cd external/data/0.0/Muon/
GroundLevelmuonGenerator  mountain_DYB              mountain_Far              mountain_LA               mu_plus_minus_ratio.root  
  • some machinations to create Muon/ with proper contents
trunk> pwd
/Users/dayabay/offline-trunk/NuWa-trunk/data/trunk
trunk> mkdir Muon
dayabay@bnlku24:trunk> cd Muon/
dayabay@bnlku24:Muon> ln -s ../DryRunGenerator/data/GroundLevelmuonGenerator .
dayabay@bnlku24:Muon> ln -s ../NewMuonGenerator/data/mountain_* .
dayabay@bnlku24:Muon> ln -s ../OldMuonGenerator/data/mu_plus_minus_ratio.root .
dayabay@bnlku24:Muon> ls
GroundLevelmuonGenerator        mountain_DYB                    mountain_Far                    mountain_Far_80m                mountain_LA                     mu_plus_minus_ratio.root
dayabay@bnlku24:Muon> pwd
/Users/dayabay/offline-trunk/NuWa-trunk/data/trunk/Muon

trunk> tar -czHvf muondata-0.0.tgz Muon/*
a Muon/GroundLevelmuonGenerator
a Muon/mountain_DYB
a Muon/mountain_Far
a Muon/mountain_Far_80m
a Muon/mountain_LA
a Muon/mu_plus_minus_ratio.root
  • copy to repository
dayabay@bnlku24:trunk> scp muondata-0.0.tgz dayabay@dayabay.bnl.gov:~/public_html/software/offline/tarFiles/.
  • check that it works properly
dayabay@bnlku24:offline-trunk> rm -rf external/tarFiles/muondata-0.0.tgz external/build/LCG/muondata-0.0.tgz  external/data
dayabay@bnlku24:offline-trunk> ./dybinst trunk external data
[snip]

  Installing data ... done with data
dayabay@bnlku24:offline-trunk> ls external/data/0.0/
Daq/  Muon/ 
dayabay@bnlku24:offline-trunk> ls external/data/0.0/Muon/
GroundLevelmuonGenerator        mountain_DYB                    mountain_Far                    mountain_Far_80m                mountain_LA                     mu_plus_minus_ratio.root
  • OK. now update dybgaudi/Generators/Muon/app/muon_generator.cc .
  • done in r15329
  • Convention to maintain backward compatibility
    • Site=Far selects mountain_Far_80m
    • Site=Far_Orignal selects mountain_Far
Personal tools