|
|
Go to the documentation of this file.
141 std::vector<double>
pt;
148 std::vector<double>
p;
149 std::vector<double>
d0;
150 std::vector<double>
dz;
177 clustercollectionToken_(
242 for (TrackCollection::const_iterator itTrack1 =
tracks->begin(); itTrack1 !=
tracks->end(); ++itTrack1) {
243 pt.push_back(itTrack1->pt());
244 charge.push_back(itTrack1->charge());
245 chi2.push_back(itTrack1->chi2());
246 chi2_ndof.push_back(itTrack1->normalizedChi2());
247 eta.push_back(itTrack1->eta());
248 theta.push_back(itTrack1->theta());
249 phi.push_back(itTrack1->phi());
250 p.push_back(itTrack1->p());
251 d0.push_back(itTrack1->d0());
252 dz.push_back(itTrack1->dz());
253 nvh.push_back(itTrack1->numberOfValidHits());
254 nh_BPIX.push_back(itTrack1->hitPattern().numberOfValidPixelBarrelHits());
255 nh_FPIX.push_back(itTrack1->hitPattern().numberOfValidPixelEndcapHits());
256 nh_TIB.push_back(itTrack1->hitPattern().numberOfValidStripTIBHits());
257 nh_TOB.push_back(itTrack1->hitPattern().numberOfValidStripTOBHits());
258 nh_TID.push_back(itTrack1->hitPattern().numberOfValidStripTIDHits());
259 nh_TEC.push_back(itTrack1->hitPattern().numberOfValidStripTECHits());
268 int nhitinTECminus = 0;
269 int nhitinTECplus = 0;
270 int nhitinTIDminus = 0;
271 int nhitinTIDplus = 0;
274 for (
auto const& hit1 : itTrack1->recHits()) {
275 const DetId detId1(hit1->geographicalId());
276 const int subdetId1 = detId1.
subdetId();
277 if (!hit1->isValid())
334 if (nhitinBPIX > 0) {
337 if (nhitinFPIX > 0) {
340 if (nhitinPIXEL > 0) {
346 if (nhitinTECminus > 0) {
349 if (nhitinTECplus > 0) {
361 if (nhitinTIDminus > 0) {
364 if (nhitinTIDplus > 0) {
385 for (
unsigned int i = 0;
i < muonsT0.size();
i++) {
482 desc.setComment(
"Create tuple with all variables required to calculate cosmic event and track rates.");
485 descriptions.
add(
"cosmicRateAnalyzer",
desc);
edm::Service< TFileService > fs
bool tidIsZMinusSide(const DetId &id) const
int number_of_tracks_FPIX
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
T const * product() const
void beginRun(edm::Run const &, edm::EventSetup const &) override
bool tecIsZMinusSide(const DetId &id) const
int number_of_tracks_TECP
std::vector< double > DTtime
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
std::vector< double > nvh
int number_of_tracks_TIDP
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clustercollectionToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< double > phi
std::vector< int > v_ntrk
int number_of_tracks_TECM
int number_of_tracks_BPIX
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< double > eta
std::vector< Muon > MuonCollection
collection of Muon objects
const edm::ESGetToken< SiStripLatency, SiStripLatencyRcd > latencyToken_
std::vector< int > nh_FPIX
std::vector< int > nh_TOB
Global3DPoint GlobalPoint
static constexpr auto TEC
edm::RunNumber_t lastrunnum
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
void endRun(edm::Run const &, edm::EventSetup const &) override
std::vector< double > chi2_ndof
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< int > nh_TEC
CosmicRateAnalyzer(const edm::ParameterSet &)
static double stampToReal(edm::Timestamp time)
int number_of_tracks_TIDM
~CosmicRateAnalyzer() override
static constexpr auto TOB
std::vector< int > nh_TIB
std::vector< int > nh_TID
bool getData(T &iHolder) const
static constexpr auto TID
std::vector< double > theta
edm::EDGetTokenT< reco::MuonCollection > muonTags_
edm::EDGetTokenT< reco::TrackCollection > trackTags_
static const std::string kSharedResource
static constexpr auto TIB
std::vector< double > chi2
std::vector< int > nh_BPIX
std::vector< double > charge
std::vector< Track > TrackCollection
collection of Tracks
T * make(const Args &... args) const
make new ROOT object