|
ATLAS Offline Software
|
Go to the documentation of this file.
47 if (
chain ==
nullptr) {
76 event.getEntry(
entry);
77 std::cout <<
" :: Entry :: " <<
entry << std::endl;
83 std::cout <<
"The electron size is : " << electronCont->
size() << std::endl;
85 std::cout <<
"----------------- CaloRings info ------------------- " << std::endl;
86 std::cout <<
"isAvailable is : " << ringsReader.isAvailable(*
electron) << std::endl;
87 std::cout <<
"(eta,phi) is : (" <<
electron->eta() <<
"," <<
electron->phi() <<
") | cluster pt is : " <<
electron->caloCluster()->pt() << std::endl;
88 if ( ringsReader.isAvailable(*
electron) ) {
91 std::cout <<
"The vectorEL size is : " << caloRingsELVec.size() << std::endl;
93 if ( clRingsEL.isValid() ) {
94 (*clRingsEL)->print(std::cout);
96 std::cout <<
"Retrieved invalid link!" << std::endl;
100 std::cout <<
"The vector size is : " <<
vec.size() << std::endl;
102 std::cout <<
"----------------- Testing cluster ------------------- " << std::endl;
106 std::cout <<
"Loose Decision is: " << std::boolalpha
107 << dec << std::noboolalpha << std::endl;
110 std::cout <<
"Medium Decision is: " << std::boolalpha
111 << dec << std::noboolalpha << std::endl;
114 std::cout <<
"Tight Decision is: " << std::boolalpha
115 << dec << std::noboolalpha << std::endl;
118 std::cout <<
"Loose Output is: " <<
output << std::endl;
121 std::cout <<
"Medium Output is: " <<
output << std::endl;
124 std::cout <<
"Tight Output is: " <<
output << std::endl;
128 std::cout <<
"Could not retrieve electrons container" << std::endl;
131 std::cout <<
"----------------- Reading directly from ElectronCaloRings ------------------- " << std::endl;
133 if (
event.
retrieve(electronCaloRings,
"ElectronCaloRings").isSuccess() ){
136 rings->print(std::cout);
139 std::cout <<
"ElectronCaloRings. nao funciona" << std::endl;
145 std::cout <<
"MetaEvent:" << std::endl;
149 TEvent metaEvent( TEvent::kClassAccess );
154 size_t nEntriesMeta = metaChain->GetEntries();
157 std::cout <<
" :: Entry :: " <<
entry <<
"/" << nEntriesMeta << std::endl;
158 std::cout <<
"----------------- Reading RingSetConfs ------------------- " << std::endl;
159 if ( metaEvent.
retrieve(electronRingSetConf,
"ElectronRingSetsConf").isSuccess() ){
162 ringsConf->print(std::cout);
164 std::cout <<
"----------------- Printing its RawConfCollection ------------------- " << std::endl;
168 }
catch (
const std::runtime_error &
e) {
169 std::cout <<
"Coudln't read RingSetConfs, reason: " <<
e.what() << std::endl;
172 std::cout <<
"ElectronRingSetsConf not available." << std::endl;
174 if ( metaEvent.
retrieve(photonRingSetConf,
"PhotonRingSetsConf").isSuccess() ){
177 ringsConf->print(std::cout);
179 std::cout <<
"----------------- Printing its RawConfCollection ------------------- " << std::endl;
183 }
catch (
const std::runtime_error &
e) {
184 std::cout <<
"Coudln't read RingSetConfs, reason: " <<
e.what() << std::endl;
187 std::cout <<
"PhotonRingSetsConf not available." << std::endl;
191 std::cout <<
"before close " << std::endl;
196 std::cout <<
"Finishing..." << std::endl;
207 for (
int i = 1;
i <
argc;
i++) {
Class holding the RingSet configuration used for the Reconstruction.
static void print(const RawConf &raw, std::ostream &stream)
Prints rawConf.
#define RETURN_CHECK(CONTEXT, EXP)
Helper macro for checking return codes in a compact form in the code.
std::vector< RawConf > RawConfCollection
typedef The raw configuration structure data holder
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
std::vector< size_t > vec
Helper class to provide constant type-safe access to aux data.
static void getRawConfCol(RawConfCollection &rawConfCol, const RingSetConfContainer_v1 *container)
Retrieve RawConfCollection from RingSetConf container.
StatusCode readFrom(TFile *file)
POOL::TEvent event(POOL::TEvent::kClassAccess)
::Int_t getEntry(::Long64_t entry, ::Int_t getall=0)
Function loading a given entry of the input TTree.
int main(int argc, char *argv[])
Class summarizing the particle interaction throughout the Calorimeter (its shower shape).
ElementLink implementation for ROOT usage.
TChain * getChain(int argc, char *argv[], const char *chainName="CollectionTree")
const caloRingsReader_t & getCaloRingsReader()
Get CaloRings accessor with read only permissions.
Class describing the basic event information.
StatusCode retrieve(const T *&obj)
StatusCode retrieve(const T *&obj, const std::string &key)
Retrieve either an input or an output object from the event.
StatusCode readFrom(::TFile *file, Bool_t useTreeCache=kTRUE, const char *treeName=EVENT_TREE_NAME)
Connect the object to a new input file.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
Error
The different types of error that can be flagged in the L1TopoRDO.
std::vector< ElementLink< CaloRingsContainer > > CaloRingsLinks
ElementLink type pointing at such objects.
size_type size() const noexcept
Returns the number of elements in the collection.
Tool for accessing xAOD files outside of Athena.
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.