当前位置: 首页>>代码示例>>C++>>正文


C++ Test::OutputLevel方法代码示例

本文整理汇总了C++中Test::OutputLevel方法的典型用法代码示例。如果您正苦于以下问题:C++ Test::OutputLevel方法的具体用法?C++ Test::OutputLevel怎么用?C++ Test::OutputLevel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Test的用法示例。


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

示例1: runTestView

void runTestView(){

	// Load the MediPix analysis lib
	gSystem->Load("libMediPixAnalysisCore.so");

	// Get an instance of the analysis manager and load data
	AnalysisManager mpxAnalysis("/Users/ozel/Documents/thesis/processing/measurements/invacuum_28-7-14/files.txt");

	// Blobs Finder.  This is a Clustering Algorithm
	// BlobsFinder * bf = new BlobsFinder;
	// mpxAnalysis.ConnectAlgo("BlobsFinder", bf);
	// bf->changeOutputLevel(MSG::INFO);
	// bf->SetBorderExclusion(1);
	// bf->SetDiscontinuityTolerance(0);
	// bf->ReadConfiguration();

	// Your algorithm --> Test
	Test * ac = new Test;
	mpxAnalysis.ConnectAlgo("Test", ac);
	// Setting up the calibration from this algorithm by loading
	//  the 4 calibration files and the clock used for calibration. 
	//  If you fail loading any of the 5 following pieces then the 
	//  calibration won't be available but you can still run the job.
	ac->SetCalibrationConfigFile_a("calib/_Calib_a.txt");
	ac->SetCalibrationConfigFile_b("calib/_Calib_b.txt");
	ac->SetCalibrationConfigFile_c("calib/_Calib_c.txt");
	ac->SetCalibrationConfigFile_t("calib/_Calib_t.txt");
	ac->SetCalibClk(10); // MHz
	ac->ReadConfiguration();
	ac->OutputLevel(MSG::DEBUG);

	// This is an special algorithm that works as a frames viewer
	MPXViewer * v1 = new MPXViewer;
	v1->changeOutputLevel(MSG::DEBUG);
	mpxAnalysis.ConnectAlgo("MPXViewer", v1);
	//v1->SetCuts(10,10); // A minimum cut to skip uninteresting frames
	v1->SetFrameTitle("Offline Analysis");

	// Get a list of the algorithms connected
	mpxAnalysis.DumpAlgoList();

	// If you want to setup an output filename yourself
	//  otherwise MAFalda builds something convenient
	//mpxAnalysis.SetOutputNtupleFilename("outputfile.root");

	// Run !
	mpxAnalysis.Run();         // all frames
	//mpxAnalysis.Run(0, 100); // range of frames
	//mpxAnalysis.Run(1);      // ony one frame

}
开发者ID:ozel,项目名称:mafalda,代码行数:51,代码来源:runTestView.C

示例2: runRT

void runRT(){

	// Load the MediPix analysis lib
	gSystem->Load("libMediPixAnalysisCore.so");

//	TGFileInfo fi;
//	new TGFileDialog(gClient->GetRoot(), gClient->GetRoot(), kFDOpen, &fi);
//	printf(fi.fFilename);
	//return;

	// Get an instance of the analysis manager and load data
	// second parameter enables RT mode, filename must then point to a FIFO file
	AnalysisManager mpxAnalysis("frame_", kTRUE);

	// Blobs Finder.  This is a Clustering Algorithm
	// BlobsFinder * bf = new BlobsFinder;
	// mpxAnalysis.ConnectAlgo("BlobsFinder", bf);
	// bf->changeOutputLevel(MSG::INFO);
	// bf->SetBorderExclusion(1);
	// bf->SetDiscontinuityTolerance(0);
	// bf->ReadConfiguration();

	/*
   	* Fast Clustering for single hits only
   	*/
  	SimpleClustering * sc = new SimpleClustering;
  	mpxAnalysis.ConnectAlgo("SimpleClustering", sc);
  	sc->changeOutputLevel(MSG::DEBUG);

	// Your algorithm --> Test
	Test * ac = new Test;
	mpxAnalysis.ConnectAlgo("Test", ac);
	// Setting up the calibration from this algorithm by loading
	//  the 4 calibration files and the clock used for calibration. 
	//  If you fail loading any of the 5 following pieces then the 
	//  calibration won't be available but you can still run the job.
//	ac->SetCalibrationConfigFile_a("../calib/3kev/_Calib_a.txt");
//	ac->SetCalibrationConfigFile_b("../calib/3kev/_Calib_b.txt");
//	ac->SetCalibrationConfigFile_c("../calib/3kev/_Calib_c.txt");
//	ac->SetCalibrationConfigFile_t("../calib/3kev/_Calib_t.txt");
//	ac->SetCalibClk(10); // MHz
	//ac->ReadConfiguration();
	ac->OutputLevel(MSG::INFO);

	// This is an special algorithm that works as a frames viewer
	MPXViewer * v1 = new MPXViewer;
	v1->changeOutputLevel(MSG::DEBUG);
	mpxAnalysis.ConnectAlgo("MPXViewer", v1);
	// v1->SetCuts(10,10); // A minimum cut to skip uninteresting frames
	// v1->SetFrameTitle("Offline Analysis");

	// Get a list of the algorithms connected
	mpxAnalysis.DumpAlgoList();

	// If you want to setup an output filename yourself
	//  otherwise MAFalda builds something convenient
	mpxAnalysis.SetOutputNtupleFilename("outputfile.root");

	// Run !
	// if RT mode is on, don't do frame selection
	mpxAnalysis.Run();       // RT mode

}
开发者ID:ozel,项目名称:mafalda,代码行数:63,代码来源:runRT.C


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