CMS 3D CMS Logo

List of all members | Public Member Functions
DDVecCMSDetector Class Reference
Inheritance diagram for DDVecCMSDetector:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (edm::Event const &iEvent, edm::EventSetup const &) override
 
void beginJob () override
 
 DDVecCMSDetector (const edm::ParameterSet &p)
 
void endJob () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 18 of file DDVecCMSDetector.cc.

Constructor & Destructor Documentation

DDVecCMSDetector::DDVecCMSDetector ( const edm::ParameterSet p)
explicit

Definition at line 27 of file DDVecCMSDetector.cc.

28 {}

Member Function Documentation

void DDVecCMSDetector::analyze ( edm::Event const &  iEvent,
edm::EventSetup const &   
)
overridevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 31 of file DDVecCMSDetector.cc.

References MessageLogger_cfi::cerr, callgraph::path, and point.

32 {
33  UnplacedBox world_params = UnplacedBox(4., 4., 4.);
34  UnplacedBox largebox_params = UnplacedBox(1.5, 1.5, 1.5);
35  UnplacedBox smallbox_params = UnplacedBox(0.5, 0.5, 0.5);
36 
37  LogicalVolume worldl(&world_params);
38  LogicalVolume largebox("Large box", &largebox_params);
39  LogicalVolume smallbox("Small box", &smallbox_params);
40 
41  Transformation3D origin = Transformation3D();
42  Transformation3D placement1 = Transformation3D(2, 2, 2);
43  Transformation3D placement2 = Transformation3D(-2, 2, 2);
44  Transformation3D placement3 = Transformation3D(2, -2, 2);
45  Transformation3D placement4 = Transformation3D(2, 2, -2);
46  Transformation3D placement5 = Transformation3D(-2, -2, 2);
47  Transformation3D placement6 = Transformation3D(-2, 2, -2);
48  Transformation3D placement7 = Transformation3D(2, -2, -2);
49  Transformation3D placement8 = Transformation3D(-2, -2, -2);
50 
51  largebox.PlaceDaughter(&smallbox, &origin);
52  worldl.PlaceDaughter(&largebox, &placement1);
53  worldl.PlaceDaughter(&largebox, &placement2);
54  worldl.PlaceDaughter(&largebox, &placement3);
55  worldl.PlaceDaughter(&largebox, &placement4);
56  worldl.PlaceDaughter("Hello the world!", &largebox, &placement5);
57  worldl.PlaceDaughter(&largebox, &placement6);
58  worldl.PlaceDaughter(&largebox, &placement7);
59  worldl.PlaceDaughter(&largebox, &placement8);
60 
61  VPlacedVolume *world_placed = worldl.Place();
62  GeoManager::Instance().SetWorld(world_placed);
63  GeoManager::Instance().CloseGeometry();
64 
65  std::cerr << "Printing world content:\n";
66  world_placed->PrintContent();
67 
68  SimpleNavigator nav;
69  Vector3D<Precision> point(2, 2, 2);
70  NavigationState *path = NavigationState::MakeInstance(4);
71  nav.LocatePoint(world_placed, point, *path, true);
72  path->Print();
73 
74  GeoManager::Instance().FindLogicalVolume("Large box");
75  GeoManager::Instance().FindPlacedVolume("Large box");
76 
77  NavigationState::ReleaseInstance(path);
78 }
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
void DDVecCMSDetector::beginJob ( void  )
inlineoverridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 22 of file DDVecCMSDetector.cc.

References analyze(), and iEvent.

22 {}
void DDVecCMSDetector::endJob ( void  )
overridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 81 of file DDVecCMSDetector.cc.

References DEFINE_FWK_MODULE.

82 {}