• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ declareProperty函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中declareProperty函数的典型用法代码示例。如果您正苦于以下问题:C++ declareProperty函数的具体用法?C++ declareProperty怎么用?C++ declareProperty使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了declareProperty函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: CustomIncidentAlg

 CustomIncidentAlg(const std::string& name, ISvcLocator *pSvcLocator):
   GaudiAlgorithm(name, pSvcLocator) {
   declareProperty("EventCount", m_eventCount = 3,
       "Number of events to let go before firing the incident.");
   declareProperty("Incident", m_incident = "",
       "Type of incident to fire.");
 }
开发者ID:l1calo,项目名称:gaudi,代码行数:7,代码来源:TestingAlgs.cpp


示例2: declareProperty

/** Initialize the algorithm's properties.
   */
void PoldiIndexKnownCompounds::init() {
  declareProperty(make_unique<WorkspaceProperty<TableWorkspace>>(
                      "InputWorkspace", "", Direction::Input),
                  "Workspace that contains unindexed peaks.");

  declareProperty(make_unique<ArrayProperty<std::string>>("CompoundWorkspaces"),
                  "A comma-separated list of workspace names or a workspace "
                  "group. Each workspace must contain a list of indexed "
                  "reflections.");

  declareProperty(
      Kernel::make_unique<ArrayProperty<double>>("Tolerances",
                                                 std::vector<double>(1, 0.01)),
      "Maximum relative tolerance delta(d)/d for lines to be indexed. Either "
      "one value or one for each compound.");

  declareProperty(Kernel::make_unique<ArrayProperty<double>>(
                      "ScatteringContributions", std::vector<double>(1, 1.0)),
                  "Approximate scattering contribution ratio of the compounds. "
                  "If omitted, all are assumed to contribute to scattering "
                  "equally.");

  declareProperty(make_unique<WorkspaceProperty<WorkspaceGroup>>(
                      "OutputWorkspace", "", Direction::Output),
                  "A workspace group that contains workspaces with indexed and "
                  "unindexed reflections from the input workspace.");
}
开发者ID:DanNixon,项目名称:mantid,代码行数:29,代码来源:PoldiIndexKnownCompounds.cpp


示例3: GaudiAlgorithm

DelphesSimulation::DelphesSimulation(const std::string& name, ISvcLocator* svcLoc):
GaudiAlgorithm(name, svcLoc) ,
  m_DelphesCard(),
  m_Delphes(nullptr),
  m_hepMCConverter(nullptr),
  m_eventCounter(0),
  m_outRootFile(nullptr),
  m_outRootFileName(""),
  m_treeWriter(nullptr),
  m_branchEvent(nullptr),
  m_confReader(nullptr),
  m_allParticles(nullptr),
  m_stableParticles(nullptr),
  m_partons(nullptr)
{
  //declareProperty("filename", m_filename="" , "Name of the HepMC file to read");
  declareProperty("DelphesCard"      , m_DelphesCard              , "Name of Delphes tcl config file with detector and simulation parameters");
  declareProperty("ROOTOutputFile"   , m_outRootFileName          , "Name of Delphes Root output file, if defined, the Delphes standard tree write out (in addition to FCC-EDM based output to transient data store)");

  declareInput("hepmc", m_hepmcHandle);
  declareProperty("outputs", m_saveToolNames);

  declareOutput("genParticles"      , m_handleGenParticles, "genParticles");
  declareOutput("genVertices"       , m_handleGenVertices, "genVertices");
}
开发者ID:faltovaj,项目名称:FCCSW,代码行数:25,代码来源:DelphesSimulation.cpp


示例4: StopLoopAlg

 StopLoopAlg(const std::string& name, ISvcLocator *pSvcLocator):
   GaudiAlgorithm(name, pSvcLocator) {
   declareProperty("EventCount", m_eventCount = 3,
       "Number of events to let go before breaking the event loop");
   declareProperty("Mode", m_mode = "failure",
       "Type of interruption ['exception', 'stopRun', 'failure']");
 }
