|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #include <TStopwatch.h>
17 #include "TObjArray.h"
18 #include "TObjString.h"
44 using namespace asg::msgUserCode;
54 Error(
APP_NAME,
"No file name received!" );
55 Error(
APP_NAME,
" Usage: %s [xAOD file name] [maxEvents] [Debug] [ConfigFile=<cfile.conf>] ",
APP_NAME );
62 std::string config_file =
"SUSYTools/SUSYTools_Default.conf";
64 for (
int i = 1 ;
i <
argc ;
i++) {
65 const char*
key = strtok(
argv[
i],
"=") ;
66 const char*
val = strtok(0,
" ") ;
71 if (strcmp(
key,
"ConfigFile") == 0) config_file = std::string(
val);
85 std::unique_ptr< TFile >
ifile( TFile::Open(
fileName,
"READ" ) );
100 Info(
APP_NAME,
"Number of events in the file: %i",
121 event.getEntry(
entry );
129 "===>>> start processing event #%i, "
130 "run #%i %i events processed so far <<<===",
133 static_cast< int >(
entry ) );
140 if( objTool.
FindSusyHP(pdgid1, pdgid2) != StatusCode::SUCCESS ){
141 Error(
APP_NAME,
"--- SOMETHING IS WRONG WITH THE SUSY PROC FINDING... ---");
145 if( pdgid1!=0 && pdgid2!=0){
146 Info(
APP_NAME ,
"--- SIGNAL ID1 : %d", pdgid1);
147 Info(
APP_NAME ,
" SIGNAL ID2 : %d", pdgid2);
150 Info(
APP_NAME ,
" SIGNAL PROC ID (DECO) : %d", acc_susyid(*ei) );
uint64_t eventNumber() const
The current event's event number.
static void enableFailure() noexcept
@ kAthenaAccess
Access containers/objects like Athena does.
uint32_t runNumber() const
The current event's run number.
StatusCode readFrom(TFile *file)
POOL::TEvent event(POOL::TEvent::kClassAccess)
int main(int argc, char *argv[])
Class describing the basic event information.
A relatively simple transient store for objects created in analysis.
StatusCode FindSusyHP(int &pdgid1, int &pdgid2) const
StatusCode retrieve(const T *&obj)
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
Tool for accessing xAOD files outside of Athena.