Difference: Shiyuan-HGCal (1 vs. 18)

Revision 182014-11-06 - ShiyuanXu

Line: 1 to 1
 
META TOPICPARENT name="ShiyuanXu"
Deleted:
<
<
 

Introduction

Changed:
<
<
A design and information of the HGCal can be found in https://twiki.cern.ch/twiki/bin/viewauth/CMS/PFForwardCalorimeterStudies
>
>
A design and information of the HGCal can be found in https://twiki.cern.ch/twiki/bin/viewauth/CMS/PFForwardCalorimeterStudies
 

Prerequisite

Setup CMSSW in SL6 machines:

Line: 27 to 27
 scram b
Deleted:
<
<
 

Repositories:

CERN

Changed:
<
<
We are using the repository for HGCal Geant4 standalone simulations located at https://github.com/pfs/PFCal/tree/master/PFCalEE/analysis, this can be obtained by doing:
>
>
We are using the repository for HGCal Geant4 standalone simulations located at https://github.com/pfs/PFCal/tree/master/PFCalEE/analysis, this can be obtained by doing:
 
git init

git remote add origin https://github.com/pfs/PFCal/tree/master/PFCalEE

Line: 61 to 62
 make -j 5
Deleted:
<
<
 

FNAL

In the cmslpc (SL6) is possible that the setting up of the environment doesn't work, it is required to connect to a SL6 note

Line: 88 to 88
  mkdir -p userlib/{lib,obj,bin} && cd userlib && make dictionary && make -j 5 && cd - && make -j 5
Deleted:
<
<
 

Generation of events

The code submitProd.py is created to submit jobs in parallel to the batch system (using LSF), to run do:

Line: 130 to 132
  For a complete code of the particles in Geant4 see:
Changed:
<
<
http://geant4.cern.ch/G4UsersDocuments/UsersGuides/ForApplicationDeveloper/html/TrackingAndPhysics/particle.html
>
>
http://geant4.cern.ch/G4UsersDocuments/UsersGuides/ForApplicationDeveloper/html/TrackingAndPhysics/particle.html
 
Deleted:
<
<
 

Analysis

Deleted:
<
<
 

outputs

A sample of the results are presented in the root files attached

Line: 160 to 160
  ln -s ~/work/PFCal/PFCalEE/userlib/include .
Deleted:
<
<
 At the moment of start root, some libraries need to be loaded(everytime start root):

gSystem->Load("~/work/PFCal/PFCalEE/userlib/lib/libPFCalEEuserlib.so");

Line: 173 to 171
 HGcal t;

t.Loop();

Changed:
<
<
>
>
 
  The output of this script will be a root file that contains all the desired histograms, plus some .txt files with information about the events
Line: 202 to 201
  As a sample of the results the Z-X profile of the detector under the action of the different particle guns can be found in the attached files.
Deleted:
<
<
 

Geometry Visualization

To visualize the geometry that is used for the standalone simulation the files DetectorConstruction.cc (~/.../PFCalEE/src) and DetectorCosntruction.hh (~/.../PFCalEE/include) contains the information of all the available geometries, e.g:

Line: 258 to 261
  A sample and a complete geometry construction for the HGCalHe-CALICE (like) can be found in the attached files.
Deleted:
<
<
 

HGcal Particle Flow Reconstruction

Changed:
<
<

pandora PFA recipe for developers

>
>

use fireworks to display under CMSSW

  do it in slc6:
Line: 288 to 290
  scram b -j 9
Changed:
<
<
>
>
To run the file: cmsShow -c ${CMSSW_BASE}/src/RecoParticleFlow/PFClusterProducer/test/hgcal_rechits.fwc -g /afs/cern.ch/user/l/lgray/work/public/xHGCAL/cmsRecoGeom1-HGCAL.root --sim-geom-file /afs/cern.ch/user/l/lgray/work/public/xHGCAL/cmsSimGeom-14-HGCAL.root /afs/cern.ch/user/l/lgray/work/public/CMSSW_6_2_X_SLHC_2014-07-17-0200/src/matrix_tests/simple_jet_gun/step3.root
 
META FILEATTACHMENT attachment="CALICESIMPLE20.eps" attr="" comment="if model=SIMPLE20 then m_CalorSizeXY=200" date="1404307471" name="CALICESIMPLE20.eps" path="CALICESIMPLE20.eps" size="165851" user="shxu" version="1"
META FILEATTACHMENT attachment="CALICEFULLSECTION.eps" attr="" comment="if model = FULLSECTION then m_minRadius=150 m_maxRadius=m_CalorSizeXY=1700" date="1404307616" name="CALICEFULLSECTION.eps" path="CALICEFULLSECTION.eps" size="1339110" user="shxu" version="1"

Revision 132014-10-29 - ShiyuanXu

Line: 1 to 1
 
META TOPICPARENT name="ShiyuanXu"
Changed:
<
<
 
>
>
 

Introduction

