13 {
14 std::unique_ptr<TrigConf::L1ThrExtraInfoBase> extraInfo(nullptr);
15
16 if( thrTypeName == "EM" )
17 return std::make_unique<L1ThrExtraInfo_EMTAULegacy>(thrTypeName, data);
18
19 if( thrTypeName == "TAU" )
20 return std::make_unique<L1ThrExtraInfo_EMTAULegacy>(thrTypeName, data);
21
22 if( thrTypeName == "JET" )
23 return std::make_unique<L1ThrExtraInfo_JETLegacy>(thrTypeName, data);
24
25 if( thrTypeName == "XS" )
26 return std::make_unique<L1ThrExtraInfo_XSLegacy>(thrTypeName, data);
27
28 if( thrTypeName == "MU" )
29 return std::make_unique<L1ThrExtraInfo_MU>(thrTypeName, data);
30
31 if( thrTypeName == "eEM" )
32 return std::make_unique<L1ThrExtraInfo_eEM>(thrTypeName, data);
33
34 if( thrTypeName == "jEM" )
35 return std::make_unique<L1ThrExtraInfo_jEM>(thrTypeName, data);
36
37 if( thrTypeName == "eTAU" )
38 return std::make_unique<L1ThrExtraInfo_eTAU>(thrTypeName, data);
39
40 if( thrTypeName == "jTAU" )
41 return std::make_unique<L1ThrExtraInfo_jTAU>(thrTypeName, data);
42
43 if( thrTypeName == "cTAU" )
44 return std::make_unique<L1ThrExtraInfo_cTAU>(thrTypeName, data);
45
46 if( thrTypeName == "jJ" )
47 return std::make_unique<L1ThrExtraInfo_jJ>(thrTypeName, data);
48
49 if( thrTypeName == "jLJ" )
50 return std::make_unique<L1ThrExtraInfo_jLJ>(thrTypeName, data);
51
52 if( thrTypeName == "gJ" )
53 return std::make_unique<L1ThrExtraInfo_gJ>(thrTypeName, data);
54
55 if( thrTypeName == "gLJ" )
56 return std::make_unique<L1ThrExtraInfo_gLJ>(thrTypeName, data);
57
58 if( thrTypeName == "jXE" )
59 return std::make_unique<L1ThrExtraInfo_jXE>(thrTypeName, data);
60
61 if( thrTypeName == "jTE" )
62 return std::make_unique<L1ThrExtraInfo_jTE>(thrTypeName, data);
63
64 if( thrTypeName == "gXE" )
65 return std::make_unique<L1ThrExtraInfo_gXE>(thrTypeName, data);
66
67 if( thrTypeName == "gTE" )
68 return std::make_unique<L1ThrExtraInfo_gTE>(thrTypeName, data);
69
70 if( thrTypeName == "cXE" )
71 return std::make_unique<L1ThrExtraInfo_cXE>(thrTypeName, data);
72
73
74 return std::make_unique<L1ThrExtraInfoBase>(thrTypeName, data);
75}