开发者ID:l1calo,项目名称:gaudi,代码行数:7,代码来源:TestingAlgs.cpp


示例5: Algorithm

// Standard Constructor
EvtCollectionStream::EvtCollectionStream(const std::string& name, ISvcLocator* pSvcLocator)
: Algorithm(name, pSvcLocator)
{
  m_storeName = "TagCollectionSvc";
  declareProperty("ItemList",   m_itemNames);
  declareProperty("EvtDataSvc", m_storeName);
}
开发者ID:atlas-org,项目名称:gaudi,代码行数:8,代码来源:EvtCollectionStream.cpp


示例6: SignallingAlg

 SignallingAlg(const std::string& name, ISvcLocator *pSvcLocator):
     GaudiAlgorithm(name, pSvcLocator){
   declareProperty("EventCount", m_eventCount = 3,
       "Number of events to let go before raising the signal");
   declareProperty("Signal", m_signal = SIGINT,
       "Signal to raise");
 }
开发者ID:l1calo,项目名称:gaudi,代码行数:7,代码来源:TestingAlgs.cpp


示例7: GaudiAlgorithm

MergeHits::MergeHits(const std::string& name, ISvcLocator* svcLoc) : 
GaudiAlgorithm(name, svcLoc)
{
  declareProperty("positionedHits", m_positionedHits, "Positioned hits (Input)");
  declareProperty("mergedHits", m_mergedHits, "Merged Tracker hits (Output)");
  declareProperty("trackHits", m_trackHitHandle, "Dummy Hit collection (output)");
}
开发者ID:HEP-FCC,项目名称:FCCSW,代码行数:7,代码来源:MergeHits.cpp


示例8: PutDataObjectAlg

 PutDataObjectAlg(const std::string& name, ISvcLocator *pSvcLocator):
   GaudiAlgorithm(name, pSvcLocator){
   declareProperty("Paths", m_paths,
                   "List of paths in the transient store to load");
   declareProperty("DataSvc", m_dataSvc = "EventDataSvc",
                   "Name of the data service to use");
 }
开发者ID:l1calo,项目名称:gaudi,代码行数:7,代码来源:TestingAlgs.cpp


示例9: declareProperty

/** Initialize the algorithm's properties.
 */
void ReflectometrySumInQ::init() {
  auto inputWSValidator = boost::make_shared<Kernel::CompositeValidator>();
  inputWSValidator->add<API::WorkspaceUnitValidator>("Wavelength");
  inputWSValidator->add<API::InstrumentValidator>();
  auto mandatoryNonnegative = boost::make_shared<Kernel::CompositeValidator>();
  mandatoryNonnegative->add<Kernel::MandatoryValidator<double>>();
  auto nonnegative = boost::make_shared<Kernel::BoundedValidator<double>>();
  nonnegative->setLower(0.);
  mandatoryNonnegative->add(nonnegative);
  declareWorkspaceInputProperties<API::MatrixWorkspace,
                                  API::IndexType::SpectrumNum |
                                      API::IndexType::WorkspaceIndex>(
      Prop::INPUT_WS, "A workspace in X units of wavelength to be summed.",
      inputWSValidator);
  declareProperty(
      Kernel::make_unique<API::WorkspaceProperty<API::MatrixWorkspace>>(
          Prop::OUTPUT_WS, "", Kernel::Direction::Output),
      "A single histogram workspace containing the result of summation in Q.");
  declareProperty(
      Prop::BEAM_CENTRE, EMPTY_DBL(), mandatoryNonnegative,
      "Fractional workspace index of the specular reflection centre.");
  declareProperty(Prop::IS_FLAT_SAMPLE, true,
                  "If true, the summation is handled as the standard divergent "
                  "beam case, otherwise as the non-flat sample case.");
  declareProperty(Prop::PARTIAL_BINS, false,
                  "If true, use the full projected wavelength range possibly "
                  "including partially filled bins.");
}
开发者ID:mganeva,项目名称:mantid,代码行数:30,代码来源:ReflectometrySumInQ.cpp


