Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-10-26 02:21:36

0001 #!/bin/bash
0002 
0003 # Pass in name and status
0004 function die {
0005   echo $1: status $2
0006   echo === Log file ===
0007   cat ${3:-/dev/null}
0008   echo === End log file ===
0009   exit $2
0010 }
0011 
0012 # run test job
0013 TESTDIR="${LOCALTOP}"/src/L1Trigger/L1TGlobal/test
0014 
0015 cmsRun "${TESTDIR}"/testL1TGlobalProducer_cfg.py &> log_testL1TGlobalProducer \
0016  || die "Failure running testL1TGlobalProducer_cfg.py" $? log_testL1TGlobalProducer
0017 
0018 # expected PathSummary of test job
0019 cat <<@EOF > log_testL1TGlobalProducer_expected
0020     Bit                  Algorithm Name                  Init    PScd  Final   PS Factor     Num Bx Masked
0021 ============================================================================================================
0022       21                              L1_SingleMu22       246    246    246         1          0
0023      194                      L1_SingleIsoEG32er2p5       215      0      0         0          0
0024      286                 L1_Mu22er2p1_IsoTau30er2p1       161    134    134       1.2          0
0025      318                        L1_SingleJet90er2p5       665    100    100      6.65          0
0026      428                         L1_ETMHF80_HTT60er       132     38     38       3.4          0
0027      459                                L1_ZeroBias      1000     19     19      50.1          0
0028      461              L1_MinimumBiasHF0_AND_BptxAND       982    798    798      1.23          0
0029      480                   L1_FirstCollisionInOrbit         0      0      0         1          0
0030                                                       Final OR Count = 872
0031 @EOF
0032 
0033 # compare to expected output of test job
0034 sed -n '/Init    PScd  Final   PS Factor/,/Final OR Count =/p' log_testL1TGlobalProducer \
0035  | diff log_testL1TGlobalProducer_expected - \
0036  || die "differences in expected log report" $?