Go to the source code of this file.
◆ ATLAS_NOT_THREAD_SAFE()
int main ATLAS_NOT_THREAD_SAFE |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 14 of file test-jet-links.cxx.
17 using namespace asg::msgUserCode;
21 std::cerr <<
"usage: " <<
argv[0] <<
": <DAOD> <parent jet collection> <associated collection>"
26 std::string jets_name =
argv[2];
27 std::string linked_jets_name =
argv[3];
30 const std::string
APP_NAME =
"JetLinksTestDumper";
39 std::unique_ptr<TFile>
ifile(TFile::Open(
file.c_str(),
"READ"));
41 std::cerr <<
"Couldn't open file: " <<
file << std::endl;
48 unsigned long long nbad = 0;
49 unsigned long long ngood = 0;
50 unsigned long long entries =
event.getEntries();
54 std::cerr <<
"Couldn't load entry " <<
entry <<
" from file"
61 std::vector<const xAOD::Jet*> linked_jets;
62 if (!
jet->getAssociatedObjects<
xAOD::Jet>(linked_jets_name, linked_jets)){
69 std::cout <<
"JetLinksTestDumper Summary: found " << nbad <<
" out of " << nbad + ngood <<
" large-R jets with no valid links to associated track-jets " << std::endl;