|
void | analyze (const edm::Event &, const edm::EventSetup &) override |
|
void | beginJob () override |
|
void | beginRun (const edm::Run &r, const edm::EventSetup &iSetup) override |
|
void | endJob () override |
|
void | endRun (const edm::Run &r, const edm::EventSetup &iSetup) override |
|
| SimAnalyzerMinbias (const edm::ParameterSet &) |
|
| ~SimAnalyzerMinbias () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
| ~EDAnalyzer () 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 &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (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::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzer | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (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) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Definition at line 38 of file SimAnalyzerMinbias.cc.
Implements edm::EDAnalyzer.
Definition at line 137 of file SimAnalyzerMinbias.cc.
138 edm::LogInfo(
"AnalyzerMB") <<
" Start SimAnalyzerMinbias::analyze " <<
iEvent.id().run() <<
":"
147 edm::LogInfo(
"AnalyzerMB") <<
"Event with " << myGenEvent->particles_size() <<
" particles + "
148 << myGenEvent->vertices_size() <<
" vertices";
159 std::map<HcalDetId, double> hitMap;
160 for (std::vector<PCaloHit>::const_iterator hcalItr = HitHcal->begin(); hcalItr != HitHcal->end(); ++hcalItr) {
161 double time = hcalItr->time();
163 double energyhit = hcalItr->energy();
165 std::map<HcalDetId, double>::iterator itr1 = hitMap.find(hid);
166 if (itr1 == hitMap.end()) {
168 itr1 = hitMap.find(hid);
170 itr1->second += energyhit;
173 edm::LogInfo(
"AnalyzerMB") <<
"extract information of " << hitMap.size() <<
" towers from " << HitHcal->size()
176 for (std::map<HcalDetId, double>::const_iterator hcalItr = hitMap.begin(); hcalItr != hitMap.end(); ++hcalItr) {
178 double energyhit = hcalItr->second;
179 std::map<HcalDetId, myInfo>::iterator itr1 =
myMap_.find(hid);
180 if (itr1 ==
myMap_.end()) {
185 itr1->second.theMB0++;
186 itr1->second.theMB1 += energyhit;
187 itr1->second.theMB2 += (energyhit * energyhit);
188 itr1->second.theMB3 += (energyhit * energyhit * energyhit);
189 itr1->second.theMB4 += (energyhit * energyhit * energyhit * energyhit);
190 edm::LogInfo(
"AnalyzerMB") <<
"ID " << hid <<
" with energy " << energyhit;
References edm::HepMCProduct::GetEvent(), iEvent, info(), edm::HandleBase::isValid(), myMap_, edm::Handle< T >::product(), ntuplemaker::time, timeCut_, tok_evt_, and tok_hcal_.
void SimAnalyzerMinbias::beginJob |
( |
void |
| ) |
|
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 87 of file SimAnalyzerMinbias.cc.
References cells, depth, fs_, ieta, iphi, TFileService::make(), mom0_MB, mom1_MB, mom2_MB, mom3_MB, mom4_MB, mydet, myMap_, mysubd, and myTree_.
void SimAnalyzerMinbias::endJob |
( |
void |
| ) |
|
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 106 of file SimAnalyzerMinbias.cc.
114 if (
info.theMB0 > 0) {
References cells, depth, ieta, info(), iphi, mom0_MB, mom1_MB, mom2_MB, mom3_MB, mom4_MB, myMap_, mysubd, and myTree_.
Referenced by o2olib.O2ORunMgr::executeJob().