ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Pythia8::CustomV_EW Class Reference
Inheritance diagram for Pythia8::CustomV_EW:
Collaboration diagram for Pythia8::CustomV_EW:

Public Member Functions

 CustomV_EW ()
 
 ~CustomV_EW ()
 
virtual bool initAfterBeams () override
 
virtual bool canSetResonanceScale () override
 
virtual double scaleResonance ()
 
virtual double EventList (const Event &event)
 

Private Attributes

si_data_type m_si_data_ {}
 
si_event_info_type m_si_event_info_ {}
 

Detailed Description

Definition at line 48 of file PowhegV_EW.cxx.

Constructor & Destructor Documentation

◆ CustomV_EW()

Pythia8::CustomV_EW::CustomV_EW ( )
inline

Definition at line 52 of file PowhegV_EW.cxx.

52  {
53 
54  std::cout<<"**********************************************************"<<std::endl;
55  std::cout<<"* *"<<std::endl;
56  std::cout<<"* SI: Defining custom UserHook needed *"<<std::endl;
57  std::cout<<"* to veto QED radiation (ptmaxmatch = 1) *"<<std::endl;
58  std::cout<<"* *"<<std::endl;
59  std::cout<<"* WARNING: This code is unvalidated!!! *"<<std::endl;
60  std::cout<<"* *"<<std::endl;
61  std::cout<<"**********************************************************"<<std::endl;
62 
63 
64  Pythia8_UserHooks::UserHooksFactory::userSettings<bool>()["m_si_data_.vetoqed"]=true;
65  Pythia8_UserHooks::UserHooksFactory::userSettings<bool>()["m_si_data_.py8veto"]=true;
66  Pythia8_UserHooks::UserHooksFactory::userSettings<double>()["m_si_event_info_.vetoscale_fsr"]=10.0;
67 
68  }

◆ ~CustomV_EW()

Pythia8::CustomV_EW::~CustomV_EW ( )
inline

Definition at line 70 of file PowhegV_EW.cxx.

70 {;}

Member Function Documentation

◆ canSetResonanceScale()

virtual bool Pythia8::CustomV_EW::canSetResonanceScale ( )
inlineoverridevirtual

Definition at line 84 of file PowhegV_EW.cxx.

84  {
85  // If we are vetoing QED emissions, and ptmaxmatch = 1, and we are using PYTHIA8 based veto, set scale for QED radiation from leptons
86  // (the default would be the resonance mass)
87  std::cout << "**** SI: Allow to set scale to veto QED emissions in PYTHIA" << std::endl;
88  if ((m_si_data_.vetoqed) && (m_si_data_.py8veto)) return true;
89  else return false;
90  }

◆ EventList()

virtual double Pythia8::CustomV_EW::EventList ( const Event event)
inlinevirtual

Definition at line 103 of file PowhegV_EW.cxx.

104  {
105  event.list();
106  return false;
107  }

◆ initAfterBeams()

virtual bool Pythia8::CustomV_EW::initAfterBeams ( )
inlineoverridevirtual

Definition at line 74 of file PowhegV_EW.cxx.

74  {
75  m_si_data_.vetoqed = settingsPtr->mode("m_si_data_.vetoqed");
76  m_si_data_.py8veto = settingsPtr->mode("m_si_data_.py8veto");
77  m_si_event_info_.vetoscale_fsr = settingsPtr->mode("m_si_event_info_.vetoscale_fsr");
78  return true;
79  }

◆ scaleResonance()

virtual double Pythia8::CustomV_EW::scaleResonance ( )
inlinevirtual

Definition at line 93 of file PowhegV_EW.cxx.

93  {
94  // virtual double scaleResonance( const int iRes, const Event& event) {
95  // Set scale for the emissions from the resonace (FSR), equal to the scale stored in the LHE file
96  //std::cout << "SI in scaleResonance. Setting scale: " << si_event_info_.vetoscale_fsr << std::endl;
97  //std::cout << event[iRes].id();
98  //std::cout << "\n";
99 
101  }

Member Data Documentation

◆ m_si_data_

si_data_type Pythia8::CustomV_EW::m_si_data_ {}
private

Definition at line 110 of file PowhegV_EW.cxx.

◆ m_si_event_info_

si_event_info_type Pythia8::CustomV_EW::m_si_event_info_ {}
private

Definition at line 111 of file PowhegV_EW.cxx.


The documentation for this class was generated from the following file:
Pythia8::CustomV_EW::m_si_event_info_
si_event_info_type m_si_event_info_
Definition: PowhegV_EW.cxx:111
Pythia8::CustomV_EW::m_si_data_
si_data_type m_si_data_
Definition: PowhegV_EW.cxx:110
Pythia8::si_data_type::vetoqed
bool vetoqed
Definition: PowhegV_EW.cxx:24
Pythia8::si_event_info_type::vetoscale_fsr
double vetoscale_fsr
Definition: PowhegV_EW.cxx:30
Pythia8::si_data_type::py8veto
bool py8veto
Definition: PowhegV_EW.cxx:24