Fork me on GitHub

Changeset 264bf40 in git for modules


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

Location:
modules
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • 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.