47 if (
chain ==
nullptr) {
78 event.getEntry(
entry);
79 std::cout <<
" :: Entry :: " <<
entry << std::endl;
85 std::cout <<
"The electron size is : " << electronCont->size() << std::endl;
87 std::cout <<
"----------------- CaloRings info ------------------- " << std::endl;
88 std::cout <<
"isAvailable is : " << ringsReader.isAvailable(*
electron) << std::endl;
89 std::cout <<
"(eta,phi) is : (" <<
electron->eta() <<
"," <<
electron->phi() <<
") | cluster pt is : " <<
electron->caloCluster()->pt() << std::endl;
90 if ( ringsReader.isAvailable(*
electron) ) {
93 std::cout <<
"The vectorEL size is : " << caloRingsELVec.size() << std::endl;
95 if ( clRingsEL.isValid() ) {
96 (*clRingsEL)->print(std::cout);
98 std::cout <<
"Retrieved invalid link!" << std::endl;
102 std::cout <<
"The vector size is : " <<
vec.size() << std::endl;
104 std::cout <<
"----------------- Testing cluster ------------------- " << std::endl;
106 if ( looseDec.isAvailable( *
electron) ){
108 std::cout <<
"Loose Decision is: " << std::boolalpha
109 << dec << std::noboolalpha << std::endl;
112 std::cout <<
"Medium Decision is: " << std::boolalpha
113 << dec << std::noboolalpha << std::endl;
116 std::cout <<
"Tight Decision is: " << std::boolalpha
117 << dec << std::noboolalpha << std::endl;
120 std::cout <<
"Loose Output is: " <<
output << std::endl;
123 std::cout <<
"Medium Output is: " <<
output << std::endl;
126 std::cout <<
"Tight Output is: " <<
output << std::endl;
130 std::cout <<
"Could not retrieve electrons container" << std::endl;
133 std::cout <<
"----------------- Reading directly from ElectronCaloRings ------------------- " << std::endl;
135 if (
event.
retrieve(electronCaloRings,
"ElectronCaloRings").isSuccess() ){
138 rings->print(std::cout);
141 std::cout <<
"ElectronCaloRings. nao funciona" << std::endl;
147 std::cout <<
"MetaEvent:" << std::endl;
151 TEvent metaEvent( TEvent::kClassAccess );
156 size_t nEntriesMeta = metaChain->GetEntries();
158 metaEvent.getEntry(
entry);
159 std::cout <<
" :: Entry :: " <<
entry <<
"/" << nEntriesMeta << std::endl;
160 std::cout <<
"----------------- Reading RingSetConfs ------------------- " << std::endl;
161 if ( metaEvent.retrieve(electronRingSetConf,
"ElectronRingSetsConf").isSuccess() ){
164 ringsConf->print(std::cout);
166 std::cout <<
"----------------- Printing its RawConfCollection ------------------- " << std::endl;
170 }
catch (
const std::runtime_error &
e) {
171 std::cout <<
"Coudln't read RingSetConfs, reason: " <<
e.what() << std::endl;
174 std::cout <<
"ElectronRingSetsConf not available." << std::endl;
176 if ( metaEvent.retrieve(photonRingSetConf,
"PhotonRingSetsConf").isSuccess() ){
179 ringsConf->print(std::cout);
181 std::cout <<
"----------------- Printing its RawConfCollection ------------------- " << std::endl;
185 }
catch (
const std::runtime_error &
e) {
186 std::cout <<
"Coudln't read RingSetConfs, reason: " <<
e.what() << std::endl;
189 std::cout <<
"PhotonRingSetsConf not available." << std::endl;
193 std::cout <<
"before close " << std::endl;
198 std::cout <<
"Finishing..." << std::endl;