示例10: declareProperty

 /** Initialize the algorithm's properties.
  */
 void UnaryOperationMD::init()
 {
   declareProperty(new WorkspaceProperty<IMDWorkspace>(inputPropName(),"",Direction::Input),
       "A MDEventWorkspace or MDHistoWorkspace on which to apply the operation.");
   declareProperty(new WorkspaceProperty<IMDWorkspace>(outputPropName(),"",Direction::Output),
       "Name of the output MDEventWorkspace or MDHistoWorkspace.");
   this->initExtraProperties();
 }
开发者ID:trnielsen,项目名称:mantid,代码行数:10,代码来源:UnaryOperationMD.cpp


示例11: GaudiHistoAlg

//=============================================================================
// Standard constructor, initializes variables
//=============================================================================
  HistoTimingAlg::HistoTimingAlg( const std::string& name,
                                  ISvcLocator* pSvcLocator)
    : GaudiHistoAlg ( name , pSvcLocator )
{
  declareProperty( "UseLookup", m_useGaudiAlg = false );
  declareProperty( "NumHistos", m_nHistos = 20 );
  declareProperty( "NumTracks", m_nTracks = 30 );
}
开发者ID:atlas-org,项目名称:gaudi,代码行数:11,代码来源:HistoTimingAlg.cpp


示例12: GaudiTool

NoiseCaloCellsTool::NoiseCaloCellsTool(const std::string& type,const std::string& name, const IInterface* parent) 
  : GaudiTool(type, name, parent)
{
  declareInterface<INoiseCaloCellsTool>(this);
  declareProperty("cellNoise", m_cellNoise=50.0);
  //remove cells with energy bellow filterThreshold (threshold is multiplied by a cell noise sigma)
  declareProperty("filterNoiseThreshold", m_filterThreshold=3);
}
开发者ID:faltovaj,项目名称:FCCSW,代码行数:8,代码来源:NoiseCaloCellsTool.cpp


示例13: GaudiAlgorithm

CreateCaloCells::CreateCaloCells(const std::string& name, ISvcLocator* svcLoc) : GaudiAlgorithm(name, svcLoc) {
  declareProperty("hits", m_hits, "Hits from which to create cells (input)");
  declareProperty("cells", m_cells, "The created calorimeter cells (output)");

  declareProperty("calibTool", m_calibTool, "Handle for tool to calibrate Geant4 energy to EM scale tool");
  declareProperty("noiseTool", m_noiseTool, "Handle for the calorimeter cells noise tool");
  declareProperty("geometryTool", m_geoTool, "Handle for the geometry tool");
}
开发者ID:clementhelsens,项目名称:FCCSW,代码行数:8,代码来源:CreateCaloCells.cpp


示例14: ConversionSvc

//-----------------------------------------------------------------------------
RootHistCnv::PersSvc::PersSvc(const std::string& name, ISvcLocator* svc)
//-----------------------------------------------------------------------------
: ConversionSvc(name, svc, ROOT_StorageType), m_hfile(0), m_prtWar(false) {
  declareProperty("OutputFile", m_defFileName = undefFileName);
  declareProperty("ForceAlphaIds", m_alphaIds = false);
  declareProperty("OutputEnabled", m_outputEnabled = true,
                  "Flag to enable/disable the output to file.");
}
开发者ID:atlas-org,项目名称:gaudi,代码行数:9,代码来源:PersSvc.cpp


示例15: GaudiAlgorithm

