本文整理汇总了C++中KVACQParam::SetName方法的典型用法代码示例。如果您正苦于以下问题:C++ KVACQParam::SetName方法的具体用法?C++ KVACQParam::SetName怎么用?C++ KVACQParam::SetName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KVACQParam
的用法示例。
在下文中一共展示了KVACQParam::SetName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetACQParams
void KVHarpeeIC::SetACQParams()
{
// Setup acquisition parameters of this ionisation chamber.
// ACQ parameters with type 'E':
// E[detector type]_[A,B,C]_[detector number]
//
// WARNING: actually only the acquisition parameters with indice 'A'
// are defined ('B' and 'C' were not coded in e494s and e503 experiment ).
TString name;
Char_t idx[] = {'A', 'B', 'C'};
for (Int_t num = 1; num <= ARPEEIC_NSEG; num++) {
// for(Int_t i = 0; i<3; i++){
for (Int_t i = 0; i < 1; i++) {
KVACQParam* par = new KVACQParam;
name.Form("E%s_%c_%d", GetType(), idx[i], num);
par->SetName(name);
par->SetType("E");
par->SetLabel(Form("%c", idx[i]));
par->SetNumber(num);
par->SetUniqueID(CalculateUniqueID(par));
AddACQParam(par);
}
}
}
示例2: SetACQParams
void KVHarpeeSi::SetACQParams(){
// Setup the energy acquisition parameter for this silicon detector.
// This parameter has the name of the detector and has the type 'E'
// (for energy).
//
KVACQParam *par = new KVACQParam;
par->SetName( GetEBaseName() );
par->SetType("E");
par->SetNumber( GetNumber() );
par->SetUniqueID( CalculateUniqueID( par ) );
AddACQParam(par);
}
示例3: AddACQParam
void KVBIC::AddACQParam(const Char_t* type)
{
//Add an acquisition parameter of given type to this detector
//The parameters for the BIC in blocking telescopes 1, 2, and 3
//were called CI_1601_x, CI_1602_x, and CI_1603_x respectively,
//so here we have to override the KVDetector default behaviour.
if (!fACQParams)
fACQParams = new KVList();
KVACQParam* par = new KVACQParam();
TString name;
name.Form("CI_16%02d_%s", GetTelescope()->GetNumber(), type);
par->SetName(name);
par->SetDetector(this);
par->SetType(type);
fACQParams->Add(par);
}
示例4: CheckACQParam
KVACQParam* KVGANILDataReader::CheckACQParam( const Char_t* par_name )
{
//Check the named acquisition parameter.
//We look for a corresponding parameter in the list of acq params belonging to
//the current KVMultiDetArray (if one exists).
//If none is found, we create a new acq param which is added to the list of "unknown parameters"
KVACQParam *par;
if( !gMultiDetArray || !(par = gMultiDetArray->GetACQParam( par_name )) ){
//create new unknown parameter
par = new KVACQParam;
par->SetName( par_name );
if(!fExtParams){
fExtParams=new KVHashList;
fExtParams->SetOwner(kTRUE);
}
fExtParams->Add( par );
}
return par;
}