ATLAS Offline Software
Functions
Trigger/TrigAnalysis/TrigInDetAnalysisUser/Readcards/src/main.cxx File Reference
#include <iostream>
#include <vector>
#include <string>
#include "ReadCards.h"
Include dependency graph for Trigger/TrigAnalysis/TrigInDetAnalysisUser/Readcards/src/main.cxx:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Author
mark sutton
Date
Fri 11 Jan 2019 07:41:26 CET

Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration

Definition in file Trigger/TrigAnalysis/TrigInDetAnalysisUser/Readcards/src/main.cxx.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 20 of file Trigger/TrigAnalysis/TrigInDetAnalysisUser/Readcards/src/main.cxx.

21 {
22  if (argc<3) return -1;
23 
24  ReadCards r(argv[1]);
25 
26  double buffer = r.GetValue("buffer");
27  double buffer2 = r.GetValue("buffer2");
28  double buffer3 = r.GetValue("buffer3");
29  string s = r.GetString("s");
30 
31  vector<double> dvec = r.GetVector("dvec");
32  vector<string> svec = r.GetStringVector("svec");
33 
34 
35  cout << "buffer=" << buffer << endl;
36  cout << "buffer2=" << buffer2 << endl;
37  cout << "buffer3=" << buffer3 << endl;
38  cout << "s=" << s << endl;
39 
40  for ( int i=0 ; i<dvec.size() ; i++ ) cout << "dvec[" << i << "]=" << dvec[i] << endl;
41  for ( int i=0 ; i<svec.size() ; i++ ) cout << "svec[" << i << "]=" << svec[i] << endl;
42 
43 
44  ReadCards r2(argv[2]);
45 
46  return 0;
47 }
beamspotman.r
def r
Definition: beamspotman.py:676
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
LArCellConditions.argv
argv
Definition: LArCellConditions.py:112
MCP::ScaleSmearParam::r2
@ r2
createCoolChannelIdFile.buffer
buffer
Definition: createCoolChannelIdFile.py:12
ReadCards
Get tag-value pairs from a file.
Definition: ReadCards.h:50
lumiFormat.i
int i
Definition: lumiFormat.py:92
DQHistogramMergeRegExp.argc
argc
Definition: DQHistogramMergeRegExp.py:20