- Timestamp:
- Dec 9, 2021, 8:42:12 PM (3 years ago)
- Children:
- a09b75f
- Parents:
- d612dec
- Location:
- modules
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/CscClusterEfficiency.cc
rd612dec r29b722a 29 29 #include "classes/DelphesClasses.h" 30 30 #include "classes/DelphesFactory.h" 31 #include "classes/Delphes Formula.h"31 #include "classes/DelphesCscClusterFormula.h" 32 32 33 33 #include "ExRootAnalysis/ExRootClassifier.h" … … 55 55 fFormula(0), fItInputArray(0) 56 56 { 57 fFormula = new Delphes Formula;57 fFormula = new DelphesCscClusterFormula; 58 58 } 59 59 … … 70 70 { 71 71 // read CscClusterEfficiency formula 72 72 cout<<"initialize"<<endl; 73 73 fFormula->Compile(GetString("EfficiencyFormula", "1.0")); 74 74 … … 106 106 Eem = candidate->Eem; 107 107 // apply an efficency formula 108 //pt, eta, phi, energy109 108 if(gRandom->Uniform() > fFormula->Eval(decayR, decayZ, Ehad, Eem)) continue; 109 110 110 111 111 fOutputArray->Add(candidate); -
modules/CscClusterEfficiency.h
rd612dec r29b722a 32 32 class TIterator; 33 33 class TObjArray; 34 class Delphes Formula;34 class DelphesCscClusterFormula; 35 35 36 36 class CscClusterEfficiency: public DelphesModule … … 45 45 46 46 private: 47 Delphes Formula *fFormula; //!47 DelphesCscClusterFormula *fFormula; //! 48 48 49 49 TIterator *fItInputArray; //! -
modules/CscClusterId.cc
rd612dec r29b722a 29 29 #include "classes/DelphesClasses.h" 30 30 #include "classes/DelphesFactory.h" 31 #include "classes/Delphes Formula.h"31 #include "classes/DelphesCscClusterFormula.h" 32 32 33 33 #include "ExRootAnalysis/ExRootClassifier.h" … … 55 55 fFormula(0), fItInputArray(0) 56 56 { 57 fFormula = new Delphes Formula;57 fFormula = new DelphesCscClusterFormula; 58 58 } 59 59 … … 113 113 eta = (cosTheta == 1.0 ? signPz * 999.9 : momentum.Eta()); 114 114 115 NStationEff = fFormula->Eval(decayR, decayZ, Ehad); //pt is used as argument in Delphes Formula115 NStationEff = fFormula->Eval(decayR, decayZ, Ehad); //pt is used as argument in DelphesCscClusterFormula 116 116 117 117 // assign average station for the cluster -
modules/CscClusterId.h
rd612dec r29b722a 32 32 class TIterator; 33 33 class TObjArray; 34 class Delphes Formula;34 class DelphesCscClusterFormula; 35 35 36 36 class CscClusterId: public DelphesModule … … 45 45 46 46 private: 47 Delphes Formula *fFormula; //!47 DelphesCscClusterFormula *fFormula; //! 48 48 49 49 TIterator *fItInputArray; //!
Note:
See TracChangeset
for help on using the changeset viewer.