CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes
ApeEstimator Class Reference

#include <Alignment/APEEstimation/src/ApeEstimator.cc>

Inheritance diagram for ApeEstimator:
edm::EDAnalyzer edm::EDConsumerBase

Classes

struct  PositionAndError2
 

Public Member Functions

 ApeEstimator (const edm::ParameterSet &)
 
 ~ApeEstimator ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Types

typedef std::pair
< TrackStruct::HitState,
PositionAndError2
StatePositionAndError2
 

Private Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
void bookSectorHistsForAnalyzerMode ()
 
void bookSectorHistsForApeCalculation ()
 
void bookTrackHists ()
 
void calculateAPE ()
 
bool checkIntervalsForSectors (const unsigned int sectorCounter, const std::vector< double > &) const
 
bool checkModuleBools (const bool, const std::vector< unsigned int > &) const
 
bool checkModuleDirections (const int, const std::vector< int > &) const
 
bool checkModuleIds (const unsigned int, const std::vector< unsigned int > &) const
 
bool checkModulePositions (const float, const std::vector< double > &) const
 
virtual void endJob ()
 
void fillHistsForAnalyzerMode (const TrackStruct &)
 
void fillHistsForApeCalculation (const TrackStruct &)
 
void fillHitHistsXForAnalyzerMode (const TrackStruct::HitParameterStruct &, TrackerSectorStruct &)
 
void fillHitHistsYForAnalyzerMode (const TrackStruct::HitParameterStruct &, TrackerSectorStruct &)
 
TrackStruct::HitParameterStruct fillHitVariables (const TrajectoryMeasurement &, const edm::EventSetup &)
 
TrackStruct::TrackParameterStruct fillTrackVariables (const reco::Track &, const Trajectory &, const reco::BeamSpot &)
 
bool hitSelected (TrackStruct::HitParameterStruct &) const
 
void hitSelection ()
 
bool inDoubleInterval (const std::vector< double > &, const float) const
 
bool inUintInterval (const std::vector< unsigned int > &, const unsigned int, const unsigned int=999) const
 
bool isHit2D (const TrackingRecHit &) const
 
StatePositionAndError2 positionAndError2 (const LocalPoint &, const LocalError &, const TransientTrackingRecHit &)
 
PositionAndError2 radialPositionAndError2 (const LocalPoint &, const LocalError &, const RadialStripTopology &)
 
PositionAndError2 rectangularPositionAndError2 (const LocalPoint &, const LocalError &)
 
void residualErrorBinning ()
 
void sectorBuilder ()
 
void setHitSelectionMap (const std::string &)
 
void setHitSelectionMapUInt (const std::string &)
 
void statistics (const TrackerSectorStruct &, const Int_t) const
 

Private Attributes

const bool analyzerMode_
 
const bool calculateApe_
 
unsigned int counter1
 
unsigned int counter2
 
unsigned int counter3
 
unsigned int counter4
 
unsigned int counter5
 
unsigned int counter6
 
std::map< std::string,
std::vector< double > > 
m_hitSelection_
 
std::map< std::string,
std::vector< unsigned int > > 
m_hitSelectionUInt_
 
std::map< unsigned int,
std::pair< double, double > > 
m_resErrBins_
 
std::map< unsigned int,
TrackerSectorStruct
m_tkSector_
 
std::map< unsigned int,
ReducedTrackerTreeVariables
m_tkTreeVar_
 
const unsigned int maxTracksPerEvent_
 
const unsigned int minGoodHitsPerTrack_
 
edm::EDGetTokenT< reco::BeamSpotofflinebeamSpot_
 
const edm::ParameterSet parameterSet_
 
edm::EDGetTokenT
< TrajTrackAssociationCollection
tjTagToken_
 
TrackerDetectorStruct tkDetector_
 
bool trackCut_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
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)
 

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 130 of file ApeEstimator.cc.

Member Typedef Documentation

Definition at line 145 of file ApeEstimator.cc.

Constructor & Destructor Documentation

