Fork me on GitHub

Changeset 9 in svn


Ignore:
Timestamp:
Nov 5, 2008, 7:10:54 PM (16 years ago)
Author:
Xavier Rouby
Message:

first commit

Location:
trunk
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r2 r9  
    2828
    2929
     30Resolutions$(ExeSuf): \
     31        tmp/Resolutions.$(ObjSuf)
     32
     33tmp/Resolutions.$(ObjSuf): \
     34        Resolutions.cpp \
     35        Utilities/ExRootAnalysis/interface/ExRootTreeReader.h \
     36        Utilities/ExRootAnalysis/interface/ExRootTreeWriter.h \
     37        Utilities/ExRootAnalysis/interface/ExRootTreeBranch.h \
     38        Utilities/CDFCones/interface/JetCluAlgorithm.h \
     39        Utilities/CDFCones/interface/MidPointAlgorithm.h \
     40        Utilities/CDFCones/interface/PhysicsTower.h \
     41        Utilities/CDFCones/interface/Cluster.h \
     42        interface/DataConverter.h \
     43        interface/HEPEVTConverter.h \
     44        interface/LHEFConverter.h \
     45        interface/STDHEPConverter.h \
     46        interface/SmearUtil.h \
     47        interface/TreeClasses.h
    3048Delphes$(ExeSuf): \
    3149        tmp/Delphes.$(ObjSuf)
     
    4664        interface/SmearUtil.h
    4765EXECUTABLE =  \
     66        Resolutions$(ExeSuf) \
    4867        Delphes$(ExeSuf)
    4968
    5069EXECUTABLE_OBJ =  \
     70        tmp/Resolutions.$(ObjSuf) \
    5171        tmp/Delphes.$(ObjSuf)
    5272
     
    5474        Utilities/ExRootAnalysis/src/BlockClassesLinkDef.h \
    5575        Utilities/ExRootAnalysis/interface/BlockClasses.h
     76tmp/src/TreeClassesDict.$(SrcSuf): \
     77        src/TreeClassesLinkDef.h
    5678DICT =  \
    57         tmp/Utilities/ExRootAnalysis/src/BlockClassesDict.$(SrcSuf)
     79        tmp/Utilities/ExRootAnalysis/src/BlockClassesDict.$(SrcSuf) \
     80        tmp/src/TreeClassesDict.$(SrcSuf)
    5881
    5982DICT_OBJ =  \
    60         tmp/Utilities/ExRootAnalysis/src/BlockClassesDict.$(ObjSuf)
     83        tmp/Utilities/ExRootAnalysis/src/BlockClassesDict.$(ObjSuf) \
     84        tmp/src/TreeClassesDict.$(ObjSuf)
    6185
    6286tmp/src/STDHEPConverter.$(ObjSuf): \
     
    7094        Utilities/stdhep/stdhep_declarations.h \
    7195        interface/STDHEPConverter.h
     96tmp/src/TreeClasses.$(ObjSuf): \
     97        src/TreeClasses.$(SrcSuf) \
     98        interface/TreeClasses.h
    7299tmp/src/LHEFConverter.$(ObjSuf): \
    73100        src/LHEFConverter.$(SrcSuf) \
     
    169196SOURCE_OBJ =  \
    170197        tmp/src/STDHEPConverter.$(ObjSuf) \
     198        tmp/src/TreeClasses.$(ObjSuf) \
    171199        tmp/src/LHEFConverter.$(ObjSuf) \
    172200        tmp/src/HEPEVTConverter.$(ObjSuf) \
     
    228256        Utilities/mcfio/mcf_ntubldInit.c
    229257tmp/Utilities/stdhep/mcf_hepev4_xdr.$(ObjSuf): \
    230         Utilities/stdhep/mcf_hepev4_xdr.c
     258        Utilities/stdhep/mcf_hepev4_xdr.c \
     259        Utilities/mcfio/mcfio_Dict.h \
     260        Utilities/mcfio/mcf_xdr.h \
     261        Utilities/stdhep/stdhep.h \
     262        Utilities/stdhep/hepev4.h \
     263        Utilities/stdhep/stdtmp.h \
     264        Utilities/stdhep/stdver.h
    231265tmp/Utilities/stdhep/mcf_stdcm1_xdr.$(ObjSuf): \
    232         Utilities/stdhep/mcf_stdcm1_xdr.c
     266        Utilities/stdhep/mcf_stdcm1_xdr.c \
     267        Utilities/mcfio/mcfio_Dict.h \
     268        Utilities/mcfio/mcf_xdr.h \
     269        Utilities/stdhep/stdcm1.h \
     270        Utilities/stdhep/stdver.h
    233271tmp/Utilities/stdhep/mcf_hepup_xdr.$(ObjSuf): \
    234         Utilities/stdhep/mcf_hepup_xdr.c
     272        Utilities/stdhep/mcf_hepup_xdr.c \
     273        Utilities/mcfio/mcfio_Dict.h \
     274        Utilities/mcfio/mcf_xdr.h \
     275        Utilities/stdhep/hepeup.h \
     276        Utilities/stdhep/heprup.h \
     277        Utilities/stdhep/stdver.h
    235278tmp/Utilities/stdhep/mcf_Stdhep_xdr.$(ObjSuf): \
    236         Utilities/stdhep/mcf_Stdhep_xdr.c
     279        Utilities/stdhep/mcf_Stdhep_xdr.c \
     280        Utilities/mcfio/mcfio_Dict.h \
     281        Utilities/mcfio/mcf_xdr.h \
     282        Utilities/stdhep/stdhep.h \
     283        Utilities/stdhep/stdtmp.h \
     284        Utilities/stdhep/stdver.h
    237285tmp/Utilities/stdhep/stdhep_internal_utils.$(ObjSuf): \
    238         Utilities/stdhep/stdhep_internal_utils.c
     286        Utilities/stdhep/stdhep_internal_utils.c \
     287        Utilities/stdhep/stdhep.h \
     288        Utilities/stdhep/hepev4.h \
     289        Utilities/stdhep/stdtmp.h \
     290        Utilities/stdhep/hepeup.h
    239291tmp/Utilities/stdhep/stdhep_mcfio.$(ObjSuf): \
    240         Utilities/stdhep/stdhep_mcfio.c
     292        Utilities/stdhep/stdhep_mcfio.c \
     293        Utilities/mcfio/mcf_xdr.h \
     294        Utilities/mcfio/mcfio_Block.h \
     295        Utilities/mcfio/mcfio_Dict.h \
     296        Utilities/mcfio/mcfio_Direct.h \
     297        Utilities/mcfio/mcfio_Util1.h \
     298        Utilities/stdhep/stdhep.h \
     299        Utilities/stdhep/hepev4.h \
     300        Utilities/stdhep/hepeup.h \
     301        Utilities/stdhep/heprup.h \
     302        Utilities/stdhep/stdtmp.h \
     303        Utilities/stdhep/stdhd.h \
     304        Utilities/stdhep/stdcnt.h \
     305        Utilities/stdhep/stdhep_mcfio.h
    241306STDHEP_OBJ =  \
    242307        tmp/Utilities/mcfio/mcf_ntuBldDbinc.$(ObjSuf) \
     
    274339        @touch $@
    275340
     341interface/TreeClasses.h: \
     342        Utilities/ExRootAnalysis/interface/BlockCompare.h \
     343        Utilities/ExRootAnalysis/interface/BlockClasses.h
     344        @touch $@
     345
    276346interface/SmearUtil.h: \
    277347        Utilities/ExRootAnalysis/interface/BlockClasses.h \
     
    290360        Utilities/CDFCones/interface/LorentzVector.h \
    291361        Utilities/CDFCones/interface/Centroid.h
     362        @touch $@
     363
     364Utilities/stdhep/stdhep_declarations.h: \
     365        Utilities/stdhep/stdhep.h \
     366        Utilities/stdhep/hepev4.h \
     367        Utilities/stdhep/hepeup.h \
     368        Utilities/stdhep/heprup.h \
     369        Utilities/stdhep/stdtmp.h \
     370        Utilities/stdhep/stdhd.h \
     371        Utilities/stdhep/stdcnt.h \
     372        Utilities/stdhep/stdcm1.h \
     373        Utilities/stdhep/stdver.h
    292374        @touch $@
    293375
  • trunk/README

    r7 r9  
    4242stdhep.ps -> page9 = HEPCHG(ID) : get charge for particle ID
    4343
     44
  • trunk/TODO

    r2 r9  
    1212 - vérifier les unités des toutes les valeurs dans les ttree
    1313 - vérifier que les valeurs par défaut sont égales à celles de la datacard par défaut
     14 - ajouter FastJet
  • trunk/genMakefile.tcl

    r2 r9  
    126126  global prefix suffix objSuf exeSuf
    127127   
    128   set executable [glob -nocomplain {Delphes.cpp} ]
     128  set executable [glob -nocomplain {Delphes.cpp} {Resolutions.cpp}]
    129129                               
    130130  set exeFiles {}
     
    232232executableDeps {*.cpp}
    233233
    234 dictDeps {DICT} {Utilities/ExRootAnalysis/src/*LinkDef.h}
     234dictDeps {DICT} {Utilities/ExRootAnalysis/src/*LinkDef.h} {src/*LinkDef.h}
    235235
    236236sourceDeps {SOURCE} {src/*.cc} {Utilities/ExRootAnalysis/src/*.cc} {Utilities/Hector/src/*.cc} {Utilities/CDFCones/src/*cc}
  • trunk/src/SmearUtil.cc

    r2 r9  
    213213 
    214214  if(fabs(hadron.Eta()) < MAX_CALO_CEN) {
    215     energyS = gRandom->Gaus(energy_hcal, sqrt(
     215    float energyS1 = gRandom->Gaus(energy_hcal, sqrt(
    216216                                              pow(HAD_Nhcal,2) +
    217217                                              pow(HAD_Chcal*energy_hcal,2) +
    218                                               pow(HAD_Shcal*sqrt(energy_hcal),2) ))
    219       +
    220       gRandom->Gaus(energy_ecal, sqrt(
     218                                              pow(HAD_Shcal*sqrt(energy_hcal),2) )) ;
     219     
     220    float energyS2 = gRandom->Gaus(energy_ecal, sqrt(
    221221                                      pow(HAD_Necal,2) +
    222222                                      pow(HAD_Cecal*energy_ecal,2) +
    223                                       pow(HAD_Secal*sqrt(energy_ecal),2) ) );     
     223                                      pow(HAD_Secal*sqrt(energy_ecal),2) ) );
     224
     225        energyS = (energyS1>0)?energyS1:0 + (energyS2>0)?energyS2:0;
     226        cout << "avant: " << energyS1 + energyS2 << "\t\t" << energyS << endl;
    224227  } else {
    225228    energyS = gRandom->Gaus(energy,
Note: See TracChangeset for help on using the changeset viewer.