// C++ headers #include // UniGen headers #include "URun.h" #include "UEvent.h" #include "UParticle.h" #include "UDst.h" // MUST be the last one TClonesArray** UDst::uArrays = 0; //________________ void UDst::unset() { // Unset pointers uArrays = 0; } //________________ void UDst::set(TClonesArray** theUArrays) { // Set pointers uArrays = theUArrays; } //________________ void UDst::print() { // Print all information std::cout << "\n==================== Full event information ====================\n"; printRunInfo(); printEventInfo(); printParticles(); std::cout << "\n================================================================\n"; } //________________ void UDst::printRunInfo() { // Print run information run()->print(); } //________________ void UDst::printEventInfo() { // Print event information event()->print(); } //________________ void UDst::printParticles() { // Print all particles if( numberOfParticles() == 0 ) { std::cout << "No particles found!" << std::endl; return; } std::cout << "\n Particle list contains: " << numberOfParticles() << " entries\n\n"; // Particle loop for(UInt_t iPart=0; iPartprint(); } std::cout << std::endl; }