ATLAS Offline Software
Functions
ProduceDummyStripCabling.cxx File Reference
#include "IdDictParser/IdDictParser.h"
#include "InDetIdentifier/SCT_ID.h"
#include "src/ITkStripCablingAlg.h"
#include "src/OnlineIdGenerator.h"
#include <iostream>
#include <fstream>
#include <set>
#include <memory>
Include dependency graph for ProduceDummyStripCabling.cxx:

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 19 of file ProduceDummyStripCabling.cxx.

19  {
20 
22  parser.register_external_entity("InnerDetector", itkDictFilename);
23  IdDictMgr& idd = parser.parse ("IdDictParser/ATLAS_IDS.xml");
24  auto pITkId=std::make_unique<SCT_ID>();
25  pITkId->initialize_from_dictionary(idd);
27  std::ostringstream os;
29  std::set<ITkStripOnlineId> onlineIds;
30  std::set<std::uint32_t> rodIds;
31  for(auto i = pITkId->wafer_begin();i!=pITkId->wafer_end();++i){
32  pITkId->get_expanded_id(*i,e);
33  onlineIds.insert(gen(*i));
34  rodIds.insert(gen.rod(*i));
35  os<<*i<<" "<<e<<", "<<gen(*i)<<"\n";
36  }
37  std::ofstream file(outputFileName);
38  file<<"#Wafer Identifiers,Expanded Identifiers {2/2/Bec/LayerDisk/Phi/Eta/Side/0/0} and OnlineId:\n";
39  file<<"#Version 0\n";
40  file<<os.str()<<std::endl;
41  std::cout<<"File "+outputFileName+" has been created.\n";
42 
43 
44  return 0;
45 }
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
python.CaloScaleNoiseConfig.parser
parser
Definition: CaloScaleNoiseConfig.py:75
ExpandedIdentifier
Definition: DetectorDescription/Identifier/Identifier/ExpandedIdentifier.h:102
master.gen
gen
Definition: master.py:32
ITkStripCabling::OnlineIdGenerator
Definition: OnlineIdGenerator.h:26
IdDictMgr
Definition: IdDictMgr.h:14
lumiFormat.i
int i
Definition: lumiFormat.py:85
file
TFile * file
Definition: tile_monitor.h:29
IdDictParser
Definition: IdDictParser.h:12
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
AthenaPoolExample_Copy.outputFileName
string outputFileName
Definition: AthenaPoolExample_Copy.py:40