A design and information of the HGCal can be found in https://twiki.cern.ch/twiki/bin/viewauth/CMS/PFForwardCalorimeterStudies

Line: 27 to 27
 scram b
Changed:
<
<
 
>
>
 

Repositories:

CERN

Changed:
<
<
♦We are using the repository for HGCal Geant4 standalone simulations located at https://github.com/pfs/PFCal/tree/master/PFCalEE/analysis, this can be obtained by doing:
>
>
We are using the repository for HGCal Geant4 standalone simulations located at https://github.com/pfs/PFCal/tree/master/PFCalEE/analysis, this can be obtained by doing:
 
git init

git remote add origin https://github.com/pfs/PFCal/tree/master/PFCalEE

Line: 41 to 41
 cd PFCal/PFCalEE/
Changed:
<
<
♦To set up the environment and compile (SL6 machines), go to the PFCalEE directory and run:
>
>
To set up the environment and compile (SL6 machines), go to the PFCalEE directory and run:
 
cd PFCal/PFCalEE

source g4env.sh

Line: 61 to 61
 make -j 5
Changed:
<
<
 
>
>
 

FNAL

Changed:
<
<
♦In the cmslpc (SL6) is possible that the setting up of the environment doesn't work, it is required to connect to a SL6 note
>
>
In the cmslpc (SL6) is possible that the setting up of the environment doesn't work, it is required to connect to a SL6 note
  ssh cmslpc41.fnal.gov
Changed:
<
<
♦After this, copy the repository to your working area
>
>
After this, copy the repository to your working area
  cd workdir
git init
git remote add origin https://github.com/pfs/PFCal/tree/master/PFCalEE
git clone https://github.com/pfs/PFCal
cd PFCal/PFCalEE/
Changed:
<
<
♦Updated to the desired git tag version
>
>
Updated to the desired git tag version
  git tag
git fetch --all
git checkout (-f) Version
Changed:
<
<
♦Setup the environment (bash)
>
>
Setup the environment (bash)
  cp /uscms/home/yumiceva/work/HGCal/PFCal/PFCalEE/g4env_fnal.sh .
bash
source g4env_fnal.sh
Changed:
<
<
♦Setup the environment (csh)
>
>
Setup the environment (csh)
  cp /uscms/home/yumiceva/work/HGCal/PFCal/PFCalEE/g4env_fnal.csh .
rehash
source g4env_fnal.csh
Changed:
<
<
♦Compile the files
>
>
Compile the files
  mkdir -p userlib/{lib,obj,bin} && cd userlib && make dictionary && make -j 5 && cd - && make -j 5
Changed:
<
<
 
>
>
 

Generation of events

Changed:
<
<
♦The code submitProd.py is created to submit jobs in parallel to the batch system (using LSF), to run do:
>
>
The code submitProd.py is created to submit jobs in parallel to the batch system (using LSF), to run do:
 
python submitProd.py -options
Changed:
<
<
♦In case of options conflicts it can be used also:
>
>
In case of options conflicts it can be used also:
 
./submitProd.py -options

Changed:
<
<
♦The options for the code are:
>
>
The options for the code are:
 
  • -n : Number of events to generate (default 1000)
  • -g : Use particle gun
  • -d : Data or type of particle to shoot (default e-)
Line: 118 to 118
 
  • -S : Not submit batch job

Particle Gun

Changed:
<
<
♦To run this example modify the submitProd.py file to set energy loops and run:
>
>
To run this example modify the submitProd.py file to set energy loops and run:
 
for i in seq 0 5; do python submitProd.py -s 1nd -q 2nd -t V00-00-00 -g -r ${i} -v 3 -m 0 -e /store/cmst3/group/hgcal/Geant4 -o ~/work/ntuples -d e- -n 2500; done
Changed:
<
<
♦This example is running 2500 events of a particle gun shooting electrons to the detector model.
>
>
This example is running 2500 events of a particle gun shooting electrons to the detector model.
 
Changed:
<
<
♦The energy of the initial particles can be changed in the script SubmitProd.py
>
>
The energy of the initial particles can be changed in the script SubmitProd.py
 
Changed:
<
<
♦At then moment of running the program other particles can be chosen for the particle gun, like muon (mu-) or pions (pi-)
>
>
At then moment of running the program other particles can be chosen for the particle gun, like muon (mu-) or pions (pi-)
 
Changed:
<
<
♦For a complete code of the particles in Geant4 see:
>
>
For a complete code of the particles in Geant4 see:
  http://geant4.cern.ch/G4UsersDocuments/UsersGuides/ForApplicationDeveloper/html/TrackingAndPhysics/particle.html
Changed:
<
<
 
>
>
 

Analysis

Changed:
<
<
 
>
>
 

outputs

Changed:
<
<
♦A sample of the results are presented in the root files attached
>
>
A sample of the results are presented in the root files attached
 
Changed:
<
<
♦The file DigiPFcal contains the histograms for the noise check and the reconstructed hits in the detector
>
>
The file DigiPFcal contains the histograms for the noise check and the reconstructed hits in the detector
 
Changed:
<
<
♦The file HGcal contains 4 branches:
>
>
The file HGcal contains 4 branches:
 
Changed:
<
<
◊The file HGcal contains 4 branches:
>
>
The file HGcal contains 4 branches:
 
Changed:
<
<
◊Sampling Section: Contains the information of the volume; the total, absorbed y measured energy; the fraction of particles, etc.
>
>
Sampling Section: Contains the information of the volume; the total, absorbed y measured energy; the fraction of particles, etc.
 
Changed:
<
<
◊SimHit : Contains histograms such as the number of particles, energy, time, layer, etc
>
>
SimHit : Contains histograms such as the number of particles, energy, time, layer, etc
 
Changed:
<
<
◊GenParticle : Contains the information of the generated particle
>
>
GenParticle : Contains the information of the generated particle
  Analysis code SimHits
Changed:
<
<
◊An analysis script that plot histograms of the variables contained in the root files previously obtained is obtained using the MakeClass command in root.
>
>
An analysis script that plot histograms of the variables contained in the root files previously obtained is obtained using the MakeClass command in root.
 
Changed:
<
<
◊The codes are named HGCal (see attached files), and are located in /afs/cern.ch/user/h/hhernand/work/codes
◊
To run the codes successfully in root is required to load one library for the main directory of G4, for this run:
>
>
The codes are named HGCal (see attached files), and are located in /afs/cern.ch/user/h/hhernand/work/codes
To run the codes successfully in root is required to load one library for the main directory of G4, for this run:
  ln -s ~/work/PFCal/PFCalEE/userlib/include .
Changed:
<
<
 
>
>
 
Changed:
<
<
♦At the moment of start root, some libraries need to be loaded(everytime start root):
>
>
At the moment of start root, some libraries need to be loaded(everytime start root):
  gSystem->Load("~/work/PFCal/PFCalEE/userlib/lib/libPFCalEEuserlib.so");
Changed:
<
<
♦Then we need load some files:
>
>
Then we need load some files:
  .L HGcal.C;

HGcal t;

t.Loop();

Changed:
<
<
 
>
>
 
Changed:
<
<
♦The output of this script will be a root file that contains all the desired histograms, plus some .txt files with information about the events
>
>
The output of this script will be a root file that contains all the desired histograms, plus some .txt files with information about the events
 
Changed:
<
<
♦As a sample of the results the Z-X profile of the detector under the action of the different particle guns can be found in the attached files
>
>
As a sample of the results the Z-X profile of the detector under the action of the different particle guns can be found in the attached files
 

Analysis code DigiRecoHits

Changed:
<
<
♦For the Digitization the code Digitizer.cpp located in the directory .../PFCal/PFCalEE/userlib/test/
>
>
For the Digitization the code Digitizer.cpp located in the directory .../PFCal/PFCalEE/userlib/test/
 
Changed:
<
<
♦To execute this code run the command "make", the resulting executable will be located in the directory PFCal/PFCalEE/userlib/bin/
>
>
To execute this code run the command "make", the resulting executable will be located in the directory PFCal/PFCalEE/userlib/bin/
 
Changed:
<
<
♦To run the executable:
>
>
To run the executable:
  ./HGCal-SimHit (number of events) (complete path to input file) (complete path to output file) (granularity layeri-layerj:value, laye...) (noise layeri-layerj:value...) (threshold layeri-layerj:value...) (random seed value, default = 0) (debug, default = 0) (save sim hits, default = 0) (save digi hits, default = 0)
Changed:
<
<
♦For the ECAL CALICE-like HG:
>
>
For the ECAL CALICE-like HG:
 
Changed:
<
<
◊number of events : choosing 0 or negative numbers will lead to take the full number of events
>
>
number of events : choosing 0 or negative numbers will lead to take the full number of events
 
Changed:
<
<
◊granularity : 0-19:4,20-29:6
>
>
granularity : 0-19:4,20-29:6
 
Changed:
<
<
◊noise: 0-29:0.12
>
>
noise: 0-29:0.12
 
Changed:
<
<
◊threshold : 0-29:2
>
>
hreshold : 0-29:2
 
Changed:
<
<
♦The result will be a root file located in the output directory, this file will contain the Reconstructed information.
>
>
The result will be a root file located in the output directory, this file will contain the Reconstructed information.
 
Changed:
<
<
♦As a sample of the results the Z-X profile of the detector under the action of the different particle guns can be found in the attached files.
 
>
>
As a sample of the results the Z-X profile of the detector under the action of the different particle guns can be found in the attached files.
 
Changed:
<
<
 
>
>
 

Geometry Visualization

Changed:
<
<
♦To visualize the geometry that is used for the standalone simulation the files DetectorConstruction.cc (~/.../PFCalEE/src) and DetectorCosntruction.hh (~/.../PFCalEE/include) contains the information of all the available geometries, e.g:
>
>
To visualize the geometry that is used for the standalone simulation the files DetectorConstruction.cc (~/.../PFCalEE/src) and DetectorCosntruction.hh (~/.../PFCalEE/include) contains the information of all the available geometries, e.g:
 
enum DetectorVersion {
    v_CALICE=0,
    v_HGCALEE_Si80=1,

Line: 235 to 234
 
Changed:
<
<
♦In the PFCalEE directory the file PFCalEE.cc can be modified to change to use the desired detector and model, the line to change is:
>
>
In the PFCalEE directory the file PFCalEE.cc can be modified to change to use the desired detector and model, the line to change is:
 
int version=0; //DetectorConstruction::v_HGCAL;                                                                                                       
  //int model=DetectorConstruction::m_FULLSECTION;                                                                                                     
  int model=DetectorConstruction::m_SIMPLE_20;
Changed:
<
<
♦After the file is modified to compile run:
>
>
After the file is modified to compile run:
 
make -j 5
Changed:
<
<
♦After this, run the following command (Changing the path to one in your directory):
>
>
After this, run the following command (Changing the path to one in your directory):
 
export G4DAWNFILE_DEST_DIR=/afs/cern.ch/user/h/hhernand/work/PFCal/PFCalEE/
Changed:
<
<
♦Copy the file vis.mac to the directory where the PFCalEE executable is (geant4_workdir/bin/Linux-g++).
>
>
Copy the file vis.mac to the directory where the PFCalEE executable is (geant4_workdir/bin/Linux-g++).
 
Changed:
<
<
♦To run the visualization is necessary to go to the directory where the PFCalEE executable is and run:
>
>
To run the visualization is necessary to go to the directory where the PFCalEE executable is and run:
 
PFCalEE vis.mac
Changed:
<
<
♦A sample and a complete geometry construction for the CALICE detector can be found in the attached files.
>
>
A sample and a complete geometry construction for the CALICE detector can be found in the attached files.
 
Changed:
<
<
♦A sample and a complete geometry construction for the HGCalHe-CALICE (like) can be found in the attached files.
>
>
A sample and a complete geometry construction for the HGCalHe-CALICE (like) can be found in the attached files.
 
Changed:
<
<
 
>
>

HGcal Particle Flow Reconstruction

pandora PFA recipe for developers

 
Changed:
<
<
HGcal Particle Flow Reconstruction

pandora PFA recipe for developers

♦login lpc6

>
>
 
source /uscmst1/prod/sw/cms/cshrc cvmfse

setenv scram_ARCH slc5_amd64_gcc472

Revision 82014-10-21 - ShiyuanXu

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

Introduction

Changed:
<
<
♦A design and information of the HGCal can be found in https://twiki.cern.ch/twiki/bin/viewauth/CMS/PFForwardCalorimeterStudies
>
>
A design and information of the HGCal can be found in https://twiki.cern.ch/twiki/bin/viewauth/CMS/PFForwardCalorimeterStudies
 

Prerequisite

Changed:
<
<
♦Setup CMSSW in SL6 machines:
>
>
Setup CMSSW in SL6 machines:
 
source /uscmst1/prod/sw/cms/cshrc cvmfs

scram --arch slc6_amd64_gcc481 list CMSSW | grep CMSSW_7_1

Line: 26 to 27
 scram b
Added:
>
>
 
 

Repositories:

CERN

Changed:
<
<
♦We are using the repository for HGCal Geant4 standalone simulations located at https://github.com/pfs/PFCal/tree/master/PFCalEE/analysis, this can be obtained by doing:
>
>
♦We are using the repository for HGCal Geant4 standalone simulations located at https://github.com/pfs/PFCal/tree/master/PFCalEE/analysis, this can be obtained by doing:
 
git init

git remote add origin https://github.com/pfs/PFCal/tree/master/PFCalEE

Line: 39 to 41
 cd PFCal/PFCalEE/
Changed:
<
<
♦To set up the environment and compile (SL6 machines), go to the PFCalEE directory and run:
>
>
♦To set up the environment and compile (SL6 machines), go to the PFCalEE directory and run:
 
cd PFCal/PFCalEE

source g4env.sh

Line: 59 to 61
 make -j 5
Added:
>
>
 
 

FNAL

Changed:
<
<
♦In the cmslpc (SL6) is possible that the setting up of the environment doesn't work, it is required to connect to a SL6 note
>
>
♦In the cmslpc (SL6) is possible that the setting up of the environment doesn't work, it is required to connect to a SL6 note
  ssh cmslpc41.fnal.gov
Changed:
<
<
♦After this, copy the repository to your working area
>
>
♦After this, copy the repository to your working area
  cd workdir
git init
git remote add origin https://github.com/pfs/PFCal/tree/master/PFCalEE
git clone https://github.com/pfs/PFCal
cd PFCal/PFCalEE/
Changed:
<
<
♦Updated to the desired git tag version
>
>
♦Updated to the desired git tag version
  git tag
git fetch --all
git checkout (-f) Version
Changed:
<
<
♦Setup the environment (bash)
>
>
♦Setup the environment (bash)
  cp /uscms/home/yumiceva/work/HGCal/PFCal/PFCalEE/g4env_fnal.sh .
bash
source g4env_fnal.sh
Changed:
<
<
♦Setup the environment (csh)
>
>
♦Setup the environment (csh)
  cp /uscms/home/yumiceva/work/HGCal/PFCal/PFCalEE/g4env_fnal.csh .
rehash
source g4env_fnal.csh
Changed:
<
<
♦Compile the files
>
>
♦Compile the files
  mkdir -p userlib/{lib,obj,bin} && cd userlib && make dictionary && make -j 5 && cd - && make -j 5
Added:
>
>
 
 

Generation of events

Changed:
<
<
♦The code submitProd.py is created to submit jobs in parallel to the batch system (using LSF), to run do:
>
>
♦The code submitProd.py is created to submit jobs in parallel to the batch system (using LSF), to run do:
 
python submitProd.py -options
Changed:
<
<
♦In case of options conflicts it can be used also:
>
>
♦In case of options conflicts it can be used also:
 
./submitProd.py -options

Changed:
<
<
♦The options for the code are:
>
>
♦The options for the code are:
 
  • -n : Number of events to generate (default 1000)
  • -g : Use particle gun
  • -d : Data or type of particle to shoot (default e-)
Line: 114 to 118
 
  • -S : Not submit batch job

Particle Gun

Changed:
<
<
♦To run this example modify the submitProd.py file to set energy loops and run:
>
>
♦To run this example modify the submitProd.py file to set energy loops and run:
 
for i in seq 0 5; do python submitProd.py -s 1nd -q 2nd -t V00-00-00 -g -r ${i} -v 3 -m 0 -e /store/cmst3/group/hgcal/Geant4 -o ~/work/ntuples -d e- -n 2500; done
Changed:
<
<
♦This example is running 2500 events of a particle gun shooting electrons to the detector model.
>
>
♦This example is running 2500 events of a particle gun shooting electrons to the detector model.
 
Changed:
<
<
♦The energy of the initial particles can be changed in the script SubmitProd.py
>
>
♦The energy of the initial particles can be changed in the script SubmitProd.py
 
Changed:
<
<
♦At then moment of running the program other particles can be chosen for the particle gun, like muon (mu-) or pions (pi-)
>
>
♦At then moment of running the program other particles can be chosen for the particle gun, like muon (mu-) or pions (pi-)
 
Changed:
<
<
♦For a complete code of the particles in Geant4 see:
>
>
♦For a complete code of the particles in Geant4 see:
  http://geant4.cern.ch/G4UsersDocuments/UsersGuides/ForApplicationDeveloper/html/TrackingAndPhysics/particle.html
Added:
>
>
 
 

Analysis

Added:
>
>
 
 

outputs

Changed:
<
<
♦A sample of the results are presented in the root files attached
>
>
♦A sample of the results are presented in the root files attached
 
Changed:
<
<
♦The file DigiPFcal contains the histograms for the noise check and the reconstructed hits in the detector
>
>
♦The file DigiPFcal contains the histograms for the noise check and the reconstructed hits in the detector
 
Changed:
<
<
♦The file HGcal contains 4 branches:
>
>
♦The file HGcal contains 4 branches:
 
Changed:
<
<
◊The file HGcal contains 4 branches:
>
>
◊The file HGcal contains 4 branches:
 
Changed:
<
<
◊Sampling Section: Contains the information of the volume; the total, absorbed y measured energy; the fraction of particles, etc.
>
>
◊Sampling Section: Contains the information of the volume; the total, absorbed y measured energy; the fraction of particles, etc.
 
Changed:
<
<
SimHit : Contains histograms such as the number of particles, energy, time, layer, etc
>
>
◊SimHit : Contains histograms such as the number of particles, energy, time, layer, etc
 
Changed:
<
<
GenParticle : Contains the information of the generated particle
>
>
◊GenParticle : Contains the information of the generated particle
  Analysis code SimHits
Changed:
<
<
◊An analysis script that plot histograms of the variables contained in the root files previously obtained is obtained using the MakeClass command in root.
>
>
◊An analysis script that plot histograms of the variables contained in the root files previously obtained is obtained using the MakeClass command in root.
 
Changed:
<
<
The codes are named HGCal (see attached files), and are located in /afs/cern.ch/user/h/hhernand/work/codes
To run the codes successfully in root is required to load one library for the main directory of G4, for this run:
>
>
◊The codes are named HGCal (see attached files), and are located in /afs/cern.ch/user/h/hhernand/work/codes
◊
To run the codes successfully in root is required to load one library for the main directory of G4, for this run:
  ln -s ~/work/PFCal/PFCalEE/userlib/include .
Changed:
<
<
>
>
 
 
Changed:
<
<
At the moment of start root, some libraries need to be loaded(everytime start root):
>
>
♦At the moment of start root, some libraries need to be loaded(everytime start root):
  gSystem->Load("~/work/PFCal/PFCalEE/userlib/lib/libPFCalEEuserlib.so");
Changed:
<
<
♦Then we need load some files:
>
>
♦Then we need load some files:
  .L HGcal.C;

HGcal t;

t.Loop();

Changed:
<
<

>
>
 
 
Changed:
<
<
♦The output of this script will be a root file that contains all the desired histograms, plus some .txt files with information about the events
>
>
♦The output of this script will be a root file that contains all the desired histograms, plus some .txt files with information about the events
 
Changed:
<
<
♦As a sample of the results the Z-X profile of the detector under the action of the different particle guns can be found in the attached files
>
>
♦As a sample of the results the Z-X profile of the detector under the action of the different particle guns can be found in the attached files
 

Analysis code DigiRecoHits

Changed:
<
<
For the Digitization the code Digitizer.cpp located in the directory .../PFCal/PFCalEE/userlib/test/
>
>
♦For the Digitization the code Digitizer.cpp located in the directory .../PFCal/PFCalEE/userlib/test/
 
Changed:
<
<
To execute this code run the command "make", the resulting executable will be located in the directory PFCal/PFCalEE/userlib/bin/
>
>
♦To execute this code run the command "make", the resulting executable will be located in the directory PFCal/PFCalEE/userlib/bin/
 
Changed:
<
<
To run the executable:
>
>
♦To run the executable:
  ./HGCal-SimHit (number of events) (complete path to input file) (complete path to output file) (granularity layeri-layerj:value, laye...) (noise layeri-layerj:value...) (threshold layeri-layerj:value...) (random seed value, default = 0) (debug, default = 0) (save sim hits, default = 0) (save digi hits, default = 0)
Changed:
<
<
♦For the ECAL CALICE-like HG:

number of events : choosing 0 or negative numbers will lead to take the full number of events

>
>
♦For the ECAL CALICE-like HG:
 
Changed:
<
<
granularity : 0-19:4,20-29:6
>
>
◊number of events : choosing 0 or negative numbers will lead to take the full number of events
 
Changed:
<
<
noise: 0-29:0.12
>
>
◊granularity : 0-19:4,20-29:6
 
Changed:
<
<
threshold : 0-29:2
>
>
◊noise: 0-29:0.12
 
Changed:
<
<
The result will be a root file located in the output directory, this file will contain the Reconstructed information.
>
>
◊threshold : 0-29:2
 
Changed:
<
<
As a sample of the results the Z-X profile of the detector under the action of the different particle guns can be found in the attached files.

>
>
♦The result will be a root file located in the output directory, this file will contain the Reconstructed information.
 
Changed:
<
<

>
>
♦As a sample of the results the Z-X profile of the detector under the action of the different particle guns can be found in the attached files.
 
 
Added:
>
>
 
 

Geometry Visualization

Changed:
<
<
♦To visualize the geometry that is used for the standalone simulation the files DetectorConstruction.cc (~/.../PFCalEE/src) and DetectorCosntruction.hh (~/.../PFCalEE/include) contains the information of all the available geometries, e.g:
>
>
♦To visualize the geometry that is used for the standalone simulation the files DetectorConstruction.cc (~/.../PFCalEE/src) and DetectorCosntruction.hh (~/.../PFCalEE/include) contains the information of all the available geometries, e.g:
 
enum DetectorVersion {
    v_CALICE=0,
    v_HGCALEE_Si80=1,

Line: 233 to 235
 
Changed:
<
<
♦In the PFCalEE directory the file PFCalEE.cc can be modified to change to use the desired detector and model, the line to change is:
>
>
♦In the PFCalEE directory the file PFCalEE.cc can be modified to change to use the desired detector and model, the line to change is:
 
int version=0; //DetectorConstruction::v_HGCAL;                                                                                                       
  //int model=DetectorConstruction::m_FULLSECTION;                                                                                                     
  int model=DetectorConstruction::m_SIMPLE_20;
Changed:
<
<
♦After the file is modified to compile run:
>
>
♦After the file is modified to compile run:
 
make -j 5
Changed:
<
<
♦After this, run the following command (Changing the path to one in your directory):
>
>
♦After this, run the following command (Changing the path to one in your directory):
 
export G4DAWNFILE_DEST_DIR=/afs/cern.ch/user/h/hhernand/work/PFCal/PFCalEE/
Changed:
<
<
♦Copy the file vis.mac to the directory where the PFCalEE executable is (geant4_workdir/bin/Linux-g++).
>
>
♦Copy the file vis.mac to the directory where the PFCalEE executable is (geant4_workdir/bin/Linux-g++).
 
Changed:
<
<
♦To run the visualization is necessary to go to the directory where the PFCalEE executable is and run:
>
>
♦To run the visualization is necessary to go to the directory where the PFCalEE executable is and run:
 
PFCalEE vis.mac
Changed:
<
<
♦A sample and a complete geometry construction for the CALICE detector can be found in the attached files.
>
>
♦A sample and a complete geometry construction for the CALICE detector can be found in the attached files.

♦A sample and a complete geometry construction for the HGCalHe-CALICE (like) can be found in the attached files.

 

HGcal Particle Flow Reconstruction

 
Changed:
<
<
♦A sample and a complete geometry construction for the HGCalHe-CALICE (like) can be found in the attached files.
>
>
pandora PFA recipe for developers

♦login lpc6

source /uscmst1/prod/sw/cms/cshrc cvmfse

setenv scram_ARCH slc5_amd64_gcc472

cmsrel CMSSW_6_2_0_SLHC16

cd CMSSW_6_2_0_SLHC16/src
cmsenv
git init
git remote add PFCal-dev https://github.com/PFCal-dev/cmssw

 
META FILEATTACHMENT attachment="CALICESIMPLE20.eps" attr="" comment="if model=SIMPLE20 then m_CalorSizeXY=200" date="1404307471" name="CALICESIMPLE20.eps" path="CALICESIMPLE20.eps" size="165851" user="shxu" version="1"
META FILEATTACHMENT attachment="CALICEFULLSECTION.eps" attr="" comment="if model = FULLSECTION then m_minRadius=150 m_maxRadius=m_CalorSizeXY=1700" date="1404307616" name="CALICEFULLSECTION.eps" path="CALICEFULLSECTION.eps" size="1339110" user="shxu" version="1"

Revision 72014-09-29 - ShiyuanXu

Line: 1 to 1
 
META TOPICPARENT name="ShiyuanXu"
>
>
pre.command {background-color: lightgrey;} pre.cfg {background-color: lightblue;} pre.code {background-color: lightpink;} pre.output {background-color: lightgreen;}
 

Introduction

♦A design and information of the HGCal can be found in https://twiki.cern.ch/twiki/bin/viewauth/CMS/PFForwardCalorimeterStudies

Prerequisite

Changed:
<
<
♦Setup CMSSW in SL6 machines: CMSSW in SL6 machines
>
>
♦Setup CMSSW in SL6 machines: CMSSW in SL6 machines
 
source /uscmst1/prod/sw/cms/cshrc cvmfs

Line: 168 to 162
 ♦A sample and a complete geometry construction for the CALICE detector can be found in the attached files.

♦A sample and a complete geometry construction for the HGCalHe-CALICE (like) can be found in the attached files.

Deleted:
<
<

META FILEATTACHMENT attachment="CALICE.pdf" attr="" comment="" date="1404143921" name="CALICE.pdf" path="CALICE.pdf" size="13523" user="shxu" version="1"
META FILEATTACHMENT attachment="CALICE_FULL.pdf" attr="" comment="" date="1404143921" name="CALICE_FULL.pdf" path="CALICE_FULL.pdf" size="112987" user="shxu" version="1"
META FILEATTACHMENT attachment="HATS-HGCal.pdf" attr="" comment="" date="1404143921" name="HATS-HGCal.pdf" path="HATS-HGCal.pdf" size="5138737" user="shxu" version="1"
META FILEATTACHMENT attachment="HGCalHE_CALICE.pdf" attr="" comment="" date="1404143920" name="HGCalHE_CALICE.pdf" path="HGCalHE_CALICE.pdf" size="19859" user="shxu" version="1"
META FILEATTACHMENT attachment="HGCalHE_CALICE_FULL.pdf" attr="" comment="" date="1404143920" name="HGCalHE_CALICE_FULL.pdf" path="HGCalHE_CALICE_FULL.pdf" size="177353" user="shxu" version="1"

Revision 22014-06-30 - ShiyuanXu

Line: 1 to 1
 
META TOPICPARENT name="ShiyuanXu"
Changed:
<
<
-- ShiyuanXu - 24 Jun 2014
>
>

Introduction

♦A design and information of the HGCal can be found in https://twiki.cern.ch/twiki/bin/viewauth/CMS/PFForwardCalorimeterStudies

Prerequisite

♦Setup CMSSW in SL6 machines: CMSSW in SL6 machines

source /uscmst1/prod/sw/cms/cshrc cvmfs

scram --arch slc6_amd64_gcc481 list CMSSW | grep CMSSW_7_1

scram --arch slc6_amd64_gcc481 project CMSSW_7_1_0_pre8

cd CMSSW_7_1_0_pre8/src/

cmsenv

scram b

Repositories:

♦We are using the repository for HGCal Geant4 standalone simulations located at https://github.com/pfs/PFCal/tree/master/PFCalEE/analysis, this can be obtained doing:

git init

git remote add origin https://github.com/pfs/PFCal/tree/master/PFCalEE

git clone -b BASELINE-TP https://github.com/pfs/PFCal

cd PFCal/PFCalEE/

♦To set up the environment and compile (SL6 machines), go to the PFCalEE directory and run:

cd PFCal/PFCalEE

source g4env.sh

cd userlib

mkdir lib

mkdir obj

mkdir bin

make -j 5

cd ../

make -j 5

♦In the cmslpc (SL6) is possible that the setting up of the environment doesn't work, in that case change the first command for:

sh g4env.sh

Analysis Code

♦The code submitProd.py is created to submit jobs in parallel to the batch system (using LSF), to run do:

python submitProd.py -options

♦In case of options conflicts it can be used also:

./submitProd.py -options

♦The options for the code are:

  • -n : Number of events to generate (default 1000)
  • -g : Use particle gun
  • -d : Data or type of particle to shoot (default e-)
  • -s : Short batch queue (default 1nd)
  • -l : Long batch queue (default 2nw)
  • -t : Git tag use it
  • -r : Run stats
  • -m : Detector model
  • -v : Detector version
  • -e : eos Path to save root file
  • -o : Output directory
  • -a : Incidence angle in radians (default 0)
  • -b : Magnetic field in Tesla (default 0)
  • -f : Path to the HepMC input file
  • -S : Not submit batch job

Particle Gun

♦To run this example modify the submitProd.py file to set energy loops and run:

for i in seq 0 5; do python submitProd.py -s 1nd -q 2nd -t V00-00-00 -g -r ${i} -v 3 -m 0 -e /store/cmst3/group/hgcal/Geant4 -o ~/work/ntuples -d e- -n 2500; done

♦This example is running 2500 events of a particle gun shooting electrons to the detector model.

Geometry Visualization

♦To visualize the geometry that is used for the standalone simulation the files DetectorConstruction.cc (~/.../PFCalEE/src) and DetectorCosntruction.hh (~/.../PFCalEE/include) contains the information of all the available geometries, e.g:

 enum DetectorVersion {
    v_CALICE=0,
    v_HGCALEE_Si80=1,
    v_HGCALEE_Si120=2,
    v_HGCALEE_Si200=3,
    v_HGCALEE_Si500=4,
    v_HGCALEE_gap1=5,
    v_HGCALEE_CALICE=6,
    v_HGCALEE_inverted=7,
    v_HGCALEE_concept=8,
    v_HGCALEE_W=9,
    v_HGCALEE_gap4=10,
    v_HGCALEE_prePCB=11,
    v_HGCAL=20,
    v_HGCALHE=21,
    v_HGCALHEScint=22,
    v_HGCALHE_CALICE=23
  };

