ATLAS Offline Software
Loading...
Searching...
No Matches
HLTTest Namespace Reference

Classes

class  ITestHypoTool
class  TestHypoAlg
 Invokes HypoTools and stores the result of the decision. More...
class  TestHypoTool
 Tool taking the decision for inclusive selection (one decision per object) More...
class  TestInputMaker
 Used at the start of a sequence: retrieves filtered collection via menu decision from previous step and writes it out directly so it can be used as input by the reco alg that follows in sequence. More...
class  TestRecoAlg
 Pseudo reco alg, reads input file formatted as follows: prop1:value, prop2:value; prop1:value, prop2:value; ... and created TrigComposites with prop1 & prop2 details set to corresponding values. More...

Functions

static const InterfaceID IID_ITestHypoTool ("ITestHypoTool", 1, 0)
void split (const std::string &src, char delim, std::vector< std::string > &result)
std::string trim (const std::string &str)

Function Documentation

◆ IID_ITestHypoTool()

const InterfaceID HLTTest::IID_ITestHypoTool ( "ITestHypoTool" ,
1 ,
0  )
static

◆ split()

void HLTTest::split ( const std::string & src,
char delim,
std::vector< std::string > & result )

Definition at line 23 of file TestRecoAlg.cxx.

23 {
24 std::istringstream i(src);
25 std::string element;
26 while ( getline(i, element, delim) ) {
27 result.push_back(element);
28 }
29 }

◆ trim()

std::string HLTTest::trim ( const std::string & str)

Definition at line 30 of file TestRecoAlg.cxx.

30 {
31 size_t firstNonSpace = str.find_first_not_of(' ');
32 size_t lastNonSpace = str.find_last_not_of(' ');
33 return str.substr( firstNonSpace, lastNonSpace-firstNonSpace+1 );
34 }