|
| CTPPSAcceptancePlotter (const edm::ParameterSet &) |
|
| EDAnalyzer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~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 |
|
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 const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (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) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices 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) |
|
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<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) |
|
Definition at line 28 of file CTPPSAcceptancePlotter.cc.
Definition at line 170 of file CTPPSAcceptancePlotter.cc.
References protons_cff::arm, doubleArmConfigurations, doubleArmPlots, edm::Event::getByToken(), edm::HepMCProduct::GetEvent(), year_2016_postTS2_cff::rpId, year_2016_cff::rpIds, singleArmConfigurations, singleArmPlots, tokenHepMC_, tokenTracks_, and protons_cff::xi.
Referenced by beginJob().
181 bool proton_45_set =
false;
182 bool proton_56_set =
false;
183 FourVector mom_45, mom_56;
185 for (
auto it = hepMCEvent->particles_begin(); it != hepMCEvent->particles_end(); ++it)
187 const auto &
part = *it;
190 if (
part->pdg_id() != 2212)
193 if (
part->status() != 1)
199 const auto &mom =
part->momentum();
209 LogError(
"CTPPSAcceptancePlotter") <<
"Multiple protons found in sector 45.";
213 proton_45_set =
true;
219 LogError(
"CTPPSAcceptancePlotter") <<
"Multiple protons found in sector 56.";
223 proton_56_set =
true;
229 if (!proton_45_set || !proton_56_set)
233 const double p_nom = 6500.;
234 const double xi_45 = (p_nom - mom_45.e()) / p_nom;
235 const double xi_56 = (p_nom - mom_56.e()) / p_nom;
238 map<unsigned int, bool> trackPresent;
239 for (
const auto& trk : *hTracks)
242 unsigned int rpDecId =
rpId.arm()*100 +
rpId.station()*10 +
rpId.rp();
243 trackPresent[rpDecId] =
true;
253 acc &= trackPresent[
rpId];
260 const double xi = (arm == 0) ? xi_45 : xi_56;
268 for (
const auto rpId : rpIds)
269 acc &= trackPresent[
rpId];
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::map< std::set< unsigned int >, SingleArmPlots > singleArmPlots
edm::EDGetTokenT< edm::HepMCProduct > tokenHepMC_
std::vector< std::set< unsigned int > > singleArmConfigurations
std::map< std::set< unsigned int >, DoubleArmPlots > doubleArmPlots
edm::EDGetTokenT< CTPPSLocalTrackLiteCollection > tokenTracks_
const HepMC::GenEvent * GetEvent() const
Base class for CTPPS detector IDs.
std::vector< std::set< unsigned int > > doubleArmConfigurations