73 int ietaHB[18] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
74 11, 12, 13, 14, 15, 15, 16, 16};
75 int depthHB[18] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
76 1, 1, 1, 1, 1, 2, 1, 2};
77 double etaHB[18] = {0.0435, 0.1305, 0.2175, 0.3045, 0.3915, 0.4785,
78 0.5655, 0.6525, 0.7395, 0.8265, 0.9135, 1.0005,
79 1.0875, 1.1745, 1.2615, 1.2615, 1.3485, 1.3485};
80 double actLHB[18]= {7.35696, 7.41268, 7.52454, 7.69339, 7.92051, 8.20761,
81 8.55688, 8.97096, 9.45298, 10.0066, 10.6360, 11.3460,
82 12.1419, 13.0297, 10.1832, 3.83301, 2.61066, 5.32410};
84 for (
int i=0;
i<18; ++
i) {
89 int ietaHE[28] = {16, 17, 18, 18, 19, 19, 20, 20, 21, 21,
90 22, 22, 23, 23, 24, 24, 25, 25, 26, 26,
91 27, 27, 27, 28, 28, 28, 29, 29};
92 int depthHE[28] = {3, 1, 1, 2, 1, 2, 1, 2, 1, 2,
93 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,
94 1, 2, 3, 1, 2, 3, 1, 2};
95 double etaHE[28] = {1.3485, 1.4355, 1.5225, 1.5225, 1.6095, 1.6095, 1.6965,
96 1.6965, 1.7850, 1.7850, 1.8800, 1.8800, 1.9865, 1.9865,
97 2.1075, 2.1075, 2.2470, 2.2470, 2.4110, 2.4110, 2.5750,
98 2.5750, 2.5750, 2.7590, 2.7590, 2.8250, 2.9340, 2.9340};
99 double actLHE[28]= {4.23487, 8.05342, 2.21090, 5.69774, 2.57831, 5.21078,
100 2.54554, 5.14455, 2.51790, 5.08871, 2.49347, 5.03933,
101 2.47129, 4.99449, 2.45137, 4.95424, 2.43380, 4.91873,
102 2.41863, 4.88808, 1.65913, 0.74863, 4.86612, 1.65322,
103 0.74596, 4.84396, 1.64930, 0.744198};
105 for (
int i=0;
i<28; ++
i) {
107 actHE.push_back(act);
112 std::cout <<
"HcalDDDRecConstants::destructed!!!" << std::endl;
115 std::vector<HcalDDDRecConstants::HcalActiveLength>
118 if (type == 0)
return actHB;
166 std::vector<HcalDDDRecConstants::HcalActiveLength>
actHB ,
actHE;
187 std::vector<double>
PCharge,
PChi2,
PD0,
PD0Error,
dxyWithBS,
dzWithBS,
PdxyTrack,
PdzTrack,
PNormalizedChi2,
PNDoF,
PValidHits,
PLostHits,
NPvx,
NPvy,
NPvz,
NQOverP,
NQOverPError,
NTrkMomentum,
NRefPointX,
NRefPointY,
NRefPointZ;
217 if (maxDepth_ > 7) maxDepth_ = 7;
218 else if (maxDepth_ < 1) maxDepth_ = 4;
275 << _Triggers->size() << std::endl;
280 std::vector<int>
index;
281 for (
int i=0;
i < Ntriggers;
i++) {
283 int triggerSize =int( _Triggers->size());
285 <<
"\ntriggerSize " << triggerSize
287 if (index[i] < triggerSize) {
288 hltresults.push_back(_Triggers->accept(index[i])) ;
290 <<
" triggerSize " << index[i]
292 <<
" hltresult " << std::endl;
294 edm::LogInfo(
"TriggerBlock") <<
"Requested HLT path \"" <<
"\" does not exist";
345 for (reco::MuonCollection::const_iterator RecMuon = _Muon->begin(); RecMuon!= _Muon->end(); ++RecMuon) {
350 EtaGlob.push_back(RecMuon->eta());
351 PhiGlob.push_back(RecMuon->phi());
352 Energy.push_back(RecMuon->energy());
353 Pmuon.push_back(RecMuon->p());
356 if (RecMuon->track().isNonnull()) {
357 TrackerLayer.push_back(RecMuon->track()->hitPattern().trackerLayersWithMeasurement());
361 if (RecMuon->innerTrack().isNonnull()) {
363 NumPixelLayers.push_back(RecMuon->innerTrack()->hitPattern().pixelLayersWithMeasurement());
364 chiTracker.push_back(RecMuon->innerTrack()->normalizedChi2());
370 Tight_PixelHits.push_back(RecMuon->innerTrack()->hitPattern().numberOfValidPixelHits());
384 if (RecMuon->outerTrack().isNonnull()) {
389 OuterTrackChi.push_back(RecMuon->outerTrack()->normalizedChi2());
390 OuterTrackHits.push_back(RecMuon->outerTrack()->numberOfValidHits());
402 if (RecMuon->globalTrack().isNonnull()) {
404 chiGlobal.push_back(RecMuon->globalTrack()->normalizedChi2());
405 GlobalMuonHits.push_back(RecMuon->globalTrack()->hitPattern().numberOfValidMuonHits());
406 MatchedStat.push_back(RecMuon->numberOfMatchedStations());
424 IsolationR04.push_back(((RecMuon->pfIsolationR04().sumChargedHadronPt +
std::max(0.,RecMuon->pfIsolationR04().sumNeutralHadronEt + RecMuon->pfIsolationR04().sumPhotonEt - (0.5 *RecMuon->pfIsolationR04().sumPUPt))) / RecMuon->pt()) );
426 IsolationR03.push_back(((RecMuon->pfIsolationR03().sumChargedHadronPt +
std::max(0.,RecMuon->pfIsolationR03().sumNeutralHadronEt + RecMuon->pfIsolationR03().sumPhotonEt - (0.5 * RecMuon->pfIsolationR03().sumPUPt))) / RecMuon->pt()));
432 double eEcal(0),eHcal(0),activeL(0),eHcalDepth[7],eHcalDepthHot[7],eHcalDepthCalo[7],eHcalDepthHotCalo[7];
433 unsigned int isHot = 0;
434 unsigned int isHotCalo = 0;
436 for (
int i=0;
i<7; ++
i) eHcalDepth[
i]=eHcalDepthHot[
i]=eHcalDepthCalo[
i]=eHcalDepthHotCalo[
i]=-10000 ;
438 if (RecMuon->innerTrack().isNonnull()) {
439 const reco::Track* pTrack = (RecMuon->innerTrack()).
get();
448 std::pair<double,bool> e3x3 =
spr::eECALmatrix(isoCell,barrelRecHitsHandle,endcapRecHitsHandle,*theEcalChStatus,geo,caloTopology,sevlv.
product(),1,1,-100.0,-100.0,-500.0,500.0,
false);
456 eHcal =
spr::eHCALmatrix(theHBHETopology, closestCell, hbhe,0,0,
false,
true, -100.0, -100.0, -100.0, -100.0, -500.,500.);
459 std::vector<std::pair<double,int> > ehdepth;
460 spr::energyHCALCell((
HcalDetId) closestCell, hbhe, ehdepth,
maxDepth_, -100.0, -100.0, -100.0, -100.0, -500.0, 500.0, (((
verbosity_/1000)%10)>0));
461 for (
unsigned int i=0;
i<ehdepth.size(); ++
i) {
462 eHcalDepth[ehdepth[
i].second-1] = ehdepth[
i].first;
466 eHcal =
spr::eHCALmatrix(theHBHETopology, closestCell, calosimhits,0,0,
false,
true, -100.0, -100.0, -100.0, -100.0, -500.,500.);
470 std::vector<std::pair<double,int> > ehdepthCalo;
471 spr::energyHCALCell((
HcalDetId) closestCellCalo, calosimhits, ehdepthCalo,
maxDepth_, -100.0, -100.0, -100.0, -100.0, -500.0, 500.0, (((
verbosity_/1000)%10)>0));
472 for (
unsigned int i=0;
i<ehdepthCalo.size(); ++
i) {
473 eHcalDepthCalo[ehdepthCalo[
i].second-1] = ehdepthCalo[
i].first;
485 isHot =
matchId(closestCell,hotCell);
486 isHotCalo =
matchId(closestCellCalo,hotCellCalo);
490 std::vector<std::pair<double,int> > ehdepth;
492 spr::energyHCALCell(hotCell, hbhe, ehdepth,
maxDepth_, -100.0, -100.0, -100.0, -100.0, -500.0, 500.0,
false);
493 for (
unsigned int i=0;
i<ehdepth.size(); ++
i) {
494 eHcalDepthHot[ehdepth[
i].second-1] = ehdepth[
i].first;
500 std::vector<std::pair<double,int> > ehdepthCalo;
502 spr::energyHCALCell(hotCellCalo, calosimhits, ehdepthCalo,
maxDepth_, -100.0, -100.0, -100.0, -100.0, -500.0, 500.0,
false);
503 for (
unsigned int i=0;
i<ehdepthCalo.size(); ++
i) {
504 eHcalDepthHotCalo[ehdepthCalo[
i].second-1] = ehdepthCalo[
i].first;
681 edm::LogInfo(
"TriggerBlock") <<
"HLT config with process name "
682 <<
"HLT" <<
" successfully extracted";
683 std::string string_search[5]={
"HLT_IsoMu_",
"HLT_L1SingleMu_",
"HLT_L2Mu",
"HLT_Mu",
"HLT_RelIso1p0Mu"};
687 for (
unsigned int ik=0; ik<5; ++ik) {
688 if (
hltname.find(string_search[ik])!=std::string::npos ){
696 edm::LogError(
"TriggerBlock") <<
"Error! HLT config extraction with process name "
697 <<
"HLT"<<
" failed";
798 int match = ((kd1 == kd2) ? 1 : 0);
804 int ieta =
id.ietaAbs();
805 int depth=
id.depth();
809 for (
unsigned int i=0;
i<
actHB.size(); ++
i) {
817 for (
unsigned int i=0;
i<
actHE.size(); ++
i) {
unsigned int size() const
number of trigger paths in trigger table
double _RecoMuon1TrackIsoSumPtMaxCutValue_03
std::vector< double > MuonHcalDepth1HotEnergy
EventNumber_t event() const
edm::EDGetTokenT< edm::PCaloHitContainer > tok_hcal_
T getUntrackedParameter(std::string const &, T const &) const
std::vector< double > track_cosmic_positionOY
std::vector< double > NQOverP
std::vector< float > energy_hb
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
std::vector< double > dzWithBS
std::vector< double > GlobalMuonHits
std::vector< bool > muon_tracker
std::vector< double > MuonHcalDepth3HotEnergyCalo
std::vector< spr::propagatedTrackID > propagateCALO(edm::Handle< reco::TrackCollection > &trkCollection, const CaloGeometry *geo, const MagneticField *bField, std::string &theTrackQuality, bool debug=false)
std::vector< bool > muon_global
std::vector< double > PNormalizedChi2
std::vector< double > MuonEcal3x3Energy
std::vector< int > v_RH_h3x3_iphi
std::vector< double > PdzTrack
HcalSubdetector subdet() const
get the subdetector
const std::string & triggerName(unsigned int triggerIndex) const
std::vector< double > OuterTrackChi
std::vector< double > PCharge
std::vector< double > MuonHcalDepth4EnergyCalo
std::vector< double > NPvy
std::vector< double > Pmuon
edm::EDGetTokenT< EcalRecHitCollection > tok_EB_
std::vector< bool > OuterTrack
std::vector< double > MuonHcalActiveLength
std::vector< double > GlobalTrckPhi
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< double > DzTracker
std::vector< bool > muon_is_good
std::vector< std::string > hltpaths
std::vector< double > track_cosmic_rad
std::vector< double > NormChi2
#define DEFINE_FWK_MODULE(type)
std::vector< double > PxGlob
std::vector< int > v_RH_h3x3_ieta
std::vector< double > MuonHcalDepth6HotEnergy
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
std::vector< unsigned int > MuonHcalDetId
std::vector< double > MuonHcalDepth6EnergyCalo
double activeLength(const DetId &)
std::vector< unsigned int > MuonEcalDetId
std::vector< double > PChi2
std::vector< double > MuonHcalDepth5HotEnergyCalo
std::vector< double > MuonHcal1x1Energy
std::vector< double > MuonHcalDepth4HotEnergyCalo
edm::EDGetTokenT< reco::VertexCollection > tok_recVtx_
std::vector< unsigned int > MuonEHcalDetId
std::vector< double > track_cosmic_momentumIZ
int bunchCrossing() const
std::vector< double > NPvz
std::vector< double > OuterTrackEta
std::vector< double > MuonHcalDepth1HotEnergyCalo
std::vector< double > MuonHcalDepth1EnergyCalo
std::string theTrackQuality
std::vector< HcalDDDRecConstants::HcalActiveLength > actHB
std::vector< double > MuonHcalDepth7Energy
T * make(const Args &...args) const
make new ROOT object
std::vector< float > time_hb
std::vector< double > OuterTrackPt
std::vector< std::string > TrigName_
std::vector< unsigned int > MuonHcalHot
std::vector< std::string > all_triggers5
std::vector< std::string > all_triggers1
std::vector< double > PzGlob
std::vector< double > Tight_LongPara
std::vector< double > NPvx
std::vector< double > innerTrackphi
std::vector< double > TrackerLayer
std::vector< double > NRefPointZ
std::vector< double > MuonHcalDepth1Energy
LuminosityBlockNumber_t luminosityBlock() const
std::vector< unsigned int > MuonHcalHotCalo
std::vector< double > MuonHcalDepth4Energy
const Point & position() const
position
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
std::vector< double > MuonHcalDepth3HotEnergy
std::vector< double > EtaGlob
std::vector< double > track_cosmic_momentumOZ
std::vector< double > NQOverPError
std::vector< double > track_cosmic_momentumIX
std::vector< double > PNDoF
std::vector< double > PD0
uint32_t rawId() const
get the raw id
std::vector< double > track_cosmic_ymomentum
std::vector< double > innerTracketa
double eHCALmatrix(const HcalTopology *topology, const DetId &det, edm::Handle< T > &hits, int ieta, int iphi, bool includeHO=false, bool algoNew=true, double hbThr=-100, double heThr=-100, double hfThr=-100, double hoThr=-100, double tMin=-500, double tMax=500, bool debug=false)
void energyHCALCell(HcalDetId detId, edm::Handle< T > &hits, std::vector< std::pair< double, int > > &energyCell, int maxDepth=1, double hbThr=-100, double heThr=-100, double hfThr=-100, double hoThr=-100, double tMin=-500, double tMax=500, bool debug=false)
std::vector< std::string > all_triggers2
std::vector< double > PdxyTrack
std::vector< double > OuterTrackRHits
std::vector< double > MuonHcalDepth5HotEnergy
std::vector< double > MuonEcalEnergy
std::vector< double > trackerlayer_hits
std::vector< double > Tight_GlobalMuonTrkFit
void addDefault(ParameterSetDescription const &psetDescription)
std::vector< double > track_cosmic_xmomentum
std::vector< bool > all_ifTriggerpassed
unsigned int triggerIndex(std::string const &name) const
std::vector< double > track_cosmic_positionIY
edm::EDGetTokenT< edm::TriggerResults > tok_trigRes_
std::vector< double > PLostHits
std::vector< double > MuonHcalDepth2EnergyCalo
double _RecoMuon1TrackIsoSumPtMaxCutValue_04
std::vector< double > track_cosmic_momentumIY
std::vector< double > Energy
std::vector< double > MuonHcalDepth2Energy
std::vector< double > MuonHOEnergy
std::vector< double > track_cosmic_positionIZ
HLTConfigProvider hltConfig_
int ieta() const
get the cell ieta
std::vector< double > MuonHcalDepth5EnergyCalo
std::vector< double > High_TrackLayers
std::vector< double > track_cosmic_positionOZ
std::vector< double > Tight_TransImpara
std::vector< double > track_cosmic_detid
std::vector< double > Tight_MuonHits
std::vector< HcalActiveLength > actHE
std::vector< double > track_cosmic_momentumOX
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
std::vector< double > track_cosmic_yposition
std::vector< double > track_cosmic_positionIX
virtual void analyze(const edm::Event &, const edm::EventSetup &)
std::vector< double > track_cosmic_momentumOY
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
std::vector< double > DxyTracker
std::vector< HcalActiveLength > getThickActive(const int type) const
std::vector< bool > innerTrack
HcalActiveLength(int ie=0, int d=0, double et=0, double t=0)
std::vector< std::string > all_triggers
std::vector< double > MuonHcalDepth7EnergyCalo
int iphi() const
get the cell iphi
std::vector< HcalDDDRecConstants::HcalActiveLength > actHE
std::vector< double > innerTrackpt
std::vector< double > track_cosmic_detIDinner
virtual void endRun(edm::Run const &, edm::EventSetup const &)
std::vector< bool > Trk_match_MuStat
std::vector< double > MuonHcalDepth3EnergyCalo
std::vector< bool > NTrkQuality
std::vector< double > MuonHcalDepth2HotEnergyCalo
std::vector< double > MuonHcalDepth7HotEnergyCalo
XYZPointD XYZPoint
point in space with cartesian internal representation
std::vector< double > MuonHcalDepth7HotEnergy
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
HcalRaddamMuon(const edm::ParameterSet &)
std::vector< double > v_RH_h3x3_ene
std::vector< double > track_cosmic_detIDouter
std::vector< double > Tight_TrkerLayers
edm::InputTag HLTriggerResults_
std::vector< double > chiTracker
T const * product() const
std::vector< bool > GlobalTrack
std::vector< double > dxyWithBS
std::vector< HcalActiveLength > actHB
std::vector< double > MuonHcalDepth6HotEnergyCalo
std::vector< double > MuonHcalDepth2HotEnergy
std::vector< double > No_pixelLayers
std::vector< double > Tight_MatchedStations
std::vector< double > GlobalTrckPt
std::vector< double > MuonHcalDepth5Energy
std::vector< double > Pthetha
std::vector< double > OuterTrackPhi
std::vector< double > Tight_PixelHits
std::vector< std::string > all_triggers3
std::vector< double > NRefPointX
edm::EDGetTokenT< reco::MuonCollection > tok_muon_
std::vector< double > PValidHits
static int position[264][3]
std::vector< double > track_cosmic_zmomentum
std::vector< double > track_cosmic_xposition
std::vector< double > MuonHcalDepth4HotEnergy
std::vector< double > PhiGlob
std::vector< std::string > all_triggers4
std::vector< double > NTrkMomentum
std::vector< double > NumPixelLayers
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
std::vector< double > OuterTrackHits
int matchId(const HcalDetId &, const HcalDetId &)
edm::EDGetTokenT< EcalRecHitCollection > tok_EE_
std::vector< double > chiGlobal
std::vector< double > PyGlob
std::vector< double > IsolationR03
std::vector< double > MuonHcalEnergy
std::vector< double > MuonHcalDepth3Energy
edm::EDGetTokenT< reco::BeamSpot > tok_bs_
std::vector< double > PD0Error
std::vector< int > hltresults
std::vector< double > MuonHcalDepth6Energy
std::vector< double > PtGlob
std::vector< double > track_cosmic_zposition
cond::RealTimeType< cond::runnumber >::type RunNumber
std::vector< double > NRefPointY
edm::Service< TFileService > fs
std::vector< double > IsolationR04
std::vector< double > GlobalTrckEta
std::vector< double > track_cosmic_positionOX
double eECALmatrix(const DetId &detId, edm::Handle< T > &hitsEB, edm::Handle< T > &hitsEE, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, double ebThr=-100, double eeThr=-100, double tMin=-500, double tMax=500, bool debug=false)
std::vector< double > ImpactParameter
std::vector< double > MatchedStat
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)