Fork me on GitHub

Changeset 264bf40 in git


Ignore:
Timestamp:
Apr 26, 2013, 12:39:14 PM (12 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
f8d08bb
Parents:
a817a22
Message:

define BTag and TauTag as UInt_t and use them as a set of bits

Files:
9 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesClasses.h

    ra817a22 r264bf40  
    246246  Float_t DeltaPhi;  // jet radius in azimuthal angle
    247247
    248   Int_t BTag; // 0 or 1 for a jet that has been tagged as containing a heavy quark
    249   Int_t TauTag; // 0 or 1 for a jet that has been tagged as a tau
     248  UInt_t BTag; // 0 or 1 for a jet that has been tagged as containing a heavy quark
     249  UInt_t TauTag; // 0 or 1 for a jet that has been tagged as a tau
    250250
    251251  Int_t Charge; // tau charge
     
    346346  Int_t IsConstituent;
    347347 
    348   Int_t BTag;
    349   Int_t TauTag;
     348  UInt_t BTag;
     349  UInt_t TauTag;
    350350
    351351  Float_t Eem;
  • examples/delphes_card_ATLAS.tcl

    ra817a22 r264bf40  
    482482  set JetInputArray FastJetFinder/jets
    483483
     484  set BitNumber 0
     485
    484486  set DeltaR 0.5
    485487
  • examples/delphes_card_CMS.tcl

    ra817a22 r264bf40  
    485485  set JetInputArray FastJetFinder/jets
    486486
     487  set BitNumber 0
     488
    487489  set DeltaR 0.5
    488490
  • examples/delphes_card_CMS_NoVFC.tcl

    ra817a22 r264bf40  
    473473  set JetInputArray FastJetFinder/jets
    474474
     475  set BitNumber 0
     476
    475477  set DeltaR 0.5
    476478
  • examples/delphes_card_CMS_PileUp.tcl

    ra817a22 r264bf40  
    547547  set JetInputArray FastJetFinder/jets
    548548
     549  set BitNumber 0
     550
    549551  set DeltaR 0.5
    550552
  • modules/BTagging.cc

    ra817a22 r264bf40  
    9292  DelphesFormula *formula;
    9393  Int_t i, size;
     94
     95  fBitNumber = GetInt("BitNumber", 0);
    9496
    9597  fDeltaR = GetDouble("DeltaR", 0.5);
     
    202204
    203205    // apply an efficency formula
    204     jet->BTag = gRandom->Uniform() <= formula->Eval(pt, eta);
    205   }
    206 }
    207 
    208 //------------------------------------------------------------------------------
     206    jet->BTag |= (gRandom->Uniform() <= formula->Eval(pt, eta)) << fBitNumber;
     207  }
     208}
     209
     210//------------------------------------------------------------------------------
  • modules/BTagging.h

    ra817a22 r264bf40  
    3939private:
    4040
     41  Int_t fBitNumber;
     42
    4143  Double_t fDeltaR;
    4244
  • modules/Merger.cc

    ra817a22 r264bf40  
    140140  candidate->Momentum.SetPtEtaPhiE(sumPT, 0.0, 0.0, sumE);
    141141 
    142   fEnergyOutputArray->Add(candidate);}
     142  fEnergyOutputArray->Add(candidate);
     143}
    143144
    144145//------------------------------------------------------------------------------
  • modules/ModulesLinkDef.h

    ra817a22 r264bf40  
    3232#include "modules/ConstituentFilter.h"
    3333#include "modules/StatusPidFilter.h"
     34#include "modules/Cloner.h"
    3435#include "modules/ExampleModule.h"
    3536
     
    6061#pragma link C++ class ConstituentFilter+;
    6162#pragma link C++ class StatusPidFilter+;
     63#pragma link C++ class Cloner+;
    6264#pragma link C++ class ExampleModule+;
    6365
Note: See TracChangeset for help on using the changeset viewer.