CMS 3D CMS Logo

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

#include <CosmicTrackTool/CosmicRateAnalyzer/plugins/CosmicRateAnalyzer.cc>

Inheritance diagram for CosmicRateAnalyzer:
edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 CosmicRateAnalyzer (const edm::ParameterSet &)
 
 ~CosmicRateAnalyzer ()
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::SharedResources >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- 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 ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &) override
 
virtual void beginJob () override
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &) override
 
void ClearInEndRun ()
 
void ClearInEventLoop ()
 
virtual void endJob () override
 
virtual void endRun (edm::Run const &, edm::EventSetup const &) override
 

Static Private Member Functions

static double stampToReal (edm::Timestamp time)
 

Private Attributes

std::vector< double > charge
 
std::vector< double > chi2
 
std::vector< double > chi2_ndof
 
edm::EDGetTokenT
< edmNew::DetSetVector
< SiStripCluster > > 
clustercollectionToken_
 
std::vector< double > d0
 
unsigned int DetectorID
 
std::vector< double > DTtime
 
std::vector< double > dz
 
std::vector< double > eta
 
int events
 
edm::Service< TFileServicefs
 
edm::RunNumber_t lastrunnum
 
double lastruntime
 
edm::EDGetTokenT
< reco::MuonCollection
muonTags_
 
int ntrk
 
int ntrk_runnum
 
int number_of_events
 
int number_of_tracks
 
int number_of_tracks_BPIX
 
int number_of_tracks_FPIX
 
int number_of_tracks_PIX
 
int number_of_tracks_TEC
 
int number_of_tracks_TECM
 
int number_of_tracks_TECP
 
int number_of_tracks_TIB
 
int number_of_tracks_TID
 
int number_of_tracks_TIDM
 
int number_of_tracks_TIDP
 
int number_of_tracks_TOB
 
std::vector< double > nvh
 
std::vector< double > p
 
std::vector< double > phi
 
std::vector< double > pt
 
double run_time
 
edm::RunNumber_t runnum
 
std::vector< double > theta
 
int track_BPIX
 
int track_FPIX
 
int track_PIXEL
 
int track_TEC
 
int track_TECM
 
int track_TECP
 
int track_TIB
 
int track_TID
 
int track_TIDM
 
int track_TIDP
 
int track_TOB
 
edm::EDGetTokenT
< reco::TrackCollection
trackTags_
 
TTree * treeCluster
 
TTree * treeEvent
 
TTree * treeRun
 
std::vector< int > v_ntrk
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- 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 : This Analyzer creates tuple, having necessary infromation for cosmic track and event rate calculations. Tuple created by this analyzer also have some kinematical information. This tuple is input of some offline macros that make rate plots and kinematical plots.

Implementation : Documentation for running this tool is described in twiki : https://twiki.cern.ch/twiki/bin/view/CMS/TkAlCosmicsRateMonitoring

Definition at line 83 of file CosmicRateAnalyzer.cc.

Constructor & Destructor Documentation

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

Definition at line 175 of file CosmicRateAnalyzer.cc.

CosmicRateAnalyzer::~CosmicRateAnalyzer ( )

Definition at line 190 of file CosmicRateAnalyzer.cc.

Member Function Documentation

void CosmicRateAnalyzer::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 221 of file CosmicRateAnalyzer.cc.

void CosmicRateAnalyzer::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 391 of file CosmicRateAnalyzer.cc.

void CosmicRateAnalyzer::beginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
overrideprivatevirtual

Definition at line 433 of file CosmicRateAnalyzer.cc.

void CosmicRateAnalyzer::ClearInEndRun ( )
private
void CosmicRateAnalyzer::ClearInEventLoop ( )
private

Definition at line 202 of file CosmicRateAnalyzer.cc.

void CosmicRateAnalyzer::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 427 of file CosmicRateAnalyzer.cc.

void CosmicRateAnalyzer::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
overrideprivatevirtual

Definition at line 456 of file CosmicRateAnalyzer.cc.

void CosmicRateAnalyzer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 478 of file CosmicRateAnalyzer.cc.

static double CosmicRateAnalyzer::stampToReal ( edm::Timestamp  time)
inlinestaticprivate

Definition at line 99 of file CosmicRateAnalyzer.cc.

Member Data Documentation

std::vector<double> CosmicRateAnalyzer::charge
private

Definition at line 150 of file CosmicRateAnalyzer.cc.

std::vector<double> CosmicRateAnalyzer::chi2
private

Definition at line 151 of file CosmicRateAnalyzer.cc.

std::vector<double> CosmicRateAnalyzer::chi2_ndof
private

Definition at line 152 of file CosmicRateAnalyzer.cc.