CreatePositionedHit::CreatePositionedHit(const std::string& name, ISvcLocator* svcLoc)
: GaudiAlgorithm(name, svcLoc) {
  declareInput("caloCells", m_caloCells,"caloCells");
  declareOutput("caloPositionedHits", m_caloPositionedHits,"caloPositionedHits");
  declareProperty("readoutName", m_readoutName="ECalHitsNew");
  declareProperty("activeFieldName", m_activeFieldName="active_layer");
  declareProperty("activeVolumeName", m_activeVolumeName="LAr_sensitive");
}
开发者ID:jlingema,项目名称:FCCSW,代码行数:8,代码来源:CreatePositionedHit.cpp


示例16: GaudiAlgorithm

MergeCells::MergeCells(const std::string& aName, ISvcLocator* aSvcLoc):
GaudiAlgorithm(aName, aSvcLoc){
  declareInput("inhits", m_inHits,"hits/caloInHits");
  declareOutput("outhits", m_outHits,"hits/caloOutHits");
  declareProperty("readout", m_readoutName);
  declareProperty("identifier", m_idToMerge);
  declareProperty("merge", m_numToMerge = 0);
  declareProperty("debugPrint", m_debugPrint = 10);
}
开发者ID:jlingema,项目名称:FCCSW,代码行数:9,代码来源:MergeCells.cpp


示例17: AlgTool

G4SaveSmearedParticles::G4SaveSmearedParticles(const std::string& aType, const std::string& aName, const IInterface* aParent) :
  AlgTool(aType, aName, aParent) {
  declareInterface<IG4SaveOutputTool>(this);
  declareOutput("particles", m_particles,"particles/smearedParticles");
  declareOutput("particlesMCparticles", m_particlesMCparticles,"particles/smearedParticles");
  // needed for AlgTool wit output/input until it appears in Gaudi AlgTool constructor
  declareProperty("DataInputs", inputDataObjects());
  declareProperty("DataOutputs", outputDataObjects());
}
开发者ID:Ada15764,项目名称:FCCSW,代码行数:9,代码来源:G4SaveSmearedParticles.cpp


示例18: GetDataObjectAlg

 GetDataObjectAlg(const std::string& name, ISvcLocator *pSvcLocator):
   GaudiAlgorithm(name, pSvcLocator){
   declareProperty("Paths", m_paths,
                   "List of paths in the transient store to load");
   declareProperty("DataSvc", m_dataSvc = "EventDataSvc",
                   "Name of the data service to use");
   declareProperty("IgnoreMissing", m_ignoreMissing=false,
                   "if True, missing objects will not beconsidered an error");
 }
开发者ID:l1calo,项目名称:gaudi,代码行数:9,代码来源:TestingAlgs.cpp


示例19: declareProperty

//--------------------------------------------------------------------------
// Private methods
//--------------------------------------------------------------------------
/// Initialisation method.
void LoadTBL::init() {
  declareProperty(Kernel::make_unique<FileProperty>("Filename", "",
                                                    FileProperty::Load, ".tbl"),
                  "The name of the table file to read, including its full or "
                  "relative path. The file extension must be .tbl");
  declareProperty(make_unique<WorkspaceProperty<ITableWorkspace>>(
                      "OutputWorkspace", "", Direction::Output),
                  "The name of the workspace that will be created.");
}
开发者ID:DanNixon,项目名称:mantid,代码行数:13,代码来源:LoadTBL.cpp


示例20: GaudiTool

SimG4ParticleSmearSimple::SimG4ParticleSmearSimple(const std::string& type, const std::string& name, const IInterface* parent):
    GaudiTool(type, name, parent) {
  declareInterface<ISimG4ParticleSmearTool>(this);
  declareProperty("detectorNames", m_volumeNames);
  declareProperty("sigma", m_sigma = 0.01);
  declareProperty("minP", m_minP = 0);
  declareProperty("maxP", m_maxP = 0);
  declareProperty("maxEta", m_maxEta = 0);
}
开发者ID:hegner,项目名称:FCCSW,代码行数:9,代码来源:SimG4ParticleSmearSimple.cpp



注:本文中的declareProperty函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ decltype函数代码示例发布时间:2022-05-30
下一篇:
C++ declareControl函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap