Fork me on GitHub

Ignore:
Timestamp:
Dec 9, 2021, 8:42:12 PM (3 years ago)
Author:
christinaw97 <christina.wang@…>
Children:
a09b75f
Parents:
d612dec
Message:

Added DelphesCscClusterFormula

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/CscClusterEfficiency.cc

    rd612dec r29b722a  
    2929#include "classes/DelphesClasses.h"
    3030#include "classes/DelphesFactory.h"
    31 #include "classes/DelphesFormula.h"
     31#include "classes/DelphesCscClusterFormula.h"
    3232
    3333#include "ExRootAnalysis/ExRootClassifier.h"
     
    5555  fFormula(0), fItInputArray(0)
    5656{
    57   fFormula = new DelphesFormula;
     57  fFormula = new DelphesCscClusterFormula;
    5858}
    5959
     
    7070{
    7171  // read CscClusterEfficiency formula
    72 
     72  cout<<"initialize"<<endl;
    7373  fFormula->Compile(GetString("EfficiencyFormula", "1.0"));
    7474
     
    106106    Eem = candidate->Eem;
    107107    // apply an efficency formula
    108     //pt, eta, phi, energy
    109108    if(gRandom->Uniform() > fFormula->Eval(decayR, decayZ, Ehad, Eem)) continue;
     109
    110110
    111111    fOutputArray->Add(candidate);
Note: See TracChangeset for help on using the changeset viewer.