Changeset 306 in svn
- Timestamp:
- Mar 9, 2009, 12:38:39 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Delphes.cpp
r305 r306 296 296 ExRootTreeBranch *branchMuon = treeWriter->NewBranch("Muon", TRootMuon::Class()); 297 297 ExRootTreeBranch *branchPhoton = treeWriter->NewBranch("Photon", TRootPhoton::Class()); 298 //ExRootTreeBranch *branchTracks = treeWriter->NewBranch("Tracks", TRootTracks::Class());299 298 ExRootTreeBranch *branchTrack = treeWriter->NewBranch("Tracks", TRootTracks::Class()); 300 299 ExRootTreeBranch *branchETmis = treeWriter->NewBranch("ETmis", TRootETmis::Class()); … … 318 317 vector<fastjet::PseudoJet> input_particles;//for FastJet algorithm 319 318 vector<fastjet::PseudoJet> sorted_jets; 320 //vector<TLorentzVector> TrackCentral;321 319 vector<TRootTracks> TrackCentral; 322 320 vector<PhysicsTower> towers; 323 //vector<ParticleUtil> electron;324 321 vector<D_Particle> electron; 325 //vector<ParticleUtil> muon;326 322 vector<D_Particle> muon; 327 //vector<ParticleUtil> gamma;328 323 vector<D_Particle> gamma; 329 324 … … 509 504 } 510 505 // 2.1a.2.5 : very forward detectors 511 else if (DET->FLAG_vfd==1) { 512 // for the moment, only protons are transported 513 // BUT !!! could be a beam of other particles! (heavy ions?) 514 // BUT ALSO !!! if very forward muons, or others! 515 VFD->RomanPots(treeWriter,branchRP220,branchFP420,particle); 516 VFD->ZDC(treeWriter,branchZDC,particle); 517 } 518 // 2.1a.2.6: Zero degree calorimeter 519 //else if(DET->FLAG_zdc==1) { 520 //VFD->ZDC(treeWriter,branchZDC,particle); 521 //} 506 else 507 { 508 if (DET->FLAG_RP==1) { 509 // for the moment, only protons are transported 510 // BUT !!! could be a beam of other particles! (heavy ions?) 511 // BUT ALSO !!! if very forward muons, or others! 512 VFD->RomanPots(treeWriter,branchRP220,branchFP420,particle); 513 } 514 // 2.1a.2.6: Zero degree calorimeter 515 if(DET->FLAG_vfd==1) { 516 VFD->ZDC(treeWriter,branchZDC,particle); 517 } 518 } 522 519 523 520 } // 2.1a.2 : if visible particle … … 579 576 elementElec->PhiCalo = electron[i].PhiCalo(); 580 577 elementElec->Charge = sign(electron[i].PID()); 581 //elementElec->IsolFlag = DET->Isolation(electron[i].Phi(),electron[i].Eta(),TrackCentral,2.0,0.5);//isolation based on tracks582 578 elementElec->IsolFlag = DET->Isolation(electron[i].Phi(),electron[i].Eta(),TrackCentral,DET->ISOL_PT,DET->ISOL_Cone);//isolation based on tracks 583 579 } /////////////// HARDCODING … … 589 585 elementMu->EtaCalo = muon[i].EtaCalo(); 590 586 elementMu->PhiCalo = muon[i].PhiCalo(); 591 //elementMu->IsolFlag = DET->Isolation(muon[i].Phi(),muon[i].Eta(),TrackCentral,2.0,0.5); /////////////// HARDCODING592 587 elementMu->IsolFlag = DET->Isolation(muon[i].Phi(),muon[i].Eta(),TrackCentral,DET->ISOL_PT,DET->ISOL_Cone); /////////////// HARDCODING 593 588 } -
trunk/data/DetectorCard.dat
r305 r306 71 71 FLAG_bfield 1 //1 to run the bfield propagation else 0 72 72 FLAG_vfd 1 //1 to run the very forward detectors else 0 73 FLAG_RP 1 //1 to run the very forward detectors else 0 73 74 FLAG_trigger 1 //1 to run the trigger selection else 0 74 75 FLAG_frog 1 //1 to run the FROG event display -
trunk/data/DetectorCard_ATLAS.dat
r305 r306 71 71 FLAG_bfield 1 // 1 to run the bfield propagation else 0 72 72 FLAG_vfd 1 // 1 to run the very forward detectors else 0 73 FLAG_RP 1 // 1 to run the very forward detectors else 0 73 74 FLAG_trigger 1 // 1 to run the trigger selection else 0 74 75 FLAG_frog 1 // 1 to run the FROG event display -
trunk/data/DetectorCard_CMS.dat
r305 r306 71 71 FLAG_bfield 1 //1 to run the bfield propagation else 0 72 72 FLAG_vfd 1 //1 to run the very forward detectors else 0 73 FLAG_RP 1 //1 to run the very forward detectors else 0 73 74 FLAG_trigger 1 //1 to run the trigger selection else 0 74 75 FLAG_frog 1 //1 to run the FROG event display -
trunk/interface/SmearUtil.h
r305 r306 192 192 int FLAG_bfield; //flag for bfield propagation 193 193 int FLAG_vfd; //flag for very forward detector 194 int FLAG_ zdc; //flag for very forward detector194 int FLAG_RP; //flag for very forward detector 195 195 196 196 int NEvents_Frog; -
trunk/src/SmearUtil.cc
r305 r306 119 119 FLAG_bfield = 1; //1 to run the bfield propagation else 0 120 120 FLAG_vfd = 1; //1 to run the very forward detectors else 0 121 FLAG_ zdc= 1; //1 to run the zero degree calorimeter else 0121 FLAG_RP = 1; //1 to run the zero degree calorimeter else 0 122 122 FLAG_trigger = 1; //1 to run the trigger selection else 0 123 123 FLAG_frog = 1; //1 to run the FROG event display … … 244 244 FLAG_bfield = DET.FLAG_bfield; 245 245 FLAG_vfd = DET.FLAG_vfd; 246 FLAG_ zdc = DET.FLAG_zdc;246 FLAG_RP = DET.FLAG_RP; 247 247 FLAG_trigger = DET.FLAG_trigger; 248 248 FLAG_frog = DET.FLAG_frog; … … 362 362 FLAG_bfield = DET.FLAG_bfield; 363 363 FLAG_vfd = DET.FLAG_vfd; 364 FLAG_ zdc = DET.FLAG_zdc;364 FLAG_RP = DET.FLAG_RP; 365 365 FLAG_trigger = DET.FLAG_trigger; 366 366 FLAG_frog = DET.FLAG_frog; … … 507 507 508 508 else if(strstr(temp_string.c_str(),"FLAG_vfd")) {curstring >> varname >> ivalue; FLAG_vfd = ivalue;} 509 else if(strstr(temp_string.c_str(),"FLAG_ zdc")) {curstring >> varname >> ivalue; FLAG_zdc= ivalue;}509 else if(strstr(temp_string.c_str(),"FLAG_RP")) {curstring >> varname >> ivalue; FLAG_RP = ivalue;} 510 510 else if(strstr(temp_string.c_str(),"FLAG_trigger")) {curstring >> varname >> ivalue; FLAG_trigger = ivalue;} 511 511 else if(strstr(temp_string.c_str(),"FLAG_frog")) {curstring >> varname >> ivalue; FLAG_frog = ivalue;} … … 606 606 << left << setw(10) <<CEN_max_mu <<""<< right << setw(15)<<"*"<<"\n"; 607 607 f_out<<"* *"<<"\n"; 608 if(FLAG_ vfd==1){609 f_out<<"#********************************** 610 f_out<<"# Very forward detector switched on*"<<"\n";611 f_out<<"#********************************** 608 if(FLAG_RP==1){ 609 f_out<<"#************************************ *"<<"\n"; 610 f_out<<"# Very forward Roman Pots switched on *"<<"\n"; 611 f_out<<"#************************************ *"<<"\n"; 612 612 f_out<<"* *"<<"\n"; 613 f_out << left << setw(55) <<"* Minimum very forward calorimeter: "<<"" 614 << left << setw(5) <<VFD_min_calo_vfd <<""<< right << setw(10)<<"*"<<"\n"; 615 f_out << left << setw(55) <<"* Maximum very forward calorimeter: "<<"" 616 << left << setw(5) <<VFD_max_calo_vfd <<""<< right << setw(10)<<"*"<<"\n"; 617 f_out << left << setw(55) <<"* Minimum coverage zero_degree calorimeter "<<"" 618 << left << setw(5) <<VFD_min_zdc <<""<< right << setw(10)<<"*"<<"\n"; 619 f_out << left << setw(55) <<"* Distance of the ZDC to the IP, in meters: "<<"" 620 << left << setw(5) <<VFD_s_zdc <<""<< right << setw(10)<<"*"<<"\n"; 621 f_out << left << setw(55) <<"* Distance of the RP to the IP, in meters: "<<"" 613 f_out << left << setw(55) <<"* Distance of the 220 RP to the IP in meters:"<<"" 622 614 << left << setw(5) <<RP_220_s <<""<< right << setw(10)<<"*"<<"\n"; 623 f_out << left << setw(55) <<"* Distance of the RP to the beam, in meters:"<<""615 f_out << left << setw(55) <<"* Distance of the 220 RP to the beam in meters:"<<"" 624 616 << left << setw(5) <<RP_220_x <<""<< right << setw(10)<<"*"<<"\n"; 625 f_out << left << setw(55) <<"* Distance of the RP to the IP, in meters:"<<""617 f_out << left << setw(55) <<"* Distance of the 420 RP to the IP in meters:"<<"" 626 618 << left << setw(5) <<RP_420_s <<""<< right << setw(10)<<"*"<<"\n"; 627 f_out << left << setw(55) <<"* Distance of the RP to the beam, in meters:"<<""619 f_out << left << setw(55) <<"* Distance of the 420 RP to the beam in meters:"<<"" 628 620 << left << setw(5) <<RP_420_x <<""<< right << setw(10)<<"*"<<"\n"; 629 621 f_out << left << setw(55) <<"* Interaction point at the LHC named: "<<"" … … 646 638 } 647 639 else { 648 f_out<<"#*********************************** 649 f_out<<"# Very forward detector switched off*"<<"\n";650 f_out<<"#*********************************** 640 f_out<<"#************************************* *"<<"\n"; 641 f_out<<"# Very forward Roman Pots switched off *"<<"\n"; 642 f_out<<"#************************************* *"<<"\n"; 651 643 f_out<<"* *"<<"\n"; 652 644 } 645 if(FLAG_vfd==1){ 646 f_out<<"#************************************** *"<<"\n"; 647 f_out<<"# Very forward calorimeters switched on *"<<"\n"; 648 f_out<<"#************************************** *"<<"\n"; 649 f_out<<"* *"<<"\n"; 650 f_out << left << setw(55) <<"* Minimum very forward calorimeter: "<<"" 651 << left << setw(5) <<VFD_min_calo_vfd <<""<< right << setw(10)<<"*"<<"\n"; 652 f_out << left << setw(55) <<"* Maximum very forward calorimeter: "<<"" 653 << left << setw(5) <<VFD_max_calo_vfd <<""<< right << setw(10)<<"*"<<"\n"; 654 f_out << left << setw(55) <<"* Minimum coverage zero_degree calorimeter "<<"" 655 << left << setw(5) <<VFD_min_zdc <<""<< right << setw(10)<<"*"<<"\n"; 656 f_out << left << setw(55) <<"* Distance of the ZDC to the IP, in meters: "<<"" 657 << left << setw(5) <<VFD_s_zdc <<""<< right << setw(10)<<"*"<<"\n"; 658 f_out<<"* *"<<"\n"; 659 } 660 else { 661 f_out<<"#*************************************** *"<<"\n"; 662 f_out<<"# Very forward calorimeters switched off *"<<"\n"; 663 f_out<<"#*************************************** *"<<"\n"; 664 f_out<<"* *"<<"\n"; 665 } 666 653 667 f_out<<"#************************************ *"<<"\n"; 654 668 f_out<<"# Electromagnetic smearing parameters *"<<"\n";
Note:
See TracChangeset
for help on using the changeset viewer.