CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes
EcalSimHitStudy Class Reference
Inheritance diagram for EcalSimHitStudy:
edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Classes

struct  EcalHit
 

Public Member Functions

 EcalSimHitStudy (const edm::ParameterSet &ps)
 
 ~EcalSimHitStudy () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::SharedResources >
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () 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
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex >
const & 
esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
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::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- 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

void analyze (edm::Event const &, edm::EventSetup const &) override
 
void analyzeHits (std::vector< PCaloHit > &, int)
 
void beginJob () override
 
void beginRun (edm::Run const &, edm::EventSetup const &) override
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Private Attributes

TH1F * edep_ [ndets_]
 
TH1F * edepAll_ [ndets_]
 
TH1F * edepEM_ [ndets_]
 
TH1F * edepHad_ [ndets_]
 
TH1F * eneInc_
 
TH1F * etaInc_
 
TH1F * etot_ [ndets_]
 
TH1F * etotg_ [ndets_]
 
const std::string g4Label_
 
const CaloGeometrygeometry_
 
TH1F * hit_ [ndets_]
 
const std::vector< std::string > hitLab_
 
const double maxEnergy_
 
TH1F * phiInc_
 
TH2F * poszn_ [ndets_]
 
TH2F * poszp_ [ndets_]
 
TH1F * ptInc_
 
TH1F * r1by25_ [ndets_]
 
TH1F * r1by9_ [ndets_]
 
TH1F * r9by25_ [ndets_]
 
const int selX_
 
TH1F * sEtaEta_ [ndets_]
 
TH1F * sEtaPhi_ [ndets_]
 
TH1F * sPhiPhi_ [ndets_]
 
TH1F * time_ [ndets_]
 
TH1F * timeAll_ [ndets_]
 
const double tmax_
 
const edm::EDGetTokenT
< edm::HepMCProduct
tok_evt_
 
const edm::ESGetToken
< CaloGeometry,
CaloGeometryRecord
tokGeom_
 
const std::vector
< edm::EDGetTokenT
< edm::PCaloHitContainer > > 
toks_calo_
 
const double w0_
 

Static Private Attributes

static const int ndets_ = 2
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Detailed Description

Definition at line 46 of file EcalSimHitStudy.cc.

Constructor & Destructor Documentation

EcalSimHitStudy::EcalSimHitStudy ( const edm::ParameterSet ps)

Definition at line 83 of file EcalSimHitStudy.cc.

References funct::abs(), edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addUntracked(), analyze(), analyzeHits(), beginJob(), TauDecayModes::dec, DEFINE_FWK_MODULE, makePileupJSON::denom, submitPVResolutionJobs::desc, PVValHelper::dz, alignCSCRings::e, edep_, edepAll_, edepEM_, edepHad_, eneInc_, relval_parameters_module::energy, etaInc_, etot_, etotg_, edm::EventID::event(), fillDescriptions(), g4Label_, geometry_, edm::Event::getByToken(), edm::EventSetup::getData(), CaloGeometry::getGeometry(), hit_, hitLab_, mps_fire::i, gpuClustering::id, edm::EventBase::id(), hit::id, edm::Service< T >::isAvailable(), edm::HandleBase::isValid(), isotrackApplyRegressor::k, TFileService::kSharedResource, log, M_PI, TFileService::make(), SiStripPI::max, maxEnergy_, mergeVDriftHistosByStation::name, ndets_, AlCaHLTBitMon_ParallelJobs::p, phiInc_, position, poszn_, poszp_, ptInc_, r1by25_, r1by9_, r9by25_, edm::EventID::run(), PixelPluginsPhase0_cfi::select, selX_, sEtaEta_, sEtaPhi_, sPhiPhi_, AlCaHLTBitMon_QueryRunRegistry::string, compare::tfile, time_, timeAll_, runGCPTkAlMap::title, tmax_, tok_evt_, tokGeom_, toks_calo_, edm::vector_transform(), w(), w0_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), SiStrip_OfflineMonitoring_cff::ymax, PV3DBase< T, PVType, FrameType >::z(), and ecaldqm::zside().

