|
ATLAS Offline Software
|
Go to the source code of this file.
|
TChain * | getChain (int argc, char *argv[], const char *chainName="CollectionTree") |
|
int | main (int argc, char *argv[]) |
|
◆ getChain()
TChain* getChain |
( |
int |
argc, |
|
|
char * |
argv[], |
|
|
const char * |
chainName = "CollectionTree" |
|
) |
| |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 44 of file ringsHist.cxx.
50 if (
chain ==
nullptr) {
70 auto hRingsE =
new TH1F(
"RingsE",
"Rings energy dist", 30, 0.0, 1.0);
71 hRingsE->GetXaxis()->SetCanExtend(kTRUE);
72 hRingsE->SetStats(
false);
74 auto hOutput =
new TH1F(
"NeuralRingerOffline",
"Neural Ringer Offline", 30, -1.0, 1.0);
75 hOutput->SetStats(
false);
77 auto hNNvrEta =
new TH2F(
"NNOutput vs rEta",
78 "NNOutput w.r.t rEta;rEta;NNOutput",
79 50, 0, 1.2, 50, -1.00, 1.00);
80 hNNvrEta->SetOption(
"COLZ");
81 hNNvrEta->SetStats(
false);
85 std::vector<float> ringsE;
91 event.getEntry(
entry);
100 (*clRingsEL)->exportRingsTo(ringsE);
101 for (
auto ringE : ringsE ){
102 hRingsE->Fill( ringE );
113 std::cout <<
"Could not retrieve electrons container" << std::endl;
120 TEvent metaEvent( TEvent::kBranchAccess );
125 size_t nEntriesMeta = metaChain->GetEntries();
127 metaEvent.getEntry(
entry);
128 std::cout <<
" :: Entry :: " <<
entry <<
"/" << nEntriesMeta << std::endl;
129 std::cout <<
"----------------- Reading RingSetConfs ------------------- " << std::endl;
130 if ( metaEvent.retrieve(electronRingSetConf,
"ElectronRingSetsConf").isSuccess() ){
133 ringsConf->print(std::cout);
135 std::cout <<
"----------------- Printing its RawConfCollection ------------------- " << std::endl;
139 }
catch (
const std::runtime_error &
e) {
140 std::cout <<
"Coudln't read RingSetConfs, reason: " <<
e.what() << std::endl;
143 std::cout <<
"ElectronRingSetsConf not available." << std::endl;
148 auto canvas =
new TCanvas(
"RingsEnergyHist");
150 canvas->SaveAs(
"ringsE.gif");
151 canvas->SaveAs(
"ringsE.eps");
152 canvas =
new TCanvas(
"NNOutput");
154 canvas->SaveAs(
"nnOutput.gif");
155 canvas->SaveAs(
"nnOutput.eps");
156 canvas =
new TCanvas(
"NNOutVsReta");
158 canvas->SaveAs(
"nnWrtReta.gif");
159 canvas->SaveAs(
"nnWrtReta.eps");
◆ APP_NAME
const char* APP_NAME = "ringsHist" |
◆ OUTPUT_FILE
const char* OUTPUT_FILE = "histRings.root" |
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
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.
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
StatusCode readFrom(TFile *file)
TChain * getChain(int argc, char *argv[], const char *chainName="CollectionTree")
POOL::TEvent event(POOL::TEvent::kClassAccess)
ElementLink implementation for ROOT usage.
const caloRingsReader_t & getCaloRingsReader()
Get CaloRings accessor with read only permissions.
Class describing the basic event information.
StatusCode retrieve(const T *&obj)
Error
The different types of error that can be flagged in the L1TopoRDO.
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
std::vector< ElementLink< CaloRingsContainer > > CaloRingsLinks
ElementLink type pointing at such objects.
Tool for accessing xAOD files outside of Athena.
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.