Difference: AndreHolzner2006EcalH4Simulation (1 vs. 3)

Revision 32006-09-14 - AndreHolzner

Line: 1 to 1
 
META TOPICPARENT name="AndreHolzner2006EcalH4"

2006 Ecal H4 simulation notes

Line: 41 to 41
 ./prod_run.csh crystal1104.cff 120 5
Changed:
<
<

Useful root macros for SimHits

>
>

Useful root macro snippets for SimHits

 
Events->SetAlias("simhit","PCaloHits_SimG4Object_EcalHitsEB_ECALTBH4.obj");
Events->SetAlias("simhit_iphi","simhit.id() & 0x1ff");
Events->SetAlias("simhit_ieta","(simhit.id()  >> 9) & 0x7f");

Added:
>
>
Events->SetAlias("genpos","PEcalTBInfo_SimEcalTBG4Object__ECALTBH4.obj")
 

For Crystal 1104:

Line: 53 to 54
 Events->Draw("simhit.energy()","simhit_iphi = 17 && simhit_ieta = 56")
Added:
>
>
Drawing the simulated beam profile:
Events->Draw("genpos.evYbeam():genpos.evXbeam()")
 
Changed:
<
<
>
>
Energy and positions (for mips):
Events->Draw("simhit.energy():genpos.evXbeam()","simhit_iphi == 17 && simhit_ieta == 56 && simhit.energy() < 1");
Events->Draw("simhit.energy():genpos.evYbeam():genpos.evXbeam()","simhit_iphi == 17 && simhit_ieta == 56 && simhit.energy() < 1");
Events->Draw("simhit.energy()","simhit_iphi == 17 && simhit_ieta == 56 && simhit.energy() < 1 && abs(genpos.evXbeam()) < 5 && abs(genpos.evYbeam()) < 5");
 

-- AndreHolzner - 12 Sep 2006

Revision 22006-09-13 - AndreHolzner

Line: 1 to 1
 
META TOPICPARENT name="AndreHolzner2006EcalH4"

2006 Ecal H4 simulation notes

Added:
>
>
 

Recipe to install the software

Line: 18 to 24
  cvs update -r V00-00-06 Configuration/EcalTB scramv1 b
Added:
>
>

Get other files

  wget 'http://ecaltbh4sim.web.cern.ch/ecaltbh4sim/prod_run.csh'

Running the simulation

usage:
   ./prod_run.csh config_file beam_energy number_of_events
The config file is searched for in $CMSSW_BASE/src/SimG4CMS/EcalTestBeam/test/data/

e.g.

./prod_run.csh crystal1104.cff 120 5

Useful root macros for SimHits

Events->SetAlias("simhit","PCaloHits_SimG4Object_EcalHitsEB_ECALTBH4.obj");
Events->SetAlias("simhit_iphi","simhit.id() & 0x1ff");
Events->SetAlias("simhit_ieta","(simhit.id()  >> 9) & 0x7f");

For Crystal 1104:

Events->Draw("simhit.energy()","simhit_iphi == 17 && simhit_ieta == 56")

  -- AndreHolzner - 12 Sep 2006

Revision 12006-09-12 - AndreHolzner

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="AndreHolzner2006EcalH4"

2006 Ecal H4 simulation notes

Recipe to install the software

using "ECALTBH4, version: 0_1_0 + Configuration/EcalTB V00-00-06"

 scramv1 project -n ECALTBH4_0_1_0 CMSSW CMSSW_0_8_1
  cd ECALTBH4_0_1_0
  PackageManagement.pl --rel ECALTBH4_0_1_0
  cd src
  project CMSSW
  cvs update -r V00-00-06 Configuration/EcalTB
  scramv1 b

-- AndreHolzner - 12 Sep 2006

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback