D U N E M C - S a m p l e G e n e r a t i o n - - PowerPoint PPT Presentation

d u n e m c s a m p l e g e n e r a t i o n
SMART_READER_LITE
LIVE PREVIEW

D U N E M C - S a m p l e G e n e r a t i o n - - PowerPoint PPT Presentation

D U N E M C - S a m p l e G e n e r a t i o n G l e b S i n e v D u k e U n i v e r s i t y D U N E D A Q - S i m u l a t i o n H a c k D a y s O c t o b e r 1 7 , 2


slide-1
SLIDE 1

D U N E M C

  • S

a m p l e G e n e r a t i

  • n

G l e b S i n e v D u k e U n i v e r s i t y D U N E D A Q

  • S

i m u l a t i

  • n

H a c k D a y s O c t

  • b

e r 1 7 , 2 1 6

slide-2
SLIDE 2

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

2

D U N E S i m u l a t i

  • n
  • D

U N E u s e s L A r S

  • f

t t

  • f

u l l y s i m u l a t e a n d r e c

  • n

s t r u c t e v e n t s

  • F

r a m e w

  • r

k s h a r e d w i t h

  • t

h e r ( m

  • s

t l y F e r m i l a b

  • b

a s e d ) l i q u i d

  • a

r g

  • n

e x p e r i m e n t s

slide-3
SLIDE 3

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

3

C r e a t i n g M C S a m p l e s

  • S

e t t i n g u p a n d r u n n i n g L A r S

  • f

t

  • L

A r S

  • f

t c

  • n

fi g u r a t i

  • n

fi l e s ( F H I C L )

  • U

s i n g F e r m i g r i d

slide-4
SLIDE 4

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

4

I n i t i a l S e t u p

  • L

A r S

  • f

t w i t h D U N E T P C

  • O

n d u n e g p v m { 1 . . 1 } . f n a l . g

  • v

– C

u r r e n t L A r S

  • f

t v e r s i

  • n

: setup dunetpc v06_11_00 -q e10:prof

– M

  • r

e

  • n

t h i s i n m y b a c k

  • u

p s l i d e s

slide-5
SLIDE 5

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

5

R u n n i n g L A r S

  • f

t

  • lar -c configuration.fcl
  • n NEvents
  • s inputFile.root
  • o outputFile.root
  • T histogramFile.root
  • F

H i C L ( F e r m i l a b H i e r a r c h i c a l C

  • n

fi g u r a t i

  • n

L a n g u a g e ) fi l e s a r e u s e d t

  • c
  • n

fi g u r e L A r S

  • f

t

  • lar --help t
  • s

e e

  • t

h e r p

  • s

s i b l e a r g u m e n t s

slide-6
SLIDE 6

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

6

M

  • n

t e

  • C

a r l

  • C

h a l l e n g e F H i C L

  • M
  • s

t u p

  • t
  • d

a t e a v a i l a b l e F H i C L fi l e s

  • M
  • s

t p r

  • b

a b l y w

  • r

k

  • G
  • d

t

  • u

s e a s e x a m p l e s f

  • r

y

  • u

r F H i C L fi l e s

  • L
  • c

a t e d i n $DUNETPC_DIR/source/fcl

  • H

e r e f

  • c

u s

  • n

D U N E f a r d e t e c t

  • r

, a l s

  • 3

5

  • t
  • n

a n d P r

  • t
  • D

U N E a v a i l a b l e

slide-7
SLIDE 7

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

7

F a r

  • D

e t e c t

  • r

G e

  • m

e t r i e s

  • M

a k e s u r e t

  • u

s e t h e s a m e g e

  • m

e t r y f

  • r

a l l F H i C L fi l e s i n s i m / r e c

  • c

h a i n !

  • 1

2 A P A g e

  • m

e t r y

– dune10kt_1x2x6

– s t a n d a r d

– dune10kt_3mmpitch_1x2x6

– 3

  • m

m w i r e p i t c h

– dune10kt_45deg_1x2x6

– 4 5 ° w i r e a n g l e

– dune10kt_r90deg_1x2x6

– A P A s r

  • t

a t e d b y 9 °

  • O

t h e r s a v a i l a b l e :

– dune10kt_dphase

– d

  • u

b l e p h a s e , n

  • p

h

  • t
  • n

s i m u l a t i

  • n

– dune10kt_workspace

– 4 A P A , s

  • m

e w h a t d e p r e c a t e d

– dune10kt

– f u l l 1 k t d e t e c t

  • r

, n

  • p

h

  • t
  • n

s i m u l a t i

  • n
slide-8
SLIDE 8

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

8

M C C S t a g e s

  • gen
  • g4
  • detsim
  • reco
  • mergeana
slide-9
SLIDE 9

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

9

gen S t a g e

  • G

e n e r a t e p r i m a r y p a r t i c l e s

  • $DUNETPC/source/fcl/dunefd/gen

– atm – background – cosmic – genie – ndk – single – supernova

slide-10
SLIDE 10

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

1

g4 S t a g e

  • S

i m u l a t e d e t e c t

  • r

m a t e r i a l s w i t h L A r G e a n t ( G e a n t 4 )

  • $DUNETPC/source/fcl/dunefd/g4

– standard – supernova

– t u n e d f

  • r

l

  • w
  • e

n e r g y i n t e r a c t i

  • n

s

slide-11
SLIDE 11

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

1 1

detsim S t a g e

  • S

i m u l a t e s i g n a l s

  • n

w i r e s a n d p h

  • t
  • n

d e t e c t

  • r

s

  • $DUNETPC/source/fcl/dunefd/detsim

– standard – nozs

– n

  • z

e r

  • s

u p p r e s s i

  • n
slide-12
SLIDE 12

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

1 2

reco S t a g e

  • R

e c

  • n

s t r u c t e v e n t s

  • $DUNETPC/source/fcl/dunefd/reco

– standard – nu

slide-13
SLIDE 13

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

1 3

mergeana S t a g e

  • I

n M C C – m e r g e m u l t i p l e r e c

  • fi

l e s

  • P

r

  • d

u c e h i s t

  • g

r a m s a n d t r e e s

  • $DUNETPC/source/fcl/dunefd/mergeana
slide-14
SLIDE 14

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

1 4

F i n a l t h

  • u

g h t s

  • n

F H i C L

  • L

A r S

  • f

t c

  • n

fi g u r a t i

  • n

i s q u i t e fl e x i b l e , y

  • u

m a y h a v e d i ff e r e n t s t a g e s

  • r

j u s t

  • n

e F H i C L fi l e t

  • p

r

  • d

u c e a l l s i m / r e c

  • (

m a y b e s u b

  • p

t i m a l )

  • G
  • d

d e s c r i p t i

  • n
  • f

t h e l a n g u a g e :

https://cdcvs.fnal.gov/redmine/projects/ fhicl/wiki

  • M
  • r

e

  • n

F H i C L i n m y b a c k

  • u

p s l i d e s

slide-15
SLIDE 15

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

1 5

U s i n g F e r m i g r i d

T w

  • w

a y s t

  • s

u b m i t j

  • b

s :

– J

  • b

s u b

– p

r

  • j

e c t . p y

slide-16
SLIDE 16

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

1 6

J

  • b

s u b

  • h

t t p s : / / c d c v s . f n a l . g

  • v

/ r e d m i n e / p r

  • j

e c t s / d u n e / w i k i / S u b m i t t i n g _ J

  • b

s _ a t _ F e r m i l a b

  • V

e r y fl e x i b l e

  • N

e e d s h e l l s c r i p t w i t h a l l c

  • m

m a n d s r u n

slide-17
SLIDE 17

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

1 7

p r

  • j

e c t . p y

  • h

t t p s : / / c d c v s . f n a l . g

  • v

/ r e d m i n e / p r

  • j

e c t s / l a r b a t c h / w i k i / U s e r _ g u i d e

  • Wr

a p p e r f

  • r

J

  • b

s u b

  • C
  • n

t r

  • l

l e d u s i n g X M L fi l e ( e x a m p l e s a v a i l a b l e v i a make_xml_mcc7.0.sh)

  • G

U I a v a i l a b l e

  • U

s e d b y D U N E M C p r

  • d

u c t i

  • n

g r

  • u

p

slide-18
SLIDE 18

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

1 8

S t

  • r

i n g O u t p u t

  • 1

s

  • f

j

  • b

s c a n p r

  • d

u c e T B s

  • f

d a t a q u i c k l y

  • S

t

  • r

e

  • u

t p u t i n d C a c h e : h t t p s : / / c d c v s . f n a l . g

  • v

/ r e d m i n e / p r

  • j

e c t s / d u n e / w i k i / U s i n g _ D U N E ' s _ d C a c h e _ S c r a t c h _ a n d _ P e r s i s t e n t _ S p a c e _ a t _ F e r m i l a b

– /pnfs/dune/scratch – /pnfs/dune/persistent – /pnfs/dune/tape_backed

slide-19
SLIDE 19

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

1 9

C

  • n

c l u s i

  • n
  • T

h a t ' s a q u i c k

  • v

e r v i e w

  • f

h

  • w

t

  • c

r e a t e M

  • n

t e

  • C

a r l

  • s

a m p l e s i n D U N E

  • Y
  • u

c a n a l s

  • a

c c e s s fi l e s g e n e r a t e d f

  • r

M C C 7 : h t t p s : / / c d c v s . f n a l . g

  • v

/ r e d m i n e / p r

  • j

e c t s / d u n e / w i k i / D A Q

  • S

i m u l a t i

  • n

s _ M C _ F i l e _ L i s t

  • A

n y q u e s t i

  • n

s ?

slide-20
SLIDE 20

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

2

B a c k

  • u

p S l i d e s

slide-21
SLIDE 21

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

2 1

L

  • g

g i n g i n

  • F

e r m i l a b u s e s K e r b e r

  • s

f

  • r

a u t h e n t i c a t i

  • n
  • O

b t a i n K e r b e r

  • s

t i c k e t w i t h

– kinit -f <username>@FNAL.GOV

  • L
  • g

i n t

  • n

e

  • f

D U N E G e n e r a l P u r p

  • s

e V i r t u a l M a c h i n e s

– ssh -X <username>@dunegpvmXX.fnal.gov

( XX i s 01-10)

– T

r y u s i n g d i ff e r e n t XX f r

  • m

w h a t

  • t

h e r s a r e u s i n g

slide-22
SLIDE 22

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

2 2

C r e a t i n g Wo r k s p a c e

  • M

a k e d i r e c t

  • r

y t

  • w
  • r

k i n

mkdir -p /dune/app/users/<username>/tutorial-mc

  • U

s e /dune/app/users/<username> f

  • r

c

  • d

e a n d

  • t

h e r r e l a t i v e l y s m a l l fi l e s , b u t d

  • n

' t s t

  • r

e G B s

  • f

d a t a t h e r e !

slide-23
SLIDE 23

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

2 3

S e t t i n g u p D U N E S

  • f

t w a r e E n v i r

  • n

m e n t

  • F
  • r

e a c h n e w s h e l l r u n

source /grid/fermiapp/products/dune/setup_dune.sh

– T

  • a

u t

  • m

a t e a d d t h e l i n e a b

  • v

e t

  • ~/.bashrc

– I

n s t e a d y

  • u

c a n a d d i t t

  • a

n

  • t

h e r s c r i p t t h a t y

  • u

r u n a f t e r

  • p

e n i n g a n e w s h e l l s e s s i

  • n
slide-24
SLIDE 24

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

2 4

S e t t i n g u p L A r S

  • f

t

  • C

h e c k w h a t v e r s i

  • n

s a r e a v a i l a b l e

– ups list -aK+ dunetpc

  • S

e t u p D U N E T P C

– setup dunetpc v06_11_00 -q e10:prof

  • T

h i s s e t s u p L A r S

  • f

t a n d D U N E

  • s

p e c i fi c c

  • d

e

slide-25
SLIDE 25

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

2 5

F H i C L L a n g u a g e

  • parameter: value
  • sequence: [ value1, value2, … valueN ]
  • table:

{ parameter1: tableValue1 parameter2: tableValue2 … parameterM: tableValueM @table::someOtherTable }

slide-26
SLIDE 26

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

2 6

F H i C L L a n g u a g e

  • #include “fhicl_file.fcl”
  • tableFromOtherTable: @local::otherTable
  • outerTable.innerTable.parameter: value
slide-27
SLIDE 27

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

2 7

F H i C L F i l e s

  • Wi

t h #includes i t g e t s h a r d t

  • u

n d e r s t a n d w h a t p a r a m e t e r s y

  • u

a c t u a l l y r u n

  • S
  • m

e t

  • l

s e x i s t t

  • h

e l p w i t h t h i s

– e

. g . fhicl-dump configuration.fcl

slide-28
SLIDE 28

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

2 8

E x a m p l e

  • f

gen F H i C L fi l e

$DUNETPC/source/fcl/dunefd/gen/single/prod_eminus_0 .1-5.0GeV_isotropic_dune10kt_1x2x6.fcl

E d i t t

  • c

h a n g e t h e i n i t i a l m

  • m

e n t u m

slide-29
SLIDE 29

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

2 9

E x a m p l e

  • f

g4 F H i C L fi l e

$DUNETPC/source/fcl/dunefd/g4/standard_g4_dune10kt_ 1x2x6.fcl

%

R e m

  • v

e t

  • n
  • t

s i m u l a t e p h

  • t
  • n

s

`

slide-30
SLIDE 30

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

3

E x a m p l e

  • f

detsim F H i C L fi l e

$DUNETPC/source/fcl/dunefd /detsim/standard_detsim_du ne10kt.fcl

R e m

  • v

e t

  • n
  • t

s i m u l a t e p h

  • t
  • n

d e t e c t

  • r

s

` `

slide-31
SLIDE 31

2 1 6 / 1 / 1 7 D U N E MC

  • S

a m p l e G e n e r a t i

  • n

3 1

C h a n g i n g F H i C L fi l e s

  • I

n s t e a d

  • f

m

  • d

i f y i n g a l r e a d y e x i s t i n g fi l e s :

– C

r e a t e a n e w F H i C L fi l e

– I

n c l u d e t h e fi l e y

  • u

w a n t t

  • c

h a n g e

– C

h a n g e t h e p a r a m e t e r s y

  • u

w a n t t

  • c

h a n g e

  • E

x a m p l e :

$DUNETPC/source/fcl/dunefd/detsim/standard_detsim_dune10kt_1x2x6.fcl

– I

t i n c l u d e s standard_detsim_dune10kt.fcl a n d c h a n g e s process_name a n d services.Geometry