Fork me on GitHub

Changeset fc6300d in git


Ignore:
Timestamp:
Jun 8, 2015, 2:22:11 PM (10 years ago)
Author:
Michele Selvaggi <selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
9c491e1
Parents:
e8070b6
Message:

added isEcal flag to simple calorimeter and fill Eem and Ehad variables accordingly (answer to #639)

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cards/delphes_card_FCC_basic.tcl

    re8070b6 rfc6300d  
    226226  set EFlowTowerOutputArray eflowPhotons
    227227
     228  set IsEcal true
     229 
    228230  set EnergyMin 0.5
    229231  set EnergySignificanceMin 1.0
     
    290292  set EFlowTowerOutputArray eflowNeutralHadrons
    291293
     294  set IsEcal false
     295 
    292296  set EnergyMin 1.0
    293297  set EnergySignificanceMin 1.0
  • cards/delphes_card_LHCb.tcl

    re8070b6 rfc6300d  
    223223  set TowerOutputArray ecalTowers
    224224  set EFlowTowerOutputArray eflowPhotons
     225
     226  set IsEcal true
    225227
    226228  set EnergyMin 0.0
     
    303305  set TowerOutputArray hcalTowers
    304306  set EFlowTowerOutputArray eflowNeutralHadrons
     307
     308  set IsEcal false
    305309
    306310  set EnergyMin 0.0
  • modules/SimpleCalorimeter.cc

    re8070b6 rfc6300d  
    149149
    150150  fEnergySignificanceMin = GetDouble("EnergySignificanceMin", 0.0);
     151
     152  // flag that says if current calo is Ecal of Hcal (will then fill correct values of Eem and Ehad)
     153  fIsEcal = GetBool("IsEcal", false);
    151154
    152155  // switch on or off the dithering of the center of calorimeter towers
     
    425428  fTower->Momentum.SetPtEtaPhiE(pt, eta, phi, energy);
    426429
     430  fTower->Eem = (!fIsEcal) ? 0 : energy;
     431  fTower->Ehad = (fIsEcal) ? 0 : energy;
     432
    427433  fTower->Edges[0] = fTowerEdges[0];
    428434  fTower->Edges[1] = fTowerEdges[1];
     
    447453    pt = energy / TMath::CosH(eta);
    448454
     455    tower->Eem = (!fIsEcal) ? 0 : energy;
     456    tower->Ehad = (fIsEcal) ? 0 : energy;
     457
    449458    tower->Momentum.SetPtEtaPhiE(pt, eta, phi, energy);
    450459    fEFlowTowerOutputArray->Add(tower);
  • modules/SimpleCalorimeter.h

    re8070b6 rfc6300d  
     1
    12/*
    23 *  Delphes: a framework for fast simulation of a generic collider experiment
     
    7475  Bool_t fSmearTowerCenter;
    7576
     77  Bool_t fIsEcal; //!
     78
    7679  TFractionMap fFractionMap; //!
    7780  TBinMap fBinMap; //!
Note: See TracChangeset for help on using the changeset viewer.