9 #include "TGeoManager.h"
23 virtual void endJob(
void );
29 : m_level( config.getUntrackedParameter<int>(
"level", 1 ))
39 TGeoManager *
geom = geoh.product()->manager();
42 s <<
"cmsTGeoRecoGeom" <<
m_level <<
".root";
43 TFile
file(
s.str().c_str(),
"RECREATE" );
45 TTree *
tree =
new TTree(
"idToGeo",
"Raw detector id association with geometry" );
47 TString *v_path(
new TString );
52 tree->SetBranchStyle( 0 );
53 tree->Branch(
"id", &v_id,
"id/i" );
54 tree->Branch(
"path", &v_name,
"path/C" );
55 tree->Branch(
"points", &v_vertex,
"points[24]/F" );
56 tree->Branch(
"topology", &v_params,
"topology[9]/F" );
58 for( std::map<unsigned int, FWTGeoRecoGeometry::Info>::const_iterator it = geoh.product()->idToName.begin(),
59 end = geoh.product()->idToName.end();
63 *v_path = it->second.name.c_str();
64 for(
unsigned int i = 0;
i < 24; ++
i )
65 v_vertex[
i] = it->second.points[
i];
66 for(
unsigned int i = 0;
i < 9; ++
i )
67 v_params[
i] = it->second.topology[
i];
68 assert( it->second.name.size() < 1000 );
69 strncpy( v_name, it->second.name.c_str(), 1000 );
#define DEFINE_FWK_MODULE(type)
virtual void beginJob(void)
DumpFWTGeoRecoGeometry(const edm::ParameterSet &config)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
virtual ~DumpFWTGeoRecoGeometry(void)
virtual void endJob(void)
virtual void analyze(const edm::Event &event, const edm::EventSetup &eventSetup)