|
|
Go to the documentation of this file.
22 void endJob(
void)
override;
30 : m_level(
config.getUntrackedParameter<
int>(
"level", 1)),
33 m_outputFileName(
config.getUntrackedParameter<
std::
string>(
"outputFileName",
"cmsRecoGeo.root")) {}
42 TTree*
tree =
new TTree(
"idToGeo",
"raw detector id association with geometry ANT");
48 Float_t v_translation[3];
51 tree->SetBranchStyle(0);
52 tree->Branch(
"id", &v_id,
"id/i");
53 tree->Branch(
"points", &v_vertex,
"points[24]/F");
54 tree->Branch(
"topology", &v_params,
"topology[9]/F");
55 tree->Branch(
"shape", &v_shape,
"shape[5]/F");
56 tree->Branch(
"translation", &v_translation,
"translation[3]/F");
57 tree->Branch(
"matrix", &v_matrix,
"matrix[9]/F");
62 for (
unsigned int i = 0;
i < 24; ++
i)
63 v_vertex[
i] = it->points[
i];
64 for (
unsigned int i = 0;
i < 9; ++
i)
65 v_params[
i] = it->topology[
i];
66 for (
unsigned int i = 0;
i < 5; ++
i)
67 v_shape[
i] = it->shape[
i];
68 for (
unsigned int i = 0;
i < 3; ++
i)
69 v_translation[
i] = it->translation[
i];
70 for (
unsigned int i = 0;
i < 9; ++
i)
71 v_matrix[
i] = it->matrix[
i];
76 file.WriteTObject(
new TNamed(
"CMSSW_VERSION", gSystem->Getenv(
"CMSSW_VERSION")));
77 file.WriteTObject(
new TNamed(
"tag",
m_tag.c_str()));
79 file.WriteTObject(
new TNamed(
"PRODUCER_VERSION",
"1"));
T const * product() const
FWRecoGeom::InfoMap idToName
std::string trackerTopologyXML
void beginJob(void) override
~DumpFWRecoGeometry(void) override
#define DEFINE_FWK_MODULE(type)
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
DumpFWRecoGeometry(const edm::ParameterSet &config)
void endJob(void) override
std::vector< FWRecoGeom::Info >::const_iterator InfoMapItr
for(int i=first, nt=offsets[nh];i< nt;i+=gridDim.x *blockDim.x)
std::string m_outputFileName