42 {
43
44 using namespace asg::msgUserCode;
46
48
49
51
52
53 if ( argc < 2 ) {
55 Error(
APP_NAME,
" Usage: %s [xAOD file name] [maxEvents] [Debug] [ConfigFile=<cfile.conf>] ",
APP_NAME );
56 return 1;
57 }
58
62 std::string config_file = "SUSYTools/SUSYTools_Default.conf";
63
64 for (
int i = 1 ;
i <
argc ;
i++) {
65 const char*
key = strtok(argv[i],
"=") ;
66 const char*
val = strtok(0,
" ") ;
67
68 Info(
APP_NAME,
"processing key %s with value %s", key, val );
69
70 if (strcmp(key,
"Debug") == 0)
debug =
atoi(val);
71 if (strcmp(key, "ConfigFile") == 0) config_file = std::string(val);
72 if (strcmp(key,
"maxEvents") == 0)
entries =
atoi(val);
73 }
74
77
78
79
80
81
85 std::unique_ptr< TFile >
ifile( TFile::Open( fileName,
"READ" ) );
87
88
89
90
91#ifdef ROOTCORE
93#else
95#endif
96
97
98
101 static_cast< int >(
event.getEntries() ) );
102
103 TString xStream="";
104
106
107
110 }
111
112
114
116
117
119
120
121 event.getEntry( entry );
122
123
126
127 if (entry % period == 0) {
129 "===>>> start processing event #%i, "
130 "run #%i %i events processed so far <<<===",
133 static_cast< int >( entry ) );
134 }
135
136
137 int pdgid1 = 0;
138 int pdgid2 = 0;
139
140 if( objTool.FindSusyHP(pdgid1, pdgid2) != StatusCode::SUCCESS ){
141 Error(
APP_NAME,
"--- SOMETHING IS WRONG WITH THE SUSY PROC FINDING... ---");
142 return 1;
143 }
144
145 if( pdgid1!=0 && pdgid2!=0){
148
149 if ( acc_susyid.isAvailable(*ei) ){
150 Info(
APP_NAME ,
" SIGNAL PROC ID (DECO) : %d", acc_susyid(*ei) );
151 }
152 }
153 }
154
155
156
157
158
159
160 return 0;
161}
static void enableFailure() noexcept
Helper class to provide type-safe access to aux data.
uint32_t runNumber() const
The current event's run number.
uint64_t eventNumber() const
The current event's event number.
Tool for accessing xAOD files outside of Athena.
@ kAthenaAccess
Access containers/objects like Athena does.
A relatively simple transient store for objects created in analysis.
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
Error
The different types of error that can be flagged in the L1TopoRDO.
EventInfo_v1 EventInfo
Definition of the latest event info version.