ApeEstimator::ApeEstimator ( const edm::ParameterSet iConfig)
explicit

Definition at line 227 of file ApeEstimator.cc.

ApeEstimator::~ApeEstimator ( )

Definition at line 240 of file ApeEstimator.cc.

Member Function Documentation

void ApeEstimator::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
privatevirtual

Implements edm::EDAnalyzer.

Definition at line 2153 of file ApeEstimator.cc.

void ApeEstimator::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 2220 of file ApeEstimator.cc.

void ApeEstimator::bookSectorHistsForAnalyzerMode ( )
private

Definition at line 560 of file ApeEstimator.cc.

void ApeEstimator::bookSectorHistsForApeCalculation ( )
private

Definition at line 784 of file ApeEstimator.cc.

void ApeEstimator::bookTrackHists ( )
private

Definition at line 869 of file ApeEstimator.cc.

void ApeEstimator::calculateAPE ( )
private

Definition at line 2080 of file ApeEstimator.cc.

bool ApeEstimator::checkIntervalsForSectors ( const unsigned int  sectorCounter,
const std::vector< double > &  v_id 
) const
private

Definition at line 431 of file ApeEstimator.cc.

bool ApeEstimator::checkModuleBools ( const bool  id,
const std::vector< unsigned int > &  v_id 
) const
private

Definition at line 461 of file ApeEstimator.cc.

bool ApeEstimator::checkModuleDirections ( const int  id,
const std::vector< int > &  v_id 
) const
private

Definition at line 471 of file ApeEstimator.cc.

bool ApeEstimator::checkModuleIds ( const unsigned int  id,
const std::vector< unsigned int > &  v_id 
) const
private

Definition at line 452 of file ApeEstimator.cc.

bool ApeEstimator::checkModulePositions ( const float  id,
const std::vector< double > &  v_id 
) const
private

Definition at line 480 of file ApeEstimator.cc.

void ApeEstimator::endJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 2239 of file ApeEstimator.cc.

void ApeEstimator::fillHistsForAnalyzerMode ( const TrackStruct trackStruct)
private

Definition at line 1750 of file ApeEstimator.cc.

void ApeEstimator::fillHistsForApeCalculation ( const TrackStruct trackStruct)
private

Definition at line 2011 of file ApeEstimator.cc.

void ApeEstimator::fillHitHistsXForAnalyzerMode ( const TrackStruct::HitParameterStruct hit,
TrackerSectorStruct sector 
)
private

Definition at line 1897 of file ApeEstimator.cc.

void ApeEstimator::fillHitHistsYForAnalyzerMode ( const TrackStruct::HitParameterStruct hit,
TrackerSectorStruct sector 
)
private

Definition at line 1967 of file ApeEstimator.cc.

TrackStruct::HitParameterStruct ApeEstimator::fillHitVariables ( const TrajectoryMeasurement i_meas,
const edm::EventSetup iSetup 
)
private

Definition at line 1018 of file ApeEstimator.cc.

TrackStruct::TrackParameterStruct ApeEstimator::fillTrackVariables ( const reco::Track track,
const Trajectory traj,
const reco::BeamSpot beamSpot 
)
private

Definition at line 944 of file ApeEstimator.cc.

bool ApeEstimator::hitSelected ( TrackStruct::HitParameterStruct hitParams) const
private

Definition at line 1617 of file ApeEstimator.cc.

void ApeEstimator::hitSelection ( )
private

Definition at line 1476 of file ApeEstimator.cc.

bool ApeEstimator::inDoubleInterval ( const std::vector< double > &  v_hitSelection,
const float  variable 
) const
private

Definition at line 1720 of file ApeEstimator.cc.

bool ApeEstimator::inUintInterval ( const std::vector< unsigned int > &  v_hitSelection,
const unsigned int  variable,
const unsigned int  variable2 = 999 
) const
private

Definition at line 1732 of file ApeEstimator.cc.

bool ApeEstimator::isHit2D ( const TrackingRecHit hit) const
private

Definition at line 2108 of file ApeEstimator.cc.

