23 void endJob(
void )
override;
31 :
m_level( config.getUntrackedParameter<
int>(
"level", 1 )),
32 m_tag( config.getUntrackedParameter<
std::
string>(
"tagInfo",
"unknown" )),
46 TTree *
tree =
new TTree(
"idToGeo",
"raw detector id association with geometry ANT");
52 Float_t v_translation[3];
55 tree->SetBranchStyle( 0 );
56 tree->Branch(
"id", &v_id,
"id/i" );
57 tree->Branch(
"points", &v_vertex,
"points[24]/F" );
58 tree->Branch(
"topology", &v_params,
"topology[9]/F" );
59 tree->Branch(
"shape", &v_shape,
"shape[5]/F" );
60 tree->Branch(
"translation", &v_translation,
"translation[3]/F" );
61 tree->Branch(
"matrix", &v_matrix,
"matrix[9]/F" );
68 for(
unsigned int i = 0;
i < 24; ++
i )
69 v_vertex[
i] = it->points[
i];
70 for(
unsigned int i = 0;
i < 9; ++
i )
71 v_params[
i] = it->topology[
i];
72 for(
unsigned int i = 0;
i < 5; ++
i )
73 v_shape[
i] = it->shape[
i];
74 for(
unsigned int i = 0;
i < 3; ++
i )
75 v_translation[
i] = it->translation[
i];
76 for(
unsigned int i = 0;
i < 9; ++
i )
77 v_matrix[
i] = it->matrix[
i];
80 file.WriteTObject( tree );
83 file.WriteTObject(
new TNamed(
"CMSSW_VERSION", gSystem->Getenv(
"CMSSW_VERSION" )));
84 file.WriteTObject(
new TNamed(
"tag",
m_tag.c_str()));
86 file.WriteTObject(
new TNamed(
"PRODUCER_VERSION",
"1"));
std::vector< FWRecoGeom::Info >::const_iterator InfoMapItr
std::string trackerTopologyXML
~DumpFWRecoGeometry(void) override
#define DEFINE_FWK_MODULE(type)
FWRecoGeom::InfoMap idToName
std::string m_outputFileName
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
void beginJob(void) override
T const * product() const
DumpFWRecoGeometry(const edm::ParameterSet &config)
void endJob(void) override