Changeset 242 in svn
- Timestamp:
- Feb 5, 2009, 11:53:26 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VeryForward.cc
r219 r242 21 21 VeryForward::VeryForward() { 22 22 DET = new RESOLution(); 23 beamline1 = new H_BeamLine(1,500.); 24 beamline2 = new H_BeamLine(1,500.); 23 25 init(); 26 //Initialisation of Hector 27 relative_energy = true; // should always be true 28 kickers_on = 1; // should always be 1 29 24 30 } 25 31 … … 27 33 DET = new RESOLution(); 28 34 DET->ReadDataCard(DetDatacard); 35 beamline1 = new H_BeamLine(1,500.); 36 beamline2 = new H_BeamLine(1,500.); 29 37 init(); 38 //Initialisation of Hector 39 relative_energy = true; // should always be true 40 kickers_on = 1; // should always be 1 41 30 42 } 31 43 32 44 VeryForward::VeryForward(const RESOLution * DetDatacard) { 33 45 DET = new RESOLution(*DetDatacard); 46 beamline2 = new H_BeamLine(1,500.); 47 beamline1 = new H_BeamLine(1,500.); 48 34 49 init(); 50 //Initialisation of Hector 51 relative_energy = true; // should always be true 52 kickers_on = 1; // should always be 1 53 35 54 } 36 55 … … 57 76 // user should provide : (1) optics file for each beamline, and IPname, 58 77 // and offset data (s,x) for optical elements 59 beamline1 = new H_BeamLine(1,500.);60 78 beamline1->fill("data/LHCB1IR5_v6.500.tfs",1,"IP5"); 61 79 beamline1->offsetElements(120,-0.097); 62 80 H_RomanPot * rp220_1 = new H_RomanPot("rp220_1",220,2000); // RP 220m, 2mm, beam 1 63 81 H_RomanPot * rp420_1 = new H_RomanPot("rp420_1",420,4000); // RP 420m, 4mm, beam 1 64 beamline1->add(rp220_1); 82 beamline1->add(rp220_1); 65 83 beamline1->add(rp420_1); 66 84 67 beamline2 = new H_BeamLine(1,500.);68 85 beamline2->fill("data/LHCB1IR5_v6.500.tfs",-1,"IP5"); 69 86 beamline2->offsetElements(120,+0.097); … … 72 89 beamline2->add(rp220_2); 73 90 beamline2->add(rp420_2); 74 91 // rp220_1, rp220_2, rp420_1 and rp420_2 will be deallocated in ~H_AbstractBeamLine 92 // do not put explicit delete 75 93 } 94 76 95 77 96 void VeryForward::ZDC(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchZDC,TRootGenParticle *particle)
Note:
See TracChangeset
for help on using the changeset viewer.