|
void | analyze (const edm::Event &, const edm::EventSetup &) |
|
| SiPixelPhase1TrackClustersV (const edm::ParameterSet &conf) |
|
void | analyze (edm::Event const &e, edm::EventSetup const &eSetup)=0 |
|
void | bookHistograms (DQMStore::IBooker &iBooker, edm::Run const &run, edm::EventSetup const &iSetup) |
|
| SiPixelPhase1Base (const edm::ParameterSet &iConfig) |
|
virtual | ~SiPixelPhase1Base () |
|
virtual void | beginRun (edm::Run const &, edm::EventSetup const &) final |
|
virtual void | beginStream (edm::StreamID id) final |
|
virtual void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) |
|
| DQMEDAnalyzer (void) |
|
virtual void | endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final |
|
virtual void | endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final |
|
uint32_t | streamId () const |
|
| EDAnalyzer ()=default |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDAnalyzerBase () |
|
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 |
|
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 |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
| HistogramManagerHolder (const edm::ParameterSet &iConfig) |
|
|
typedef CacheContexts< T... > | CacheTypes |
|
typedef CacheTypes::GlobalCache | GlobalCache |
|
typedef AbilityChecker< T... > | HasAbility |
|
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
|
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
|
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
|
typedef CacheTypes::RunCache | RunCache |
|
typedef RunContextT< RunCache, GlobalCache > | RunContext |
|
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
|
typedef EDAnalyzerAdaptorBase | ModuleType |
|
typedef ProductLabels | Labels |
|
static std::shared_ptr< dqmDetails::NoCache > | globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *) |
|
static std::shared_ptr< dqmDetails::NoCache > | globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *) |
|
static void | globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *) |
|
static void | globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *) |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
bool | checktrigger (const edm::Event &iEvent, const edm::EventSetup &iSetup, const unsigned trgidx) const |
|
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) |
|
GeometryInterface | geometryInterface |
|
std::vector< HistogramManager > | histo |
|
Definition at line 33 of file SiPixelPhase1TrackClustersV.cc.
References edmNew::DetSetVector< T >::begin(), CHARGE, SiPixelRecHit::cluster(), clustersToken_, DEFINE_FWK_MODULE, edmNew::DetSetVector< T >::end(), objects.autophobj::float, edm::EventSetup::get(), edm::Event::getByToken(), h, hcalSimParameters_cfi::hb, HistogramManagerHolder::histo, edm::ESHandleBase::isValid(), crabWrapper::key, PV3DBase< T, PVType, FrameType >::mag(), edmNew::makeRefTo(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, funct::pow(), SIZE_X, SIZE_Y, SiPixelCluster::sizeX(), SiPixelCluster::sizeY(), mathSSE::sqrt(), funct::tan(), HiIsolationCommonParameters_cff::track, mixOne_simraw_on_sim_cfi::tracker, l1t::tracks, tracksToken_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
52 std::vector<bool> ontrack (clusterColl->data().size(),
false);
53 std::vector<float> corr_charge(clusterColl->data().size(), -1.0f);
55 for (
auto const &
track : *tracks) {
57 auto const & trajParams =
track.extra()->trajParams();
58 assert(trajParams.size()==
track.recHitsSize());
60 for(
unsigned int h=0;
h<
track.recHitsSize();
h++){
62 if (!
hit->isValid())
continue;
66 uint32_t subdetid = (
id.subdetId());
69 if (!pixhit)
continue;
73 if (clust.isNull())
continue;
74 ontrack[clust.key()] =
true;
78 auto const & ltp = trajParams[
h];
81 float clust_alpha = atan2(localDir.
z(), localDir.
x());
82 float clust_beta = atan2(localDir.
z(), localDir.
y());
83 double corrCharge = clust->charge()/1000. *
sqrt( 1.0 / ( 1.0/
pow(
tan(clust_alpha), 2 ) +
84 1.0/
pow(
tan(clust_beta ), 2 ) +
86 corr_charge[clust.key()] = (
float) corrCharge;
90 for (it = clusterColl->begin(); it != clusterColl->end(); ++it) {
91 auto id =
DetId(it->detId());
93 for(
auto subit = it->
begin(); subit != it->
end(); ++subit) {
96 float corrected_charge = corr_charge[
key];
99 histo[
CHARGE].fill(
double(corrected_charge),
id, &iEvent);
edm::Ref< typename HandleT::element_type, typename HandleT::element_type::value_type::value_type > makeRefTo(const HandleT &iHandle, typename HandleT::element_type::value_type::const_iterator itIter)
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator end(bool update=false) const
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Tan< T >::type tan(const T &t)
edm::EDGetTokenT< reco::TrackCollection > tracksToken_
ClusterRef cluster() const
std::vector< HistogramManager > histo
Pixel cluster – collection of neighboring pixels above threshold.
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > clustersToken_
Power< A, B >::type pow(const A &a, const B &b)
const_iterator begin(bool update=false) const