84  : tokGeom_(esConsumes<CaloGeometry, CaloGeometryRecord>()),
85  g4Label_(ps.getUntrackedParameter<std::string>("ModuleLabel", "g4SimHits")),
86  hitLab_(ps.getUntrackedParameter<std::vector<std::string>>("CaloCollection")),
87  maxEnergy_(ps.getUntrackedParameter<double>("MaxEnergy", 200.0)),
88  tmax_(ps.getUntrackedParameter<double>("TimeCut", 100.0)),
89  w0_(ps.getUntrackedParameter<double>("W0", 4.7)),
90  selX_(ps.getUntrackedParameter<int>("SelectX", -1)),
91  tok_evt_(consumes<edm::HepMCProduct>(
92  edm::InputTag(ps.getUntrackedParameter<std::string>("SourceLabel", "VtxSmeared")))),
94  return consumes<edm::PCaloHitContainer>(edm::InputTag{g4Label_, name});
95  })} {
T getUntrackedParameter(std::string const &, T const &) const
const std::string g4Label_
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
Definition: transform.h:11
const edm::EDGetTokenT< edm::HepMCProduct > tok_evt_
const std::vector< edm::EDGetTokenT< edm::PCaloHitContainer > > toks_calo_
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > tokGeom_
const std::vector< std::string > hitLab_
const double maxEnergy_
const double tmax_
const double w0_
EcalSimHitStudy::~EcalSimHitStudy ( )
inlineoverride

Definition at line 49 of file EcalSimHitStudy.cc.

49 {}

Member Function Documentation

void EcalSimHitStudy::analyze ( edm::Event const &  ,
edm::EventSetup const &   
)
overrideprotectedvirtual

Implements edm::one::EDAnalyzerBase.

Referenced by EcalSimHitStudy().

void EcalSimHitStudy::analyzeHits ( std::vector< PCaloHit > &  ,
int   
)
protected

Referenced by EcalSimHitStudy().

void EcalSimHitStudy::beginJob ( )
overrideprotectedvirtual

Reimplemented from edm::one::EDAnalyzerBase.

Referenced by EcalSimHitStudy().

void EcalSimHitStudy::beginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlineoverrideprotected

Definition at line 55 of file EcalSimHitStudy.cc.

55 {}
void EcalSimHitStudy::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlineoverrideprotected

Definition at line 56 of file EcalSimHitStudy.cc.

56 {}
static void EcalSimHitStudy::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Referenced by EcalSimHitStudy().

Member Data Documentation

TH1F * EcalSimHitStudy::edep_[ndets_]
private

Definition at line 76 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F * EcalSimHitStudy::edepAll_[ndets_]
private

Definition at line 77 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F* EcalSimHitStudy::edepEM_[ndets_]
private

Definition at line 76 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F * EcalSimHitStudy::edepHad_[ndets_]
private

Definition at line 76 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F * EcalSimHitStudy::eneInc_
private

Definition at line 74 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F * EcalSimHitStudy::etaInc_
private

Definition at line 74 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F* EcalSimHitStudy::etot_[ndets_]
private

Definition at line 77 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F * EcalSimHitStudy::etotg_[ndets_]
private

Definition at line 77 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

const std::string EcalSimHitStudy::g4Label_
private

Definition at line 67 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

const CaloGeometry* EcalSimHitStudy::geometry_
private

Definition at line 73 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F* EcalSimHitStudy::hit_[ndets_]
private

Definition at line 75 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

const std::vector<std::string> EcalSimHitStudy::hitLab_
private

Definition at line 68 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

const double EcalSimHitStudy::maxEnergy_
private

Definition at line 69 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

const int EcalSimHitStudy::ndets_ = 2
staticprivate

Definition at line 65 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F * EcalSimHitStudy::phiInc_
private

Definition at line 74 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH2F * EcalSimHitStudy::poszn_[ndets_]
private

Definition at line 80 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH2F* EcalSimHitStudy::poszp_[ndets_]
private

Definition at line 80 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F* EcalSimHitStudy::ptInc_
private

Definition at line 74 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F * EcalSimHitStudy::r1by25_[ndets_]
private

Definition at line 78 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F* EcalSimHitStudy::r1by9_[ndets_]
private

Definition at line 78 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F * EcalSimHitStudy::r9by25_[ndets_]
private

Definition at line 78 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

const int EcalSimHitStudy::selX_
private

Definition at line 70 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F* EcalSimHitStudy::sEtaEta_[ndets_]
private

Definition at line 79 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F * EcalSimHitStudy::sEtaPhi_[ndets_]
private

Definition at line 79 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F * EcalSimHitStudy::sPhiPhi_[ndets_]
private

Definition at line 79 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F * EcalSimHitStudy::time_[ndets_]
private

Definition at line 75 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

TH1F * EcalSimHitStudy::timeAll_[ndets_]
private

Definition at line 75 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

const double EcalSimHitStudy::tmax_
private

Definition at line 69 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

const edm::EDGetTokenT<edm::HepMCProduct> EcalSimHitStudy::tok_evt_
private

Definition at line 71 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

const edm::ESGetToken<CaloGeometry, CaloGeometryRecord> EcalSimHitStudy::tokGeom_
private

Definition at line 66 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

const std::vector<edm::EDGetTokenT<edm::PCaloHitContainer> > EcalSimHitStudy::toks_calo_
private

Definition at line 72 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().

const double EcalSimHitStudy::w0_
private

Definition at line 69 of file EcalSimHitStudy.cc.

Referenced by EcalSimHitStudy().