edm::EDGetTokenT<edmNew::DetSetVector<SiStripCluster> > CosmicRateAnalyzer::clustercollectionToken_
private

Definition at line 106 of file CosmicRateAnalyzer.cc.

std::vector<double> CosmicRateAnalyzer::d0
private

Definition at line 157 of file CosmicRateAnalyzer.cc.

unsigned int CosmicRateAnalyzer::DetectorID
private

Definition at line 112 of file CosmicRateAnalyzer.cc.

std::vector<double> CosmicRateAnalyzer::DTtime
private

Definition at line 160 of file CosmicRateAnalyzer.cc.

std::vector<double> CosmicRateAnalyzer::dz
private

Definition at line 158 of file CosmicRateAnalyzer.cc.

std::vector<double> CosmicRateAnalyzer::eta
private

Definition at line 153 of file CosmicRateAnalyzer.cc.

Referenced by Particle.Particle::__str__().

int CosmicRateAnalyzer::events
private
edm::Service<TFileService> CosmicRateAnalyzer::fs
private

Definition at line 110 of file CosmicRateAnalyzer.cc.

edm::RunNumber_t CosmicRateAnalyzer::lastrunnum
private

Definition at line 108 of file CosmicRateAnalyzer.cc.

double CosmicRateAnalyzer::lastruntime
private

Definition at line 109 of file CosmicRateAnalyzer.cc.

edm::EDGetTokenT<reco::MuonCollection> CosmicRateAnalyzer::muonTags_
private

Definition at line 107 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::ntrk
private

Definition at line 131 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::ntrk_runnum
private

Definition at line 132 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::number_of_events
private

Definition at line 146 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::number_of_tracks
private

Definition at line 134 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::number_of_tracks_BPIX
private

Definition at line 137 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::number_of_tracks_FPIX
private

Definition at line 136 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::number_of_tracks_PIX
private

Definition at line 135 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::number_of_tracks_TEC
private

Definition at line 138 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::number_of_tracks_TECM
private

Definition at line 140 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::number_of_tracks_TECP
private

Definition at line 139 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::number_of_tracks_TIB
private

Definition at line 142 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::number_of_tracks_TID
private

Definition at line 143 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::number_of_tracks_TIDM
private

Definition at line 145 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::number_of_tracks_TIDP
private

Definition at line 144 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::number_of_tracks_TOB
private

Definition at line 141 of file CosmicRateAnalyzer.cc.

std::vector<double> CosmicRateAnalyzer::nvh
private

Definition at line 159 of file CosmicRateAnalyzer.cc.

std::vector<double> CosmicRateAnalyzer::p
private

Definition at line 156 of file CosmicRateAnalyzer.cc.

std::vector<double> CosmicRateAnalyzer::phi
private

Definition at line 155 of file CosmicRateAnalyzer.cc.

Referenced by Particle.Particle::__str__().

std::vector<double> CosmicRateAnalyzer::pt
private
double CosmicRateAnalyzer::run_time
private

Definition at line 148 of file CosmicRateAnalyzer.cc.

edm::RunNumber_t CosmicRateAnalyzer::runnum
private

Definition at line 147 of file CosmicRateAnalyzer.cc.

std::vector<double> CosmicRateAnalyzer::theta
private

Definition at line 154 of file CosmicRateAnalyzer.cc.

Referenced by Tau.Tau::zImpact().

int CosmicRateAnalyzer::track_BPIX
private

Definition at line 118 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::track_FPIX
private

Definition at line 119 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::track_PIXEL
private

Definition at line 120 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::track_TEC
private

Definition at line 121 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::track_TECM
private

Definition at line 122 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::track_TECP
private

Definition at line 123 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::track_TIB
private

Definition at line 125 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::track_TID
private

Definition at line 126 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::track_TIDM
private

Definition at line 127 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::track_TIDP
private

Definition at line 128 of file CosmicRateAnalyzer.cc.

int CosmicRateAnalyzer::track_TOB
private

Definition at line 124 of file CosmicRateAnalyzer.cc.

edm::EDGetTokenT<reco::TrackCollection> CosmicRateAnalyzer::trackTags_
private

Definition at line 105 of file CosmicRateAnalyzer.cc.

TTree* CosmicRateAnalyzer::treeCluster
private

Definition at line 115 of file CosmicRateAnalyzer.cc.

TTree* CosmicRateAnalyzer::treeEvent
private

Definition at line 113 of file CosmicRateAnalyzer.cc.

TTree* CosmicRateAnalyzer::treeRun
private

Definition at line 114 of file CosmicRateAnalyzer.cc.

std::vector<int> CosmicRateAnalyzer::v_ntrk
private

Definition at line 130 of file CosmicRateAnalyzer.cc.