  enum DetectorModel {
    m_SIMPLE_20=0,
    m_SIMPLE_50=1,
    m_FULLSECTION=2,
    m_SIMPLE_100=3
  };

♦In the PFCalEE directory the file PFCalEE.cc can be modified to change to use the desired detector and model, the line to change is:

 int version=0; //DetectorConstruction::v_HGCAL;                                                                                                       
  //int model=DetectorConstruction::m_FULLSECTION;                                                                                                     
  int model=DetectorConstruction::m_SIMPLE_20;

♦After the file is modified to compile run:

make -j 5

♦After this, run the following command (Changing the path to one in your directory):

export G4DAWNFILE_DEST_DIR=/afs/cern.ch/user/h/hhernand/work/PFCal/PFCalEE/

♦Copy the file vis.mac to the directory where the PFCalEE executable is (geant4_workdir/bin/Linux-g++).

♦To run the visualization is necessary to go to the directory where the PFCalEE executable is and run:

PFCalEE vis.mac

♦A sample and a complete geometry construction for the CALICE detector can be found in the attached files.

♦A sample and a complete geometry construction for the HGCalHe-CALICE (like) can be found in the attached files.

META FILEATTACHMENT attachment="CALICE.pdf" attr="" comment="" date="1404143921" name="CALICE.pdf" path="CALICE.pdf" size="13523" user="shxu" version="1"
META FILEATTACHMENT attachment="CALICE_FULL.pdf" attr="" comment="" date="1404143921" name="CALICE_FULL.pdf" path="CALICE_FULL.pdf" size="112987" user="shxu" version="1"
META FILEATTACHMENT attachment="HATS-HGCal.pdf" attr="" comment="" date="1404143921" name="HATS-HGCal.pdf" path="HATS-HGCal.pdf" size="5138737" user="shxu" version="1"
META FILEATTACHMENT attachment="HGCalHE_CALICE.pdf" attr="" comment="" date="1404143920" name="HGCalHE_CALICE.pdf" path="HGCalHE_CALICE.pdf" size="19859" user="shxu" version="1"
META FILEATTACHMENT attachment="HGCalHE_CALICE_FULL.pdf" attr="" comment="" date="1404143920" name="HGCalHE_CALICE_FULL.pdf" path="HGCalHE_CALICE_FULL.pdf" size="177353" user="shxu" version="1"

Revision 12014-06-24 - ShiyuanXu

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="ShiyuanXu"
-- ShiyuanXu - 24 Jun 2014
 
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