|
void | analyze (const edm::Event &e, const edm::EventSetup &c) override |
|
void | beginJob () override |
|
void | endJob () override |
|
| HcalTB06Analysis (const edm::ParameterSet &p) |
|
| HcalTB06Analysis (const HcalTB06Analysis &)=delete |
|
const HcalTB06Analysis & | operator= (const HcalTB06Analysis &)=delete |
|
| ~HcalTB06Analysis () override=default |
|
| EDAnalyzer ()=default |
|
| EDAnalyzer (const EDAnalyzer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
const EDAnalyzer & | operator= (const EDAnalyzer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const noexcept final |
|
bool | wantsGlobalRuns () const noexcept final |
|
bool | wantsInputProcessBlocks () const noexcept final |
|
bool | wantsProcessBlocks () const noexcept final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const noexcept |
|
bool | wantsStreamRuns () const noexcept |
|
| ~EDAnalyzerBase () override |
|
std::vector< ConsumesInfo > | consumesInfo () 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 |
|
ESResolverIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESResolverIndex > 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 |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, 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::ESRecordsToProductResolverIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzerBase | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (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 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) |
|
Definition at line 58 of file HcalTB06Analysis.cc.
Definition at line 98 of file HcalTB06Analysis.cc.
References ProducerED_cfi::InputTag, m_ECAL, m_EcalToken, m_eMIP, m_ener, m_eta, m_factEcal, m_factHcal, m_histo, m_idxetaEcal, m_idxetaHcal, m_idxphiEcal, m_idxphiHcal, m_PDG, m_phi, m_ptb, m_timeLimit, m_widthEcal, m_widthHcal, razorScouting_cff::maxEta, HLT_2024v14_cff::maxPhi, EgHLTOffEleSelection_cfi::minEta, HLT_2024v14_cff::minPhi, and AlCaHLTBitMon_ParallelJobs::p.
99 :
m_ECAL(
p.getParameter<
bool>(
"ECAL")),
100 m_eta(
p.getParameter<
double>(
"MinEta")),
101 m_phi(
p.getParameter<
double>(
"MinPhi")),
102 m_ener(
p.getParameter<
double>(
"MinE")),
103 m_PDG(
p.getParameter<std::vector<int> >(
"PartID")),
114 usesResource(
"TFileService");
117 double minEta =
p.getParameter<
double>(
"MinEta");
118 double maxEta =
p.getParameter<
double>(
"MaxEta");
119 double minPhi =
p.getParameter<
double>(
"MinPhi");
120 double maxPhi =
p.getParameter<
double>(
"MaxPhi");
142 <<
" MIP= " <<
m_eMIP <<
" GeV"
T getParameter(std::string const &) const
const std::vector< int > m_PDG
const edm::ParameterSet m_ptb
const edm::EDGetTokenT< edm::PCaloHitContainer > m_HcalToken
std::unique_ptr< HcalTB06Histo > m_histo
const edm::EDGetTokenT< edm::PCaloHitContainer > m_BeamToken
Log< level::Info, false > LogInfo
edm::EDGetTokenT< edm::PCaloHitContainer > m_EcalToken
Implements edm::one::EDAnalyzerBase.
Definition at line 154 of file HcalTB06Analysis.cc.
References funct::abs(), count, edm::Event::getHandle(), HcalOuter, mps_fire::i, EBDetId::ieta(), HcalDetId::ieta(), EBDetId::iphi(), HcalDetId::iphi(), ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::endcap::ix(), ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::endcap::iy(), m_BeamToken, m_ECAL, m_EcalToken, m_ener, m_eta, m_factEcal, m_factHcal, m_HcalToken, m_histo, m_idxetaEcal, m_idxetaHcal, m_idxphiEcal, m_idxphiHcal, m_phi, m_timeLimit, m_widthEcal, m_widthHcal, compareTotals::ne, cms::cuda::nh, edm::Handle< T >::product(), HcalDetId::subdet(), hcalRecHitTable_cff::time, and HcalTestBeamNumbering::unpackIndex().
160 std::vector<double> eCalo(6, 0), eTrig(7, 0);
162 const std::vector<PCaloHit>* EcalHits =
nullptr;
168 const std::vector<PCaloHit>* HcalHits = Hcal.
product();
170 const std::vector<PCaloHit>* BeamHits = Beam.
product();
179 ne = EcalHits->size();
180 for (
unsigned int i = 0;
i <
ne; ++
i) {
181 EBDetId ecalid((*EcalHits)[
i].
id());
184 << ecalid.iphi() <<
":" <<
m_idxphiEcal <<
" " << (*EcalHits)[
i].time() <<
":" 190 eCalo[0] += (*EcalHits)[
i].energy();
199 nh = HcalHits->size();
200 for (
unsigned int i = 0;
i <
nh; ++
i) {
203 edm::LogVerbatim(
"HcalTBSim") <<
"HC " <<
i <<
" " << hcalid.subdet() <<
" " << hcalid.ieta() <<
":" 205 << (*HcalHits)[
i].time() <<
":" <<
m_timeLimit <<
" " << (*HcalHits)[
i].energy();
211 eCalo[2] += (*HcalHits)[
i].energy();
213 eCalo[4] += (*HcalHits)[
i].energy();
223 double etots = eecals + ehcals;
225 edm::LogInfo(
"HcalTBSim") <<
"HcalTB06Analysis:: Etot(MeV)= " << etots <<
" E(Ecal)= " << eecals
226 <<
" E(Hcal)= " << ehcals <<
" Nhits(ECAL)= " <<
ne <<
" Nhits(HCAL)= " <<
nh;
227 m_histo->fillEdep(etots, eecals, ehcals);
230 for (
unsigned int i = 0;
i < BeamHits->size(); ++
i) {
231 unsigned int id = ((*BeamHits)[
i].id());
232 int det, lay,
ix,
iy;
235 if (lay > 0 && lay <= 4) {
236 eTrig[lay - 1] += (*BeamHits)[
i].energy();
237 }
else if (lay == 7 || lay == 8) {
238 eTrig[lay - 2] += (*BeamHits)[
i].energy();
239 }
else if (lay >= 11 && lay <= 14) {
240 eTrig[4] += (*BeamHits)[
i].energy();
246 edm::LogInfo(
"HcalTBSim") <<
"HcalTB06Analysis:: Trigger Info: " << eTrig[0] <<
":" << eTrig[1] <<
":" << eTrig[2]
247 <<
":" << eTrig[3] <<
":" << eTrig[4] <<
":" << eTrig[5] <<
":" << eTrig[6];
249 m_histo->fillTree(eCalo, eTrig);
Log< level::Info, true > LogVerbatim
T const * product() const
const edm::EDGetTokenT< edm::PCaloHitContainer > m_HcalToken
std::unique_ptr< HcalTB06Histo > m_histo
const edm::EDGetTokenT< edm::PCaloHitContainer > m_BeamToken
Abs< T >::type abs(const T &t)
Log< level::Info, false > LogInfo
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t ix(uint32_t id)
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t iy(uint32_t id)
static void unpackIndex(const uint32_t &idx, int &det, int &lay, int &x, int &y)
edm::EDGetTokenT< edm::PCaloHitContainer > m_EcalToken