-
Notifications
You must be signed in to change notification settings - Fork 2
/
OHltMenu.cpp
79 lines (71 loc) · 1.96 KB
/
OHltMenu.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#include "OHltMenu.h"
using namespace std;
OHltMenu::OHltMenu()
{
}
void OHltMenu::SetMapL1SeedsOfStandardHLTPath(
std::map<TString, std::vector<TString> > smap)
{
map_L1SeedsOfStandardHLTPath = smap;
//std::cout<<map_L1SeedsOfStandardHLTPath.size()<<std::endl;
}
void OHltMenu::AddTrigger(TString trign, float presc, float eventS)
{
//used for L1 menu developemnt
names.push_back(trign);
seedcondition[trign] = trign; // l1 is it's own seed
prescales[trign] = presc;
eventSizes[trign] = eventS;
}
void OHltMenu::AddTrigger(
TString trign,
TString seedcond,
float presc,
float eventS,
int refpresc)
{
names.push_back(trign);
seedcondition[trign] = seedcond;
prescales[trign] = presc;
eventSizes[trign] = eventS;
referenceRunPrescales[trign] = refpresc;
}
void OHltMenu::AddL1forPreLoop(TString trign, float presc)
{
L1names.push_back(trign);
L1prescales[trign] = presc;
}
void OHltMenu::print()
{
cout << "Menu - isL1Menu="<<isL1Menu << " - doL1preloop="<<doL1preloop
<< endl;
cout << ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" << endl;
if (isL1Menu)
{
for (unsigned int i=0; i<names.size(); i++)
{
cout<<names[i]<<" "<<prescales[names[i]]<<" "<<eventSizes[names[i]]
<<" "<<endl;
}
}
else
{
for (unsigned int i=0; i<names.size(); i++)
{
cout<<names[i]<<" \""<<seedcondition[names[i]]<<"\" "
<<prescales[names[i]]<<" "<<eventSizes[names[i]]<<" "<<endl;
}
}
cout << ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" << endl;
if (doL1preloop)
{
cout << endl << "L1 Menu - for L1preloop"<< endl;
cout << ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" << endl;
for (unsigned int i=0; i<L1names.size(); i++)
{
cout<<L1names[i]<<" "<<L1prescales[L1names[i]]<<endl;
}
cout << ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" << endl;
}
cout << endl;
}