CMS 3D CMS Logo

List of all members | Public Member Functions
SLHAReaderpMSSM Class Reference
Inheritance diagram for SLHAReaderpMSSM:
SLHAReaderBase

Public Member Functions

std::string getSLHA (const std::string &configDesc) override
 
 SLHAReaderpMSSM (const edm::ParameterSet &conf)
 
 ~SLHAReaderpMSSM () override
 
- Public Member Functions inherited from SLHAReaderBase
 SLHAReaderBase (const edm::ParameterSet &conf)
 
virtual ~SLHAReaderBase ()
 

Additional Inherited Members

- Static Public Member Functions inherited from SLHAReaderBase
static std::vector< std::string > splitline (const std::string &line, char delim)
 
- Protected Attributes inherited from SLHAReaderBase
TFile * file_
 
TTree * tree_
 

Detailed Description

Definition at line 8 of file SLHAReaderpMSSM.cc.

Constructor & Destructor Documentation

◆ SLHAReaderpMSSM()

SLHAReaderpMSSM::SLHAReaderpMSSM ( const edm::ParameterSet conf)
inline

Definition at line 10 of file SLHAReaderpMSSM.cc.

10 : SLHAReaderBase(conf) {}
SLHAReaderBase(const edm::ParameterSet &conf)

◆ ~SLHAReaderpMSSM()

SLHAReaderpMSSM::~SLHAReaderpMSSM ( )
inlineoverride

Definition at line 11 of file SLHAReaderpMSSM.cc.

11 {}

Member Function Documentation

◆ getSLHA()

std::string SLHAReaderpMSSM::getSLHA ( const std::string &  configDesc)
overridevirtual

Implements SLHAReaderBase.

Definition at line 18 of file SLHAReaderpMSSM.cc.

References align_cfg::iteration, SLHAReaderBase::splitline(), AlCaHLTBitMon_QueryRunRegistry::string, and SLHAReaderBase::tree_.

18  {
19  const auto& config_fields = splitline(configDesc, '_');
20  int chain = std::stoi(config_fields.at(2));
21  int iteration = std::stoi(config_fields.at(3));
22 
23  auto slhabranch = std::make_unique<TString>();
24  auto slhabranch_ptr = slhabranch.get();
25  tree_->SetBranchAddress("slhacontent", &slhabranch_ptr);
26  tree_->GetEntryWithIndex(chain, iteration);
27 
28  return std::string(*slhabranch);
29 }
static std::vector< std::string > splitline(const std::string &line, char delim)