ApeEstimator::StatePositionAndError2 ApeEstimator::positionAndError2 ( const LocalPoint localPoint,
const LocalError localError,
const TransientTrackingRecHit hit 
)
private

Definition at line 1360 of file ApeEstimator.cc.

ApeEstimator::PositionAndError2 ApeEstimator::radialPositionAndError2 ( const LocalPoint lP,
const LocalError lE,
const RadialStripTopology topol 
)
private

Definition at line 1429 of file ApeEstimator.cc.

ApeEstimator::PositionAndError2 ApeEstimator::rectangularPositionAndError2 ( const LocalPoint lP,
const LocalError lE 
)
private

Definition at line 1416 of file ApeEstimator.cc.

void ApeEstimator::residualErrorBinning ( )
private

Definition at line 526 of file ApeEstimator.cc.

void ApeEstimator::sectorBuilder ( )
private

Definition at line 252 of file ApeEstimator.cc.

void ApeEstimator::setHitSelectionMap ( const std::string &  cutVariable)
private

Definition at line 1582 of file ApeEstimator.cc.

void ApeEstimator::setHitSelectionMapUInt ( const std::string &  cutVariable)
private

Definition at line 1598 of file ApeEstimator.cc.

void ApeEstimator::statistics ( const TrackerSectorStruct allSectors,
const Int_t  nModules 
) const
private

Definition at line 491 of file ApeEstimator.cc.

Member Data Documentation

const bool ApeEstimator::analyzerMode_
private

Definition at line 208 of file ApeEstimator.cc.

const bool ApeEstimator::calculateApe_
private

Definition at line 210 of file ApeEstimator.cc.

unsigned int ApeEstimator::counter1
private

Definition at line 212 of file ApeEstimator.cc.

unsigned int ApeEstimator::counter2
private

Definition at line 212 of file ApeEstimator.cc.

unsigned int ApeEstimator::counter3
private

Definition at line 212 of file ApeEstimator.cc.

unsigned int ApeEstimator::counter4
private

Definition at line 212 of file ApeEstimator.cc.

unsigned int ApeEstimator::counter5
private

Definition at line 212 of file ApeEstimator.cc.

unsigned int ApeEstimator::counter6
private

Definition at line 212 of file ApeEstimator.cc.

std::map<std::string,std::vector<double> > ApeEstimator::m_hitSelection_
private

Definition at line 200 of file ApeEstimator.cc.

std::map<std::string,std::vector<unsigned int> > ApeEstimator::m_hitSelectionUInt_
private

Definition at line 201 of file ApeEstimator.cc.

std::map<unsigned int, std::pair<double,double> > ApeEstimator::m_resErrBins_
private

Definition at line 197 of file ApeEstimator.cc.

std::map<unsigned int, TrackerSectorStruct> ApeEstimator::m_tkSector_
private

Definition at line 190 of file ApeEstimator.cc.

std::map<unsigned int, ReducedTrackerTreeVariables> ApeEstimator::m_tkTreeVar_
private

Definition at line 198 of file ApeEstimator.cc.

const unsigned int ApeEstimator::maxTracksPerEvent_
private

Definition at line 205 of file ApeEstimator.cc.

const unsigned int ApeEstimator::minGoodHitsPerTrack_
private

Definition at line 206 of file ApeEstimator.cc.

edm::EDGetTokenT<reco::BeamSpot> ApeEstimator::offlinebeamSpot_
private

Definition at line 194 of file ApeEstimator.cc.

const edm::ParameterSet ApeEstimator::parameterSet_
private

Definition at line 189 of file ApeEstimator.cc.

edm::EDGetTokenT<TrajTrackAssociationCollection> ApeEstimator::tjTagToken_
private

Definition at line 193 of file ApeEstimator.cc.

TrackerDetectorStruct ApeEstimator::tkDetector_
private

Definition at line 191 of file ApeEstimator.cc.

bool ApeEstimator::trackCut_
private

Definition at line 203 of file ApeEstimator.cc.