22 void endJob(
void)
override;
31 : m_level(config.getUntrackedParameter<int>(
"level", 1)),
32 m_tag(config.getUntrackedParameter<std::
string>(
"tagInfo",
"unknown")),
34 m_outputFileName(config.getUntrackedParameter<std::
string>(
"outputFileName",
"cmsRecoGeo.root")),
43 TTree*
tree =
new TTree(
"idToGeo",
"raw detector id association with geometry ANT");
49 Float_t v_translation[3];
52 tree->SetBranchStyle(0);
53 tree->Branch(
"id", &v_id,
"id/i");
54 tree->Branch(
"points", &v_vertex,
"points[24]/F");
55 tree->Branch(
"topology", &v_params,
"topology[9]/F");
56 tree->Branch(
"shape", &v_shape,
"shape[5]/F");
57 tree->Branch(
"translation", &v_translation,
"translation[3]/F");
58 tree->Branch(
"matrix", &v_matrix,
"matrix[9]/F");
63 for (
unsigned int i = 0;
i < 24; ++
i)
64 v_vertex[
i] = it->points[
i];
65 for (
unsigned int i = 0;
i < 9; ++
i)
66 v_params[
i] = it->topology[
i];
67 for (
unsigned int i = 0;
i < 5; ++
i)
68 v_shape[
i] = it->shape[
i];
69 for (
unsigned int i = 0;
i < 3; ++
i)
70 v_translation[
i] = it->translation[
i];
71 for (
unsigned int i = 0;
i < 9; ++
i)
72 v_matrix[
i] = it->matrix[
i];
77 file.WriteTObject(
new TNamed(
"CMSSW_VERSION", gSystem->Getenv(
"CMSSW_VERSION")));
78 file.WriteTObject(
new TNamed(
"tag",
m_tag.c_str()));
79 file.WriteTObject(&geoh.product()->extraDet,
"ExtraDetectors");
80 file.WriteTObject(
new TNamed(
"PRODUCER_VERSION",
"1"));
82 file.WriteTObject(
new TNamed(
"TrackerTopology", geoh.product()->trackerTopologyXML));
std::vector< FWRecoGeom::Info >::const_iterator InfoMapItr
~DumpFWRecoGeometry(void) override
#define DEFINE_FWK_MODULE(type)
std::string m_outputFileName
const edm::ESGetToken< FWRecoGeometry, FWRecoGeometryRecord > m_geomToken
for(Iditer=Id.begin();Iditer!=Id.end();Iditer++)
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
void beginJob(void) override
DumpFWRecoGeometry(const edm::ParameterSet &config)
void endJob(void) override
tuple config
parse the configuration file
ESTransientHandle< T > getTransientHandle(const ESGetToken< T, R > &iToken) const