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 Member Functions | Private Attributes
SiStripGainFromData Class Reference
Inheritance diagram for SiStripGainFromData:
ConditionDBWriter< SiStripApvGain > edm::EDAnalyzer edm::EDConsumerBase

Classes

class  isEqual
 

Public Member Functions

 SiStripGainFromData (const edm::ParameterSet &)
 
 ~SiStripGainFromData ()
 
- Public Member Functions inherited from ConditionDBWriter< SiStripApvGain >
 ConditionDBWriter (const edm::ParameterSet &iConfig)
 
virtual ~ConditionDBWriter ()
 
- 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 (const std::string &iProcessName, std::vector< const char * > &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 Member Functions

virtual void algoAnalyze (const edm::Event &, const edm::EventSetup &) override
 
virtual void algoBeginJob (const edm::EventSetup &) override
 
virtual void algoBeginRun (const edm::Run &, const edm::EventSetup &) override
 
virtual void algoEndJob () override
 
double ComputeChargeOverPath (const SiStripCluster *Cluster, TrajectoryStateOnSurface trajState, const edm::EventSetup *iSetup, const Track *track, double trajChi2OverN)
 
SiStripApvGaingetNewObject () override
 
void getPeakOfLandau (TH1 *InputHisto, double *FitResults, double LowRange=0, double HighRange=5400)
 
bool IsFarFromBorder (TrajectoryStateOnSurface trajState, const uint32_t detid, const edm::EventSetup *iSetup)
 

Private Attributes

std::string AlgoMode
 
bool AllowSaturation
 
TH2F * APV_Charge
 
TH1F * APV_CumulGain
 
TH1F * APV_DetId
 
TH1F * APV_Eta
 
TH1F * APV_Gain
 
TH1F * APV_Id
 
TH2F * APV_Momentum
 
TH1F * APV_MPV
 
TH2F * APV_PathLength
 
TH1F * APV_PathLengthM
 
TH1F * APV_PrevGain
 
TH1F * APV_R
 
TH1F * APV_SubDet
 
TH1F * APV_Thickness
 
__gnu_cxx::hash_map< unsigned
int, stAPVGain
*, __gnu_cxx::hash< unsigned
int >, isEqual
APVsColl
 
std::vector< stAPVGain * > APVsCollOrdered
 
int CalibrationLevel
 
TH1F * Charge_TEC
 
TH1F * Charge_TEC1
 
TH1F * Charge_TEC2
 
TH1F * Charge_TECM
 
TH1F * Charge_TECP
 
TH1F * Charge_TIB
 
TH1F * Charge_TID
 
TH1F * Charge_TIDM
 
TH1F * Charge_TIDP
 
TH1F * Charge_TOB
 
TH2F * Charge_Vs_Alpha
 
TH2F * Charge_Vs_Beta
 
TH2F * Charge_Vs_PathLength
 
TH2F * Charge_Vs_PathLength320
 
TH2F * Charge_Vs_PathLength500
 
TH2F * Charge_Vs_PathTEC
 
TH2F * Charge_Vs_PathTEC1
 
TH2F * Charge_Vs_PathTEC2
 
TH2F * Charge_Vs_PathTIB
 
TH2F * Charge_Vs_PathTID
 
TH2F * Charge_Vs_PathTOB
 
TH2F * Charge_Vs_TransversAngle
 
bool CheckIfFileExist
 
bool CheckLocalAngle
 
DQMStoredqmStore_
 
DQMStoredqmStore_infile
 
unsigned int EEvent
 
TH2F * Error_Vs_Entries
 
TH2F * Error_Vs_Eta
 
TH2F * Error_Vs_MPV
 
TH2F * Error_Vs_Phi
 
unsigned int ERun
 
TimeValue_t ETimestamp
 
bool FirstSetOfConstants
 
TH1F * FWHM_Vs_PathLength
 
TH1F * FWHM_Vs_PathLength320
 
TH1F * FWHM_Vs_PathLength500
 
TH1F * HChi2OverNDF
 
TH1F * HFirstStrip
 
TH2F * HitLocalPosition
 
TH2F * HitLocalPositionBefCut
 
TH1F * HTrackChi2OverNDF
 
TH1F * HTrackHits
 
const edm::EventiEvent_
 
const edm::EventSetupiSetup_
 
TH1F * JobInfo
 
double MaxChi2OverNDF
 
double MaxMPVError
 
unsigned int MaxNrStrips
 
double MaxTrackChiOverNdf
 
double MaxTrackEta
 
double MaxTrackMomentum
 
unsigned int MinNrEntries
 
double MinTrackEta
 
unsigned int MinTrackHits
 
double MinTrackMomentum
 
TH1F * MPV_Vs_Alpha
 
TH1F * MPV_Vs_Beta
 
TH2F * MPV_Vs_Eta
 
TH2F * MPV_Vs_EtaTEC
 
TH2F * MPV_Vs_EtaTEC1
 
TH2F * MPV_Vs_EtaTEC2
 
TH2F * MPV_Vs_EtaTIB
 
TH2F * MPV_Vs_EtaTID
 
TH2F * MPV_Vs_EtaTOB
 
TH1F * MPV_Vs_PathLength
 
TH1F * MPV_Vs_PathLength320
 
TH1F * MPV_Vs_PathLength500
 
TH1F * MPV_Vs_PathTEC
 
TH1F * MPV_Vs_PathTEC1
 
TH1F * MPV_Vs_PathTEC2
 
TH1F * MPV_Vs_PathTIB
 
TH1F * MPV_Vs_PathTID
 
TH1F * MPV_Vs_PathTOB
 
TH2F * MPV_Vs_Phi
 
TH2F * MPV_Vs_PhiTEC
 
TH2F * MPV_Vs_PhiTEC1
 
TH2F * MPV_Vs_PhiTEC2
 
TH2F * MPV_Vs_PhiTIB
 
TH2F * MPV_Vs_PhiTID
 
TH2F * MPV_Vs_PhiTOB
 
TH2F * MPV_Vs_R
 
TH1F * MPV_Vs_TransversAngle
 
TH1F * MPVs
 
TH1F * MPVs320
 
TH1F * MPVs500
 
unsigned int NEvent
 
TH1F * NHighStripInCluster
 
TH2F * NoMPV_Vs_EtaPhi
 
TH1F * NSatStripInCluster
 
TH2F * NStrips_Vs_Alpha
 
TH2F * NStrips_Vs_Beta
 
TH2F * NStrips_Vs_TransversAngle
 
TH1F * NumberOfEntriesByAPV
 
std::string OutputGains
 
std::string OutputHistos
 
unsigned int SEvent
 
unsigned int SRun
 
TimeValue_t STimestamp
 
MonitorElementtmp
 
TH2F * Tracks_P_Vs_Eta
 
TH2F * Tracks_Pt_Vs_Eta
 
std::string TrajToTrackLabel
 
std::string TrajToTrackProducer
 
bool Validation
 
vector< string > VInputFiles
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- 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 ConditionDBWriter< SiStripApvGain >
void setDoStore (const bool doStore)
 When set to false the payload will not be written to the db. More...
 
void storeOnDbNow ()
 
cond::Time_t timeOfLastIOV ()
 
- 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

Definition at line 83 of file SiStripGainFromData.cc.

Constructor & Destructor Documentation

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

Definition at line 290 of file SiStripGainFromData.cc.

References AlgoMode, AllowSaturation, CalibrationLevel, CheckIfFileExist, CheckLocalAngle, dqmStore_, dqmStore_infile, FirstSetOfConstants, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), MaxChi2OverNDF, MaxMPVError, MaxNrStrips, MaxTrackChiOverNdf, MaxTrackEta, MaxTrackMomentum, MinNrEntries, MinTrackEta, MinTrackHits, MinTrackMomentum, cppFunctionSkipper::operator, OutputGains, OutputHistos, AlCaHLTBitMon_QueryRunRegistry::string, TrajToTrackLabel, TrajToTrackProducer, Validation, and VInputFiles.

291 {
292  AlgoMode = iConfig.getParameter<std::string>("AlgoMode");
293 
294  OutputGains = iConfig.getParameter<std::string>("OutputGains");
295  OutputHistos = iConfig.getParameter<std::string>("OutputHistos");
296 
297  TrajToTrackProducer = iConfig.getParameter<std::string>("TrajToTrackProducer");
298  TrajToTrackLabel = iConfig.getParameter<std::string>("TrajToTrackLabel");
299 
300  CheckLocalAngle = iConfig.getUntrackedParameter<bool> ("checkLocalAngle" , false);
301  MinNrEntries = iConfig.getUntrackedParameter<unsigned>("minNrEntries" , 20);
302  MaxMPVError = iConfig.getUntrackedParameter<double> ("maxMPVError" , 500.0);
303  MaxChi2OverNDF = iConfig.getUntrackedParameter<double> ("maxChi2OverNDF" , 5.0);
304  MinTrackMomentum = iConfig.getUntrackedParameter<double> ("minTrackMomentum" , 3.0);
305  MaxTrackMomentum = iConfig.getUntrackedParameter<double> ("maxTrackMomentum" , 99999.0);
306  MinTrackEta = iConfig.getUntrackedParameter<double> ("minTrackEta" , -5.0);
307  MaxTrackEta = iConfig.getUntrackedParameter<double> ("maxTrackEta" , 5.0);
308  MaxNrStrips = iConfig.getUntrackedParameter<unsigned>("maxNrStrips" , 2);
309  MinTrackHits = iConfig.getUntrackedParameter<unsigned>("MinTrackHits" , 8);
310  MaxTrackChiOverNdf = iConfig.getUntrackedParameter<double> ("MaxTrackChiOverNdf" , 3);
311  AllowSaturation = iConfig.getUntrackedParameter<bool> ("AllowSaturation" , false);
312  FirstSetOfConstants = iConfig.getUntrackedParameter<bool> ("FirstSetOfConstants", true);
313  Validation = iConfig.getUntrackedParameter<bool> ("Validation" , false);
314  CheckIfFileExist = iConfig.getUntrackedParameter<bool> ("CheckIfFileExist" , false);
315 
316  CalibrationLevel = iConfig.getUntrackedParameter<int> ("CalibrationLevel" , 0);
317 
318 
319  if( strcmp(AlgoMode.c_str(),"WriteOnDB")==0 )
320  VInputFiles = iConfig.getParameter<vector<string> >("VInputFiles");
321 
324 
325  //if( OutputHistos!="" )
326  // dqmStore_->open(OutputHistos.c_str(), true);
327 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
vector< string > VInputFiles
SiStripGainFromData::~SiStripGainFromData ( )

Definition at line 330 of file SiStripGainFromData.cc.

331 {
332 }

Member Function Documentation

void SiStripGainFromData::algoAnalyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Reimplemented from ConditionDBWriter< SiStripApvGain >.

Definition at line 1003 of file SiStripGainFromData.cc.

References AlgoMode, edm::AssociationMap< Tag >::begin(), Trajectory::chiSquared(), SiStripRecHit1D::cluster(), SiStripRecHit2D::cluster(), ComputeChargeOverPath(), edm::AssociationMap< edm::OneToOne< std::vector< Trajectory >, reco::TrackCollection, unsigned short > >::const_iterator, EEvent, edm::AssociationMap< Tag >::end(), ERun, reco::TrackBase::eta(), ETimestamp, edm::EventID::event(), Trajectory::foundHits(), edm::Event::getByLabel(), HTrackChi2OverNDF, HTrackHits, edm::EventBase::id(), iEvent, iEvent_, TrajectoryStateOnSurface::isValid(), MaxTrackChiOverNdf, MaxTrackEta, MaxTrackMomentum, Trajectory::measurements(), MinTrackEta, MinTrackHits, MinTrackMomentum, SiStripMatchedRecHit2D::monoCluster(), NEvent, reco::TrackBase::p(), edm::Handle< T >::product(), reco::TrackBase::pt(), edm::EventID::run(), SEvent, SRun, SiStripMatchedRecHit2D::stereoCluster(), STimestamp, edm::EventBase::time(), Tracks_P_Vs_Eta, Tracks_Pt_Vs_Eta, TrajToTrackLabel, TrajToTrackProducer, and edm::Timestamp::value().

1004 {
1005 
1006  if( strcmp(AlgoMode.c_str(),"WriteOnDB")==0 ) return;
1007 
1008  if(NEvent==0){
1009  SRun = iEvent.id().run();
1010  SEvent = iEvent.id().event();
1011  STimestamp = iEvent.time().value();
1012  }
1013  ERun = iEvent.id().run();
1014  EEvent = iEvent.id().event();
1015  ETimestamp = iEvent.time().value();
1016  NEvent++;
1017 
1018  iEvent_ = &iEvent;
1019 
1020  Handle<TrajTrackAssociationCollection> trajTrackAssociationHandle;
1021  iEvent.getByLabel(TrajToTrackProducer, TrajToTrackLabel, trajTrackAssociationHandle);
1022  const TrajTrackAssociationCollection TrajToTrackMap = *trajTrackAssociationHandle.product();
1023 
1024 
1025  for(TrajTrackAssociationCollection::const_iterator it = TrajToTrackMap.begin(); it!=TrajToTrackMap.end(); ++it) {
1026  const Track track = *it->val;
1027  const Trajectory traj = *it->key;
1028 
1029 
1030  if(track.p()<MinTrackMomentum || track.p()>MaxTrackMomentum || track.eta()<MinTrackEta || track.eta()>MaxTrackEta) continue;
1031 
1032  Tracks_Pt_Vs_Eta->Fill(fabs(track.eta()),track.pt());
1033  Tracks_P_Vs_Eta ->Fill(fabs(track.eta()),track.p());
1034 
1035  //BEGIN TO COMPUTE NDOF FOR TRACKS NO IMPLEMENTED BEFORE 200pre3
1036  int ndof =0;
1037  const Trajectory::RecHitContainer transRecHits = traj.recHits();
1038 
1039  for(Trajectory::RecHitContainer::const_iterator rechit = transRecHits.begin(); rechit != transRecHits.end(); ++rechit)
1040  if ((*rechit)->isValid()) ndof += (*rechit)->dimension();
1041  ndof -= 5;
1042  //END TO COMPUTE NDOF FOR TRACKS NO IMPLEMENTED BEFORE 200pre3
1043 
1044  HTrackChi2OverNDF->Fill(traj.chiSquared()/ndof);
1045  if(traj.chiSquared()/ndof>MaxTrackChiOverNdf)continue;
1046 
1047  vector<TrajectoryMeasurement> measurements = traj.measurements();
1048  HTrackHits->Fill(traj.foundHits());
1049  if(traj.foundHits()<(int)MinTrackHits)continue;
1050 /*
1051  //BEGIN TO COMPUTE #MATCHEDRECHIT IN THE TRACK
1052  int NMatchedHit = 0;
1053  for(vector<TrajectoryMeasurement>::const_iterator measurement_it = measurements.begin(); measurement_it!=measurements.end(); measurement_it++){
1054  TrajectoryStateOnSurface trajState = measurement_it->updatedState();
1055  if( !trajState.isValid() ) continue;
1056  const TrackingRecHit* hit = (*measurement_it->recHit()).hit();
1057  const SiStripMatchedRecHit2D* sistripmatchedhit = dynamic_cast<const SiStripMatchedRecHit2D*>(hit);
1058  if(sistripmatchedhit)NMatchedHit++;
1059 // NMatchedHit++;
1060 
1061  }
1062  //END TO COMPUTE #MATCHEDRECHIT IN THE TRACK
1063 
1064  if(NMatchedHit<2){
1065  printf("NOT ENOUGH MATCHED RECHITS : %i\n",NMatchedHit);
1066  continue;
1067  }
1068 */
1069 
1070  for(vector<TrajectoryMeasurement>::const_iterator measurement_it = measurements.begin(); measurement_it!=measurements.end(); measurement_it++){
1071 
1072  TrajectoryStateOnSurface trajState = measurement_it->updatedState();
1073  if( !trajState.isValid() ) continue;
1074 
1075  const TrackingRecHit* hit = (*measurement_it->recHit()).hit();
1076  const SiStripRecHit1D* sistripsimple1dhit = dynamic_cast<const SiStripRecHit1D*>(hit);
1077  const SiStripRecHit2D* sistripsimplehit = dynamic_cast<const SiStripRecHit2D*>(hit);
1078  const SiStripMatchedRecHit2D* sistripmatchedhit = dynamic_cast<const SiStripMatchedRecHit2D*>(hit);
1079 
1080  if(sistripsimplehit){
1081  ComputeChargeOverPath((sistripsimplehit->cluster()).get(), trajState, &iSetup, &track, traj.chiSquared()/ndof);
1082  }else if(sistripmatchedhit){
1083  ComputeChargeOverPath(&sistripmatchedhit->monoCluster(),trajState, &iSetup, &track, traj.chiSquared()/ndof);
1084  ComputeChargeOverPath(&sistripmatchedhit->stereoCluster(),trajState, &iSetup, &track, traj.chiSquared()/ndof);
1085  }else if(sistripsimple1dhit){
1086  ComputeChargeOverPath((sistripsimple1dhit->cluster()).get(), trajState, &iSetup, &track, traj.chiSquared()/ndof);
1087  }else{
1088  }
1089 
1090  }
1091 
1092  }
1093 }
RunNumber_t run() const
Definition: EventID.h:39
ClusterRef cluster() const
double p() const
momentum vector magnitude
Definition: TrackBase.h:663
EventNumber_t event() const
Definition: EventID.h:41
int foundHits() const
Definition: Trajectory.h:234
const_iterator end() const
last iterator over the map (read only)
SiStripCluster const & monoCluster() const
DataContainer const & measurements() const
Definition: Trajectory.h:203
int iEvent
Definition: GenABIO.cc:230
double eta() const
pseudorapidity of momentum vector
Definition: TrackBase.h:699
double pt() const
track transverse momentum
Definition: TrackBase.h:669
ClusterRef cluster() const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:405
T const * product() const
Definition: Handle.h:81
double ComputeChargeOverPath(const SiStripCluster *Cluster, TrajectoryStateOnSurface trajState, const edm::EventSetup *iSetup, const Track *track, double trajChi2OverN)
ConstRecHitContainer RecHitContainer
Definition: Trajectory.h:48
float chiSquared() const
Definition: Trajectory.h:252
SiStripCluster const & stereoCluster() const
edm::EventID id() const
Definition: EventBase.h:60
const_iterator begin() const
first iterator over the map (read only)
TimeValue_t value() const
Definition: Timestamp.h:56
edm::Timestamp time() const
Definition: EventBase.h:61
const edm::Event * iEvent_
void SiStripGainFromData::algoBeginJob ( const edm::EventSetup iSetup)
overrideprivatevirtual

Reimplemented from ConditionDBWriter< SiStripApvGain >.

Definition at line 336 of file SiStripGainFromData.cc.

References AlgoMode, sistrip::APV, APV_Charge, APV_CumulGain, APV_DetId, APV_Eta, APV_Gain, APV_Id, APV_Momentum, APV_MPV, APV_PathLength, APV_PathLengthM, APV_PrevGain, APV_R, APV_SubDet, APV_Thickness, stAPVGain::APVId, APVsColl, APVsCollOrdered, Charge_TEC, Charge_TEC1, Charge_TEC2, Charge_TECM, Charge_TECP, Charge_TIB, Charge_TID, Charge_TIDM, Charge_TIDP, Charge_TOB, Charge_Vs_Alpha, Charge_Vs_Beta, Charge_Vs_PathLength, Charge_Vs_PathLength320, Charge_Vs_PathLength500, Charge_Vs_PathTEC, Charge_Vs_PathTEC1, Charge_Vs_PathTEC2, Charge_Vs_PathTIB, Charge_Vs_PathTID, Charge_Vs_PathTOB, Charge_Vs_TransversAngle, compareJSON::const, stAPVGain::DetId, dqmStore_, EEvent, Error_Vs_Entries, Error_Vs_Eta, Error_Vs_MPV, Error_Vs_Phi, ERun, reco::tau::disc::Eta(), stAPVGain::Eta, ETimestamp, cmsRelvalreport::exit, FWHM_Vs_PathLength, FWHM_Vs_PathLength320, FWHM_Vs_PathLength500, stAPVGain::Gain, edm::EventSetup::get(), MonitorElement::getTH1F(), MonitorElement::getTH2F(), HChi2OverNDF, HFirstStrip, HTrackChi2OverNDF, HTrackHits, i, stAPVGain::Index, iSetup_, edm::ESHandleBase::isValid(), j, JobInfo, stAPVGain::MPV, MPV_Vs_Alpha, MPV_Vs_Beta, MPV_Vs_Eta, MPV_Vs_EtaTEC, MPV_Vs_EtaTEC1, MPV_Vs_EtaTEC2, MPV_Vs_EtaTIB, MPV_Vs_EtaTID, MPV_Vs_EtaTOB, MPV_Vs_PathLength, MPV_Vs_PathLength320, MPV_Vs_PathLength500, MPV_Vs_PathTEC, MPV_Vs_PathTEC1, MPV_Vs_PathTEC2, MPV_Vs_PathTIB, MPV_Vs_PathTID, MPV_Vs_PathTOB, MPV_Vs_Phi, MPV_Vs_PhiTEC, MPV_Vs_PhiTEC1, MPV_Vs_PhiTEC2, MPV_Vs_PhiTIB, MPV_Vs_PhiTID, MPV_Vs_PhiTOB, MPV_Vs_R, MPV_Vs_TransversAngle, MPVs, MPVs320, MPVs500, NEvent, NHighStripInCluster, NoMPV_Vs_EtaPhi, NSatStripInCluster, StripTopology::nstrips(), NStrips_Vs_Alpha, NStrips_Vs_Beta, NStrips_Vs_TransversAngle, NumberOfEntriesByAPV, colinearityKinematic::Phi, stAPVGain::Phi, stAPVGain::PreviousGain, edm::ESHandle< class >::product(), dttmaxenums::R, stAPVGain::R, DetId::rawId(), SEvent, stAPVGain::Side, SRun, STimestamp, stAPVGain::SubDet, DetId::subdetId(), StripSubdetector::TEC, TrackerTopology::tecSide(), stAPVGain::Thickness, StripSubdetector::TIB, StripSubdetector::TID, tmp, StripSubdetector::TOB, Tracks_P_Vs_Eta, and Tracks_Pt_Vs_Eta.

337 {
338  //Retrieve tracker topology from geometry
339  edm::ESHandle<TrackerTopology> tTopoHandle;
340  iSetup.get<IdealGeometryRecord>().get(tTopoHandle);
341  const TrackerTopology* const tTopo = tTopoHandle.product();
342 
343  iSetup_ = &iSetup;
344 
345 // TH1::AddDirectory(kTRUE);
346 
347  tmp = dqmStore_->book1D ("JobInfo" , "JobInfo", 20,0,20); JobInfo = tmp->getTH1F();
348 
349  tmp = dqmStore_->book1D ("APV_DetId" , "APV_DetId" , 72785,0,72784); APV_DetId = tmp->getTH1F();
350  tmp = dqmStore_->book1D ("APV_Id" , "APV_Id" , 72785,0,72784); APV_Id = tmp->getTH1F();
351  tmp = dqmStore_->book1D ("APV_Eta" , "APV_Eta" , 72785,0,72784); APV_Eta = tmp->getTH1F();
352  tmp = dqmStore_->book1D ("APV_R" , "APV_R" , 72785,0,72784); APV_R = tmp->getTH1F();
353  tmp = dqmStore_->book1D ("APV_SubDet" , "APV_SubDet" , 72785,0,72784); APV_SubDet = tmp->getTH1F();
354  tmp = dqmStore_->book2D ("APV_Momentum" , "APV_Momentum" , 72785,0,72784, 50,0,200); APV_Momentum = tmp->getTH2F();
355  tmp = dqmStore_->book2D ("APV_Charge" , "APV_Charge" , 72785,0,72784, 1000,0,2000); APV_Charge = tmp->getTH2F();
356  tmp = dqmStore_->book2D ("APV_PathLength" , "APV_PathLength" , 72785,0,72784, 100,0.2,1.4); APV_PathLength = tmp->getTH2F();
357  tmp = dqmStore_->book1D ("APV_PathLengthM", "APV_PathLengthM", 72785,0,72784); APV_PathLengthM = tmp->getTH1F();
358  tmp = dqmStore_->book1D ("APV_MPV" , "APV_MPV" , 72785,0,72784); APV_MPV = tmp->getTH1F();
359  tmp = dqmStore_->book1D ("APV_Gain" , "APV_Gain" , 72785,0,72784); APV_Gain = tmp->getTH1F();
360  tmp = dqmStore_->book1D ("APV_PrevGain" , "APV_PrevGain" , 72785,0,72784); APV_PrevGain = tmp->getTH1F();
361  tmp = dqmStore_->book1D ("APV_CumulGain" , "APV_CumulGain" , 72785,0,72784); APV_CumulGain = tmp->getTH1F();
362  tmp = dqmStore_->book1D ("APV_Thickness" , "APV_Thicknes" , 72785,0,72784); APV_Thickness = tmp->getTH1F();
363 
364 
365  tmp = dqmStore_->book2D ("Tracks_P_Vs_Eta" , "Tracks_P_Vs_Eta" , 30, 0,3,50,0,200); Tracks_P_Vs_Eta = tmp->getTH2F();
366  tmp = dqmStore_->book2D ("Tracks_Pt_Vs_Eta" , "Tracks_Pt_Vs_Eta", 30, 0,3,50,0,200); Tracks_Pt_Vs_Eta = tmp->getTH2F();
367 
368  tmp = dqmStore_->book2D ("Charge_Vs_PathTIB" , "Charge_Vs_PathTIB" ,100,0.2,1.4, 500,0,2000); Charge_Vs_PathTIB = tmp->getTH2F();
369  tmp = dqmStore_->book2D ("Charge_Vs_PathTID" , "Charge_Vs_PathTID" ,100,0.2,1.4, 500,0,2000); Charge_Vs_PathTID = tmp->getTH2F();
370  tmp = dqmStore_->book2D ("Charge_Vs_PathTOB" , "Charge_Vs_PathTOB" ,100,0.2,1.4, 500,0,2000); Charge_Vs_PathTOB = tmp->getTH2F();
371  tmp = dqmStore_->book2D ("Charge_Vs_PathTEC" , "Charge_Vs_PathTEC" ,100,0.2,1.4, 500,0,2000); Charge_Vs_PathTEC = tmp->getTH2F();
372  tmp = dqmStore_->book2D ("Charge_Vs_PathTEC1", "Charge_Vs_PathTEC1",100,0.2,1.4, 500,0,2000); Charge_Vs_PathTEC1 = tmp->getTH2F();
373  tmp = dqmStore_->book2D ("Charge_Vs_PathTEC2", "Charge_Vs_PathTEC2",100,0.2,1.4, 500,0,2000); Charge_Vs_PathTEC2 = tmp->getTH2F();
374 
375 
376  tmp = dqmStore_->book1D ("Charge_TIB" , "Charge_TIB" ,1000,0,2000); Charge_TIB = tmp->getTH1F();
377  tmp = dqmStore_->book1D ("Charge_TID" , "Charge_TID" ,1000,0,2000); Charge_TID = tmp->getTH1F();
378  tmp = dqmStore_->book1D ("Charge_TID+", "Charge_TID+",1000,0,2000); Charge_TIDP = tmp->getTH1F();
379  tmp = dqmStore_->book1D ("Charge_TID-", "Charge_TID-",1000,0,2000); Charge_TIDM = tmp->getTH1F();
380  tmp = dqmStore_->book1D ("Charge_TOB" , "Charge_TOB" ,1000,0,2000); Charge_TOB = tmp->getTH1F();
381  tmp = dqmStore_->book1D ("Charge_TEC" , "Charge_TEC" ,1000,0,2000); Charge_TEC = tmp->getTH1F();
382  tmp = dqmStore_->book1D ("Charge_TEC1", "Charge_TEC1",1000,0,2000); Charge_TEC1 = tmp->getTH1F();
383  tmp = dqmStore_->book1D ("Charge_TEC2", "Charge_TEC2",1000,0,2000); Charge_TEC2 = tmp->getTH1F();
384  tmp = dqmStore_->book1D ("Charge_TEC+", "Charge_TEC+",1000,0,2000); Charge_TECP = tmp->getTH1F();
385  tmp = dqmStore_->book1D ("Charge_TEC-", "Charge_TEC-",1000,0,2000); Charge_TECM = tmp->getTH1F();
386 
387 
388 /*
389  tmp = dqmStore_->book2D ("Charge_Vs_PathLength_CS1", "Charge_Vs_PathLength_CS1" , 250,0.2,1.4, 500,0,2000); Charge_Vs_PathLength_CS1 = tmp->getTH2F();
390  tmp = dqmStore_->book2D ("Charge_Vs_PathLength_CS2", "Charge_Vs_PathLength_CS2" , 250,0.2,1.4, 500,0,2000); Charge_Vs_PathLength_CS2 = tmp->getTH2F();
391  tmp = dqmStore_->book2D ("Charge_Vs_PathLength_CS3", "Charge_Vs_PathLength_CS3" , 250,0.2,1.4, 500,0,2000); Charge_Vs_PathLength_CS3 = tmp->getTH2F();
392  tmp = dqmStore_->book2D ("Charge_Vs_PathLength_CS4", "Charge_Vs_PathLength_CS4" , 250,0.2,1.4, 500,0,2000); Charge_Vs_PathLength_CS4 = tmp->getTH2F();
393  tmp = dqmStore_->book2D ("Charge_Vs_PathLength_CS5", "Charge_Vs_PathLength_CS5" , 250,0.2,1.4, 500,0,2000); Charge_Vs_PathLength_CS5 = tmp->getTH2F();
394 */
395  tmp = dqmStore_->book2D ("Charge_Vs_PathLength" , "Charge_Vs_PathLength" , 100,0.2,1.4, 500,0,2000); Charge_Vs_PathLength = tmp->getTH2F();
396  tmp = dqmStore_->book2D ("Charge_Vs_PathLength320" , "Charge_Vs_PathLength" , 100,0.2,1.4, 500,0,2000); Charge_Vs_PathLength320 = tmp->getTH2F();
397  tmp = dqmStore_->book2D ("Charge_Vs_PathLength500" , "Charge_Vs_PathLength" , 100,0.2,1.4, 500,0,2000); Charge_Vs_PathLength500 = tmp->getTH2F();
398 
399  tmp = dqmStore_->book2D ("Charge_Vs_TransversAngle" , "Charge_Vs_TransversAngle" , 220,-20,200, 500,0,2000); Charge_Vs_TransversAngle = tmp->getTH2F();
400  tmp = dqmStore_->book2D ("Charge_Vs_Alpha" , "Charge_Vs_Alpha" , 220,-20,200, 500,0,2000); Charge_Vs_Alpha = tmp->getTH2F();
401  tmp = dqmStore_->book2D ("Charge_Vs_Beta" , "Charge_Vs_Beta" , 220,-20,200, 500,0,2000); Charge_Vs_Beta = tmp->getTH2F();
402 
403  tmp = dqmStore_->book2D ("NStrips_Vs_TransversAngle", "NStrips_Vs_TransversAngle", 220,-20,200, 10,0,10); NStrips_Vs_TransversAngle = tmp->getTH2F();
404  tmp = dqmStore_->book2D ("NStrips_Vs_Alpha" , "NStrips_Vs_Alpha" , 220,-20,200, 10,0,10); NStrips_Vs_Alpha = tmp->getTH2F();
405  tmp = dqmStore_->book2D ("NStrips_Vs_Beta" , "NStrips_Vs_Beta" , 220,-20,200, 10,0,10); NStrips_Vs_Beta = tmp->getTH2F();
406  tmp = dqmStore_->book1D ("NHighStripInCluster" , "NHighStripInCluster" , 15,0,14); NHighStripInCluster = tmp->getTH1F();
407  tmp = dqmStore_->book1D ("NSatStripInCluster" , "NSatStripInCluster" , 50,0,50); NSatStripInCluster = tmp->getTH1F();
408 
409  tmp = dqmStore_->book1D ("TrackChi2OverNDF","TrackChi2OverNDF", 500, 0,10); HTrackChi2OverNDF = tmp->getTH1F();
410  tmp = dqmStore_->book1D ("TrackHits","TrackHits", 40, 0,40); HTrackHits = tmp->getTH1F();
411 
412  tmp = dqmStore_->book1D ("FirstStrip","FirstStrip", 800, 0,800); HFirstStrip = tmp->getTH1F();
413 
414  if( strcmp(AlgoMode.c_str(),"MultiJob")!=0 ){
415 
416  tmp = dqmStore_->book2D ("MPV_Vs_EtaTIB" , "MPV_Vs_EtaTIB" , 50, -3.0, 3.0, 300, 0, 600); MPV_Vs_EtaTIB = tmp->getTH2F();
417  tmp = dqmStore_->book2D ("MPV_Vs_EtaTID" , "MPV_Vs_EtaTID" , 50, -3.0, 3.0, 300, 0, 600); MPV_Vs_EtaTID = tmp->getTH2F();
418  tmp = dqmStore_->book2D ("MPV_Vs_EtaTOB" , "MPV_Vs_EtaTOB" , 50, -3.0, 3.0, 300, 0, 600); MPV_Vs_EtaTOB = tmp->getTH2F();
419  tmp = dqmStore_->book2D ("MPV_Vs_EtaTEC" , "MPV_Vs_EtaTEC" , 50, -3.0, 3.0, 300, 0, 600); MPV_Vs_EtaTEC = tmp->getTH2F();
420  tmp = dqmStore_->book2D ("MPV_Vs_EtaTEC1" , "MPV_Vs_EtaTEC1", 50, -3.0, 3.0, 300, 0, 600); MPV_Vs_EtaTEC1 = tmp->getTH2F();
421  tmp = dqmStore_->book2D ("MPV_Vs_EtaTEC2" , "MPV_Vs_EtaTEC2", 50, -3.0, 3.0, 300, 0, 600); MPV_Vs_EtaTEC2 = tmp->getTH2F();
422 
423  tmp = dqmStore_->book2D ("MPV_Vs_PhiTIB" , "MPV_Vs_PhiTIB" , 50, -3.2, 3.2, 300, 0, 600); MPV_Vs_PhiTIB = tmp->getTH2F();
424  tmp = dqmStore_->book2D ("MPV_Vs_PhiTID" , "MPV_Vs_PhiTID" , 50, -3.2, 3.2, 300, 0, 600); MPV_Vs_PhiTID = tmp->getTH2F();
425  tmp = dqmStore_->book2D ("MPV_Vs_PhiTOB" , "MPV_Vs_PhiTOB" , 50, -3.2, 3.2, 300, 0, 600); MPV_Vs_PhiTOB = tmp->getTH2F();
426  tmp = dqmStore_->book2D ("MPV_Vs_PhiTEC" , "MPV_Vs_PhiTEC" , 50, -3.2, 3.2, 300, 0, 600); MPV_Vs_PhiTEC = tmp->getTH2F();
427  tmp = dqmStore_->book2D ("MPV_Vs_PhiTEC1" , "MPV_Vs_PhiTEC1", 50, -3.2, 3.2, 300, 0, 600); MPV_Vs_PhiTEC1 = tmp->getTH2F();
428  tmp = dqmStore_->book2D ("MPV_Vs_PhiTEC2" , "MPV_Vs_PhiTEC2", 50, -3.2, 3.2, 300, 0, 600); MPV_Vs_PhiTEC2 = tmp->getTH2F();
429 
430 
431  tmp = dqmStore_->book1D ("MPV_Vs_PathTIB" , "MPV_Vs_PathTIB" ,100,0.2,1.4); MPV_Vs_PathTIB = tmp->getTH1F();
432  tmp = dqmStore_->book1D ("MPV_Vs_PathTID" , "MPV_Vs_PathTID" ,100,0.2,1.4); MPV_Vs_PathTID = tmp->getTH1F();
433  tmp = dqmStore_->book1D ("MPV_Vs_PathTOB" , "MPV_Vs_PathTOB" ,100,0.2,1.4); MPV_Vs_PathTOB = tmp->getTH1F();
434  tmp = dqmStore_->book1D ("MPV_Vs_PathTEC" , "MPV_Vs_PathTEC" ,100,0.2,1.4); MPV_Vs_PathTEC = tmp->getTH1F();
435  tmp = dqmStore_->book1D ("MPV_Vs_PathTEC1" , "MPV_Vs_PathTEC1" ,100,0.2,1.4); MPV_Vs_PathTEC1 = tmp->getTH1F();
436  tmp = dqmStore_->book1D ("MPV_Vs_PathTEC2" , "MPV_Vs_PathTEC2" ,100,0.2,1.4); MPV_Vs_PathTEC2 = tmp->getTH1F();
437 
438  tmp = dqmStore_->book2D ("MPV_Vs_Phi", "MPV_Vs_Phi", 50, -3.2, 3.2 , 300, 0, 600); MPV_Vs_Phi = tmp->getTH2F();
439  tmp = dqmStore_->book2D ("MPV_Vs_Eta", "MPV_Vs_Eta", 50, -3.0, 3.0 , 300, 0, 600); MPV_Vs_Eta = tmp->getTH2F();
440  tmp = dqmStore_->book2D ("MPV_Vs_R" , "MPV_Vs_R" , 150, 0.0, 150.0, 300, 0, 600); MPV_Vs_R = tmp->getTH2F();
441 /*
442  tmp = dqmStore_->book1D ("MPV_Vs_PathLength_CS1" , "MPV_Vs_PathLength_CS1" , 250, 0.2, 1.4); MPV_Vs_PathLength_CS1 = tmp->getTH1F();
443  tmp = dqmStore_->book1D ("MPV_Vs_PathLength_CS2" , "MPV_Vs_PathLength_CS2" , 250, 0.2, 1.4); MPV_Vs_PathLength_CS2 = tmp->getTH1F();
444  tmp = dqmStore_->book1D ("MPV_Vs_PathLength_CS3" , "MPV_Vs_PathLength_CS3" , 250, 0.2, 1.4); MPV_Vs_PathLength_CS3 = tmp->getTH1F();
445  tmp = dqmStore_->book1D ("MPV_Vs_PathLength_CS4" , "MPV_Vs_PathLength_CS4" , 250, 0.2, 1.4); MPV_Vs_PathLength_CS4 = tmp->getTH1F();
446  tmp = dqmStore_->book1D ("MPV_Vs_PathLength_CS5" , "MPV_Vs_PathLength_CS5" , 250, 0.2, 1.4); MPV_Vs_PathLength_CS5 = tmp->getTH1F();
447 
448  tmp = dqmStore_->book1D ("FWHM_Vs_PathLength_CS1" , "FWHM_Vs_PathLength_CS1", 250, 0.2, 1.4); FWHM_Vs_PathLength_CS1 = tmp->getTH1F();
449  tmp = dqmStore_->book1D ("FWHM_Vs_PathLength_CS2" , "FWHM_Vs_PathLength_CS2", 250, 0.2, 1.4); FWHM_Vs_PathLength_CS2 = tmp->getTH1F();
450  tmp = dqmStore_->book1D ("FWHM_Vs_PathLength_CS3" , "FWHM_Vs_PathLength_CS3", 250, 0.2, 1.4); FWHM_Vs_PathLength_CS3 = tmp->getTH1F();
451  tmp = dqmStore_->book1D ("FWHM_Vs_PathLength_CS4" , "FWHM_Vs_PathLength_CS4", 250, 0.2, 1.4); FWHM_Vs_PathLength_CS4 = tmp->getTH1F();
452  tmp = dqmStore_->book1D ("FWHM_Vs_PathLength_CS5" , "FWHM_Vs_PathLength_CS5", 250, 0.2, 1.4); FWHM_Vs_PathLength_CS5 = tmp->getTH1F();
453 */
454  tmp = dqmStore_->book1D ("MPV_Vs_PathLength" , "MPV_Vs_PathLength" , 100, 0.2, 1.4); MPV_Vs_PathLength = tmp->getTH1F();
455  tmp = dqmStore_->book1D ("MPV_Vs_PathLength320" , "MPV_Vs_PathLength" , 100, 0.2, 1.4); MPV_Vs_PathLength320 = tmp->getTH1F();
456  tmp = dqmStore_->book1D ("MPV_Vs_PathLength500" , "MPV_Vs_PathLength" , 100, 0.2, 1.4); MPV_Vs_PathLength500 = tmp->getTH1F();
457 
458  tmp = dqmStore_->book1D ("FWHM_Vs_PathLength" , "FWHM_Vs_PathLength" , 100, 0.2, 1.4); FWHM_Vs_PathLength = tmp->getTH1F();
459  tmp = dqmStore_->book1D ("FWHM_Vs_PathLength320" , "FWHM_Vs_PathLength" , 100, 0.2, 1.4); FWHM_Vs_PathLength320 = tmp->getTH1F();
460  tmp = dqmStore_->book1D ("FWHM_Vs_PathLength500" , "FWHM_Vs_PathLength" , 100, 0.2, 1.4); FWHM_Vs_PathLength500 = tmp->getTH1F();
461 
462  tmp = dqmStore_->book1D ("MPV_Vs_TransversAngle" , "MPV_Vs_TransversAngle" , 220, -20, 200); MPV_Vs_TransversAngle = tmp->getTH1F();
463  tmp = dqmStore_->book1D ("MPV_Vs_Alpha" , "MPV_Vs_Alpha" , 220, -20, 200); MPV_Vs_Alpha = tmp->getTH1F();
464  tmp = dqmStore_->book1D ("MPV_Vs_Beta" , "MPV_Vs_Beta" , 220, -20, 200); MPV_Vs_Beta = tmp->getTH1F();
465 
466  tmp = dqmStore_->book2D ("Error_Vs_MPV" , "Error_Vs_MPV" ,600,0,600 ,100 ,0 ,50); Error_Vs_MPV = tmp->getTH2F();
467  tmp = dqmStore_->book2D ("Error_Vs_Entries","Error_Vs_Entries",500,0,10000 ,100 ,0 ,50); Error_Vs_Entries = tmp->getTH2F();
468  tmp = dqmStore_->book2D ("Error_Vs_Eta" , "Error_Vs_Eta" ,50 ,-3.0,3.0 ,100 ,0 ,50 ); Error_Vs_Eta = tmp->getTH2F();
469  tmp = dqmStore_->book2D ("Error_Vs_Phi" , "Error_Vs_Phi" ,50 ,-3.2,3.2 ,100 ,0 ,50); Error_Vs_Phi = tmp->getTH2F();
470 
471 
472  tmp = dqmStore_->book2D ("NoMPV_Vs_EtaPhi" , "NoMPV_Vs_EtaPhi" ,50,-3.0,3.0 ,50 ,-3.2,3.2); NoMPV_Vs_EtaPhi = tmp->getTH2F();
473 
474 
475 
476  tmp = dqmStore_->book1D ("NumberOfEntriesByAPV" , "NumberOfEntriesByAPV" , 1000, 0,10000); NumberOfEntriesByAPV = tmp->getTH1F();
477  tmp = dqmStore_->book1D ("Chi2OverNDF","Chi2OverNDF", 500, 0,25); HChi2OverNDF = tmp->getTH1F();
478 
479  tmp = dqmStore_->book1D ("MPVs", "MPVs", 600,0,600); MPVs = tmp->getTH1F();
480  tmp = dqmStore_->book1D ("MPVs320", "MPVs320", 600,0,600); MPVs320 = tmp->getTH1F();
481  tmp = dqmStore_->book1D ("MPVs500", "MPVs500", 600,0,600); MPVs500 = tmp->getTH1F();
482 
483 // MPV_vs_10RplusEta tmp = dqmStore_->book2D ("MPV_vs_10RplusEta","MPV_vs_10RplusEta", 48000,0,2400, 800,100,500);
484  }
485 
486  gROOT->cd();
487 
489  iSetup.get<TrackerDigiGeometryRecord>().get( tkGeom );
490  auto const & Det = tkGeom->dets();
491 
492 
493  edm::ESHandle<SiStripGain> gainHandle;
494 // if(strcmp(AlgoMode.c_str(),"MultiJob")!=0 && !FirstSetOfConstants){
495  iSetup.get<SiStripGainRcd>().get(gainHandle);
496  if(!gainHandle.isValid()){printf("\n#####################\n\nERROR --> gainHandle is not valid\n\n#####################\n\n");exit(0);}
497 // }
498 
499  unsigned int Id=0;
500  for(unsigned int i=0;i<Det.size();i++){
501  DetId Detid = Det[i]->geographicalId();
502  int SubDet = Detid.subdetId();
503 
504  if( SubDet == StripSubdetector::TIB || SubDet == StripSubdetector::TID ||
505  SubDet == StripSubdetector::TOB || SubDet == StripSubdetector::TEC ){
506 
507  auto DetUnit = dynamic_cast<StripGeomDetUnit const*> (Det[i]);
508  if(!DetUnit)continue;
509 
510  const StripTopology& Topo = DetUnit->specificTopology();
511  unsigned int NAPV = Topo.nstrips()/128;
512 
513  double Phi = DetUnit->position().basicVector().phi();
514  double Eta = DetUnit->position().basicVector().eta();
515  double R = DetUnit->position().basicVector().transverse();
516  double Thick = DetUnit->surface().bounds().thickness();
517 
518  for(unsigned int j=0;j<NAPV;j++){
519  stAPVGain* APV = new stAPVGain;
520  APV->Index = Id;
521  APV->DetId = Detid.rawId();
522  APV->APVId = j;
523  APV->SubDet = SubDet;
524  APV->MPV = -1;
525  APV->Gain = -1;
526  APV->PreviousGain = 1;
527  APV->Eta = Eta;
528  APV->Phi = Phi;
529  APV->R = R;
530  APV->Thickness = Thick;
531  APV->Side = 0;
532 
533  if(SubDet==StripSubdetector::TID){
534 
535  APV->Side = tTopo->tecSide(Detid);
536  }else if(SubDet==StripSubdetector::TEC){
537 
538  APV->Side = tTopo->tecSide(Detid);
539  }
540 
541  APVsCollOrdered.push_back(APV);
542  APVsColl[(APV->DetId<<3) | APV->APVId] = APV;
543  Id++;
544 
545  APV_DetId ->Fill(Id,APV->DetId);
546  APV_Id ->Fill(Id,APV->APVId);
547  APV_Eta ->Fill(Id,APV->Eta);
548  APV_R ->Fill(Id,APV->R);
549  APV_SubDet ->Fill(Id,APV->SubDet);
550  APV_Thickness->Fill(Id,APV->Thickness);
551  }
552  }
553  }
554 
555  NEvent = 0;
556  SRun = 0;
557  SEvent = 0;
558  STimestamp = 0;
559  ERun = 0;
560  EEvent = 0;
561  ETimestamp = 0;
562 }
virtual int nstrips() const =0
int i
Definition: DBlmapReader.cc:9
std::vector< stAPVGain * > APVsCollOrdered
const edm::EventSetup * iSetup_
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
int j
Definition: DBlmapReader.cc:9
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
__gnu_cxx::hash_map< unsigned int, stAPVGain *, __gnu_cxx::hash< unsigned int >, isEqual > APVsColl
Definition: DetId.h:18
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:86
TH1F * getTH1F(void) const
string const
Definition: compareJSON.py:14
TH2F * getTH2F(void) const
bool isValid() const
Definition: ESHandle.h:47
unsigned int tecSide(const DetId &id) const
void SiStripGainFromData::algoBeginRun ( const edm::Run ,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Reimplemented from ConditionDBWriter< SiStripApvGain >.

Definition at line 974 of file SiStripGainFromData.cc.

References AlgoMode, sistrip::APV, APV_PrevGain, stAPVGain::APVId, APVsCollOrdered, stAPVGain::DetId, cmsRelvalreport::exit, FirstSetOfConstants, edm::EventSetup::get(), stAPVGain::Index, edm::ESHandleBase::isValid(), stAPVGain::PreviousGain, and Validation.

974  {
975 
976  edm::ESHandle<SiStripGain> gainHandle;
977  if((strcmp(AlgoMode.c_str(),"MultiJob")!=0 && !FirstSetOfConstants) || Validation){
978  iSetup.get<SiStripGainRcd>().get(gainHandle);
979  if(!gainHandle.isValid()){printf("\n#####################\n\nERROR --> gainHandle is not valid\n\n#####################\n\n");exit(0);}
980 
981 
982  for(std::vector<stAPVGain*>::iterator it = APVsCollOrdered.begin();it!=APVsCollOrdered.end();it++){
983  stAPVGain* APV = *it;
984 
985  if(gainHandle.isValid()){
986  SiStripApvGain::Range detGainRange = gainHandle->getRange(APV->DetId);
987  APV->PreviousGain = *(detGainRange.first + APV->APVId);
988 // APV_PrevGain->Fill(APV->Index,APV->PreviousGain);
989  APV_PrevGain->SetBinContent(APV_PrevGain->GetXaxis()->FindBin(APV->Index),APV->PreviousGain);
990  if(APV->PreviousGain<0)APV->PreviousGain = 1;
991  }else{
992  printf("GAIN HANDLE IS NOT VALID\n");
993  }
994  }
995  }
996 
997 
998 }
std::vector< stAPVGain * > APVsCollOrdered
std::pair< ContainerIterator, ContainerIterator > Range
const T & get() const
Definition: EventSetup.h:55
bool isValid() const
Definition: ESHandle.h:47
void SiStripGainFromData::algoEndJob ( )
overrideprivatevirtual

Reimplemented from ConditionDBWriter< SiStripApvGain >.

Definition at line 565 of file SiStripGainFromData.cc.

References AlgoMode, sistrip::APV, APV_Charge, APV_CumulGain, APV_Gain, APV_Momentum, APV_MPV, APV_PathLength, APV_PathLengthM, stAPVGain::APVId, APVsColl, APVsCollOrdered, b, pat::BAD, newFWLiteAna::bin, CalibrationLevel, Charge_TEC, Charge_TEC1, Charge_TEC2, Charge_TECM, Charge_TECP, Charge_TIB, Charge_TID, Charge_TIDM, Charge_TIDP, Charge_TOB, Charge_Vs_Alpha, Charge_Vs_Beta, Charge_Vs_PathLength, Charge_Vs_PathLength320, Charge_Vs_PathLength500, Charge_Vs_PathTEC, Charge_Vs_PathTEC1, Charge_Vs_PathTEC2, Charge_Vs_PathTIB, Charge_Vs_PathTID, Charge_Vs_PathTOB, Charge_Vs_TransversAngle, CheckIfFileExist, stAPVGain::DetId, dqmStore_, EEvent, Error_Vs_Entries, Error_Vs_Eta, Error_Vs_MPV, Error_Vs_Phi, ERun, stAPVGain::Eta, f, mergeVDriftHistosByStation::file, FirstSetOfConstants, FWHM_Vs_PathLength, FWHM_Vs_PathLength320, FWHM_Vs_PathLength500, stAPVGain::Gain, getPeakOfLandau(), pat::GOOD, HChi2OverNDF, HFirstStrip, HTrackChi2OverNDF, HTrackHits, Exhume::I, stAPVGain::Index, j, JobInfo, MaxMPVError, stAPVGain::MPV, MPV_Vs_Alpha, MPV_Vs_Beta, MPV_Vs_Eta, MPV_Vs_EtaTEC, MPV_Vs_EtaTEC1, MPV_Vs_EtaTEC2, MPV_Vs_EtaTIB, MPV_Vs_EtaTID, MPV_Vs_EtaTOB, MPV_Vs_PathLength, MPV_Vs_PathLength320, MPV_Vs_PathLength500, MPV_Vs_PathTEC, MPV_Vs_PathTEC1, MPV_Vs_PathTEC2, MPV_Vs_PathTIB, MPV_Vs_PathTID, MPV_Vs_PathTOB, MPV_Vs_Phi, MPV_Vs_PhiTEC, MPV_Vs_PhiTEC1, MPV_Vs_PhiTEC2, MPV_Vs_PhiTIB, MPV_Vs_PhiTID, MPV_Vs_PhiTOB, MPV_Vs_R, MPV_Vs_TransversAngle, MPVs, MPVs320, MPVs500, NEvent, NHighStripInCluster, NoMPV_Vs_EtaPhi, NSatStripInCluster, NStrips_Vs_Alpha, NStrips_Vs_TransversAngle, NULL, NumberOfEntriesByAPV, OutputGains, OutputHistos, stAPVGain::Phi, stAPVGain::PreviousGain, stAPVGain::R, SEvent, stAPVGain::Side, SRun, stAPVGain::SubDet, StripSubdetector::TEC, stAPVGain::Thickness, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, Tracks_P_Vs_Eta, Tracks_Pt_Vs_Eta, and VInputFiles.

565  {
566 
567 
568  unsigned int I=0;
569 
570  if( strcmp(AlgoMode.c_str(),"WriteOnDB")==0 || strcmp(AlgoMode.c_str(),"Merge")==0){
571  TH1::AddDirectory(kTRUE);
572 
573  TFile* file = NULL;
574  for(unsigned int f=0;f<VInputFiles.size();f++){
575  printf("Loading New Input File : %s\n", VInputFiles[f].c_str());
576  if(CheckIfFileExist){
577  FILE* doesFileExist = fopen( VInputFiles[f].c_str(), "r" );
578  if(!doesFileExist){
579  printf("File %s doesn't exist\n",VInputFiles[f].c_str());
580  continue;
581  }else{
582  fclose(doesFileExist);
583  }
584  }
585  file = new TFile( VInputFiles[f].c_str() ); if(!file || file->IsZombie() ){printf("### Bug With File %s\n### File will be skipped \n",VInputFiles[f].c_str()); continue;}
586  APV_Charge ->Add( (TH1*) file->FindObjectAny("APV_Charge") , 1);
587  APV_Momentum ->Add( (TH1*) file->FindObjectAny("APV_Momentum") , 1);
588  APV_PathLength ->Add( (TH1*) file->FindObjectAny("APV_PathLength") , 1);
589 
590  Tracks_P_Vs_Eta ->Add( (TH1*) file->FindObjectAny("Tracks_P_Vs_Eta") , 1);
591  Tracks_Pt_Vs_Eta ->Add( (TH1*) file->FindObjectAny("Tracks_Pt_Vs_Eta") , 1);
592 
593  Charge_Vs_PathTIB ->Add( (TH1*) file->FindObjectAny("Charge_Vs_PathTIB") , 1);
594  Charge_Vs_PathTID ->Add( (TH1*) file->FindObjectAny("Charge_Vs_PathTID") , 1);
595  Charge_Vs_PathTOB ->Add( (TH1*) file->FindObjectAny("Charge_Vs_PathTOB") , 1);
596  Charge_Vs_PathTEC ->Add( (TH1*) file->FindObjectAny("Charge_Vs_PathTEC") , 1);
597  Charge_Vs_PathTEC1 ->Add( (TH1*) file->FindObjectAny("Charge_Vs_PathTEC1") , 1);
598  Charge_Vs_PathTEC2 ->Add( (TH1*) file->FindObjectAny("Charge_Vs_PathTEC2") , 1);
599 
600  HTrackChi2OverNDF ->Add( (TH1*) file->FindObjectAny("TrackChi2OverNDF") , 1);
601  HTrackHits ->Add( (TH1*) file->FindObjectAny("TrackHits") , 1);
602 
603  NHighStripInCluster ->Add( (TH1*) file->FindObjectAny("NHighStripInCluster") , 1);
604  NSatStripInCluster ->Add( (TH1*) file->FindObjectAny("NSatStripInCluster") , 1);
605  Charge_Vs_PathLength ->Add( (TH1*) file->FindObjectAny("Charge_Vs_PathLength") , 1);
606  Charge_Vs_PathLength320 ->Add( (TH1*) file->FindObjectAny("Charge_Vs_PathLength320") , 1);
607  Charge_Vs_PathLength500 ->Add( (TH1*) file->FindObjectAny("Charge_Vs_PathLength500") , 1);
608  Charge_Vs_TransversAngle ->Add( (TH1*) file->FindObjectAny("Charge_Vs_TransversAngle") , 1);
609  NStrips_Vs_TransversAngle->Add( (TH1*) file->FindObjectAny("NStrips_Vs_TransversAngle"), 1);
610  Charge_Vs_Alpha ->Add( (TH1*) file->FindObjectAny("Charge_Vs_Alpha") , 1);
611  NStrips_Vs_Alpha ->Add( (TH1*) file->FindObjectAny("NStrips_Vs_Alpha") , 1);
612  HFirstStrip ->Add( (TH1*) file->FindObjectAny("FirstStrip") , 1);
613 
614  TH1F* JobInfo_tmp = (TH1F*) file->FindObjectAny("JobInfo");
615  NEvent += (unsigned int) JobInfo_tmp->GetBinContent(JobInfo_tmp->GetXaxis()->FindBin(1));
616  unsigned int tmp_SRun = (unsigned int) JobInfo_tmp->GetBinContent(JobInfo_tmp->GetXaxis()->FindBin(3));
617  unsigned int tmp_SEvent = (unsigned int) JobInfo_tmp->GetBinContent(JobInfo_tmp->GetXaxis()->FindBin(4));
618  unsigned int tmp_ERun = (unsigned int) JobInfo_tmp->GetBinContent(JobInfo_tmp->GetXaxis()->FindBin(6));
619  unsigned int tmp_EEvent = (unsigned int) JobInfo_tmp->GetBinContent(JobInfo_tmp->GetXaxis()->FindBin(7));
620 
621  if(SRun==0)SRun = tmp_SRun;
622 
623  if(tmp_SRun< SRun){SRun=tmp_SRun; SEvent=tmp_SEvent;}
624  else if(tmp_SRun==SRun && tmp_SEvent<SEvent){SEvent=tmp_SEvent;}
625 
626  if(tmp_ERun> ERun){ERun=tmp_ERun; EEvent=tmp_EEvent;}
627  else if(tmp_ERun==ERun && tmp_EEvent>EEvent){EEvent=tmp_EEvent;}
628 
629  printf("Deleting Current Input File\n");
630  file->Close();
631  delete file;
632  }
633  }
634 
635  JobInfo->Fill(1,NEvent);
636  JobInfo->Fill(3,SRun);
637  JobInfo->Fill(4,SEvent);
638  JobInfo->Fill(6,ERun);
639  JobInfo->Fill(7,EEvent);
640 
641 
642  if( strcmp(AlgoMode.c_str(),"MultiJob")!=0 ){
643  TH1D* Proj = NULL;
644  double* FitResults = new double[5];
645  I=0;
646  for(__gnu_cxx::hash_map<unsigned int, stAPVGain*, __gnu_cxx::hash<unsigned int>, isEqual >::iterator it = APVsColl.begin();it!=APVsColl.end();it++){
647  if( I%3650==0 ) printf("Fitting Histograms \t %6.2f%%\n",(100.0*I)/APVsColl.size());I++;
648  stAPVGain* APV = it->second;
649 
650  int bin = APV_Charge->GetXaxis()->FindBin(APV->Index);
651  Proj = APV_Charge->ProjectionY(" ",bin,bin,"e");
652  Proj = (TH1D*)Proj->Clone();
653  if(Proj==NULL)continue;
654 
655  // ADD PROJECTTIONS COMMING FROM THE SECOND APV IN THE PAIR
656  if(CalibrationLevel==1){
657  int SecondAPVId = APV->APVId;
658  if(SecondAPVId%2==0){
659  SecondAPVId = SecondAPVId+1;
660  }else{
661  SecondAPVId = SecondAPVId-1;
662  }
663  stAPVGain* APV2 = APVsColl[(APV->DetId<<3) | SecondAPVId];
664 
665  int bin2 = APV_Charge->GetXaxis()->FindBin(APV2->Index);
666  TH1D* Proj2 = APV_Charge->ProjectionY(" ",bin2,bin2,"e");
667  if(Proj2!=NULL){
668  Proj->Add(Proj2,1);
669  }
670  }else if(CalibrationLevel>1){
671 // printf("%8i %i--> %4.0f + %4.0f\n",APV->DetId, APV->APVId, 0.0, Proj->GetEntries());
672  for(__gnu_cxx::hash_map<unsigned int, stAPVGain*, __gnu_cxx::hash<unsigned int>, isEqual >::iterator it2 = APVsColl.begin();it2!=APVsColl.end();it2++){
673  stAPVGain* APV2 = it2->second;
674 
675  if(APV2->DetId != APV->DetId)continue;
676  if(APV2->APVId == APV->APVId)continue;
677 
678  int bin2 = APV_Charge->GetXaxis()->FindBin(APV2->Index);
679  TH1D* Proj2 = APV_Charge->ProjectionY(" ",bin2,bin2,"e");
680  if(Proj2!=NULL){
681 // printf("%8i %i--> %4.0f + %4.0f\n",APV2->DetId, APV2->APVId, Proj->GetEntries(), Proj2->GetEntries());
682  Proj->Add(Proj2,1);
683  }
684  }
685 // printf("%8i %i--> %4.0f Full\n",APV->DetId, APV->APVId, Proj->GetEntries());
686  }
687 
688 
689  //std::cout << "Proj->GetEntries(): " << Proj->GetEntries() << ", Proj->GetMean(): " << Proj->GetMean() << std::endl;
690 
691  getPeakOfLandau(Proj,FitResults);
692  APV->MPV = FitResults[0];
693 // printf("MPV = %f - %f\n",FitResults[0], FitResults[1]);
694  if(FitResults[0]!=-0.5 && FitResults[1]<MaxMPVError){
695  APV_MPV->Fill(APV->Index,APV->MPV);
696  MPVs ->Fill(APV->MPV);
697  if(APV->Thickness<0.04) MPVs320->Fill(APV->MPV);
698  if(APV->Thickness>0.04) MPVs500->Fill(APV->MPV);
699 
700  MPV_Vs_R->Fill(APV->R,APV->MPV);
701  MPV_Vs_Eta->Fill(APV->Eta,APV->MPV);
702  if(APV->SubDet==StripSubdetector::TIB) MPV_Vs_EtaTIB ->Fill(APV->Eta,APV->MPV);
703  if(APV->SubDet==StripSubdetector::TID) MPV_Vs_EtaTID ->Fill(APV->Eta,APV->MPV);
704  if(APV->SubDet==StripSubdetector::TOB) MPV_Vs_EtaTOB ->Fill(APV->Eta,APV->MPV);
705  if(APV->SubDet==StripSubdetector::TEC){ MPV_Vs_EtaTEC ->Fill(APV->Eta,APV->MPV);
706  if(APV->Thickness<0.04) MPV_Vs_EtaTEC1->Fill(APV->Eta,APV->MPV);
707  if(APV->Thickness>0.04) MPV_Vs_EtaTEC2->Fill(APV->Eta,APV->MPV);
708  }
709  MPV_Vs_Phi->Fill(APV->Phi,APV->MPV);
710  if(APV->SubDet==StripSubdetector::TIB) MPV_Vs_PhiTIB ->Fill(APV->Phi,APV->MPV);
711  if(APV->SubDet==StripSubdetector::TID) MPV_Vs_PhiTID ->Fill(APV->Phi,APV->MPV);
712  if(APV->SubDet==StripSubdetector::TOB) MPV_Vs_PhiTOB ->Fill(APV->Phi,APV->MPV);
713  if(APV->SubDet==StripSubdetector::TEC){ MPV_Vs_PhiTEC ->Fill(APV->Phi,APV->MPV);
714  if(APV->Thickness<0.04) MPV_Vs_PhiTEC1->Fill(APV->Phi,APV->MPV);
715  if(APV->Thickness>0.04) MPV_Vs_PhiTEC2->Fill(APV->Phi,APV->MPV);
716  }
717 
718  if(APV->SubDet==StripSubdetector::TIB) Charge_TIB ->Add(Proj,1);
719  if(APV->SubDet==StripSubdetector::TID){ Charge_TID ->Add(Proj,1);
720  if(APV->Side==1) Charge_TIDM->Add(Proj,1);
721  if(APV->Side==2) Charge_TIDP->Add(Proj,1);
722  }
723  if(APV->SubDet==StripSubdetector::TOB) Charge_TOB ->Add(Proj,1);
724  if(APV->SubDet==StripSubdetector::TEC){ Charge_TEC ->Add(Proj,1);
725  if(APV->Thickness<0.04) Charge_TEC1->Add(Proj,1);
726  if(APV->Thickness>0.04) Charge_TEC2->Add(Proj,1);
727  if(APV->Side==1) Charge_TECM->Add(Proj,1);
728  if(APV->Side==2) Charge_TECP->Add(Proj,1);
729  }
730  }
731 
732  if(APV->SubDet==StripSubdetector::TIB) Charge_TIB ->Add(Proj,1);
733  if(APV->SubDet==StripSubdetector::TID){ Charge_TID ->Add(Proj,1);
734  if(APV->Side==1) Charge_TIDM->Add(Proj,1);
735  if(APV->Side==2) Charge_TIDP->Add(Proj,1);
736  }
737  if(APV->SubDet==StripSubdetector::TOB) Charge_TOB ->Add(Proj,1);
738  if(APV->SubDet==StripSubdetector::TEC){ Charge_TEC ->Add(Proj,1);
739  if(APV->Thickness<0.04) Charge_TEC1->Add(Proj,1);
740  if(APV->Thickness>0.04) Charge_TEC2->Add(Proj,1);
741  if(APV->Side==1) Charge_TECM->Add(Proj,1);
742  if(APV->Side==2) Charge_TECP->Add(Proj,1);
743  }
744 
745  if(FitResults[0]!=-0.5){
746  HChi2OverNDF->Fill(FitResults[4]);
747  Error_Vs_MPV->Fill(FitResults[0],FitResults[1]);
748  Error_Vs_Entries->Fill(Proj->GetEntries(),FitResults[1]);
749  Error_Vs_Eta->Fill(APV->Eta,FitResults[1]);
750  Error_Vs_Phi->Fill(APV->Phi,FitResults[1]);
751  }
752  NumberOfEntriesByAPV->Fill(Proj->GetEntries());
753  delete Proj;
754 
755 
756  Proj = APV_PathLength->ProjectionY(" ",bin,bin,"e");
757  if(Proj==NULL)continue;
758 
759  APV_PathLengthM->SetBinContent(APV->Index, Proj->GetMean(1) );
760  APV_PathLengthM->SetBinError (APV->Index, Proj->GetMeanError(1) );
761 // delete Proj;
762  }
763 
764  unsigned int GOOD = 0;
765  unsigned int BAD = 0;
766  double MPVmean = MPVs->GetMean();
767  MPVmean = 300;
768  for(__gnu_cxx::hash_map<unsigned int, stAPVGain*, __gnu_cxx::hash<unsigned int>, isEqual >::iterator it = APVsColl.begin();it!=APVsColl.end();it++){
769 
770  stAPVGain* APV = it->second;
771  if(APV->MPV>0){
772  APV->Gain = APV->MPV / MPVmean; // APV->MPV;
773  GOOD++;
774  }else{
775  NoMPV_Vs_EtaPhi->Fill(APV->Eta, APV->Phi);
776  APV->Gain = 1;
777  BAD++;
778  }
779  if(APV->Gain<=0) APV->Gain = 1;
780  APV_Gain->Fill(APV->Index,APV->Gain);
781 
782  if(!FirstSetOfConstants) APV->Gain *= APV->PreviousGain;
783  APV_CumulGain->Fill(APV->Index,APV->Gain);
784  }
785 
786  for(int j=0;j<Charge_Vs_PathLength->GetXaxis()->GetNbins();j++){
787  Proj = Charge_Vs_PathLength->ProjectionY(" ",j,j,"e");
788  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
789  MPV_Vs_PathLength->SetBinContent (j, FitResults[0]/Charge_Vs_PathLength->GetXaxis()->GetBinCenter(j));
790  MPV_Vs_PathLength->SetBinError (j, FitResults[1]/Charge_Vs_PathLength->GetXaxis()->GetBinCenter(j));
791  FWHM_Vs_PathLength->SetBinContent(j, FitResults[2]/(FitResults[0]/Charge_Vs_PathLength->GetXaxis()->GetBinCenter(j)) );
792  FWHM_Vs_PathLength->SetBinError (j, FitResults[3]/(FitResults[0]/Charge_Vs_PathLength->GetXaxis()->GetBinCenter(j)) );
793  delete Proj;
794  }
795 
796  for(int j=0;j<Charge_Vs_PathLength320->GetXaxis()->GetNbins();j++){
797  Proj = Charge_Vs_PathLength320->ProjectionY(" ",j,j,"e");
798  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
799  MPV_Vs_PathLength320->SetBinContent (j, FitResults[0]/Charge_Vs_PathLength320->GetXaxis()->GetBinCenter(j));
800  MPV_Vs_PathLength320->SetBinError (j, FitResults[1]/Charge_Vs_PathLength320->GetXaxis()->GetBinCenter(j));
801  FWHM_Vs_PathLength320->SetBinContent(j, FitResults[2]/(FitResults[0]/Charge_Vs_PathLength320->GetXaxis()->GetBinCenter(j)) );
802  FWHM_Vs_PathLength320->SetBinError (j, FitResults[3]/(FitResults[0]/Charge_Vs_PathLength320->GetXaxis()->GetBinCenter(j)) );
803  delete Proj;
804  }
805 
806  for(int j=0;j<Charge_Vs_PathLength500->GetXaxis()->GetNbins();j++){
807  Proj = Charge_Vs_PathLength500->ProjectionY(" ",j,j,"e");
808  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
809  MPV_Vs_PathLength500->SetBinContent (j, FitResults[0]/Charge_Vs_PathLength500->GetXaxis()->GetBinCenter(j));
810  MPV_Vs_PathLength500->SetBinError (j, FitResults[1]/Charge_Vs_PathLength500->GetXaxis()->GetBinCenter(j));
811  FWHM_Vs_PathLength500->SetBinContent(j, FitResults[2]/(FitResults[0]/Charge_Vs_PathLength500->GetXaxis()->GetBinCenter(j) ));
812  FWHM_Vs_PathLength500->SetBinError (j, FitResults[3]/(FitResults[0]/Charge_Vs_PathLength500->GetXaxis()->GetBinCenter(j) ));
813  delete Proj;
814  }
815 /*
816  for(int j=0;j<Charge_Vs_PathLength_CS1->GetXaxis()->GetNbins();j++){
817  Proj = Charge_Vs_PathLength_CS1->ProjectionY(" ",j,j,"e");
818  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
819  MPV_Vs_PathLength_CS1->SetBinContent (j, FitResults[0]/Charge_Vs_PathLength_CS1->GetXaxis()->GetBinCenter(j));
820  MPV_Vs_PathLength_CS1->SetBinError (j, FitResults[1]/Charge_Vs_PathLength_CS1->GetXaxis()->GetBinCenter(j));
821  FWHM_Vs_PathLength_CS1->SetBinContent(j, FitResults[2]/(FitResults[0]/Charge_Vs_PathLength_CS1->GetXaxis()->GetBinCenter(j) ));
822  FWHM_Vs_PathLength_CS1->SetBinError (j, FitResults[3]/(FitResults[0]/Charge_Vs_PathLength_CS1->GetXaxis()->GetBinCenter(j) ));
823  delete Proj;
824  }
825 
826  for(int j=0;j<Charge_Vs_PathLength_CS2->GetXaxis()->GetNbins();j++){
827  Proj = Charge_Vs_PathLength_CS2->ProjectionY(" ",j,j,"e");
828  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
829  MPV_Vs_PathLength_CS2->SetBinContent (j, FitResults[0]/Charge_Vs_PathLength_CS2->GetXaxis()->GetBinCenter(j));
830  MPV_Vs_PathLength_CS2->SetBinError (j, FitResults[1]/Charge_Vs_PathLength_CS2->GetXaxis()->GetBinCenter(j));
831  FWHM_Vs_PathLength_CS2->SetBinContent(j, FitResults[2]/(FitResults[0]/Charge_Vs_PathLength_CS2->GetXaxis()->GetBinCenter(j) ));
832  FWHM_Vs_PathLength_CS2->SetBinError (j, FitResults[3]/(FitResults[0]/Charge_Vs_PathLength_CS2->GetXaxis()->GetBinCenter(j) ));
833  delete Proj;
834  }
835 
836  for(int j=0;j<Charge_Vs_PathLength_CS3->GetXaxis()->GetNbins();j++){
837  Proj = Charge_Vs_PathLength_CS3->ProjectionY(" ",j,j,"e");
838  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
839  MPV_Vs_PathLength_CS3->SetBinContent (j, FitResults[0]/Charge_Vs_PathLength_CS3->GetXaxis()->GetBinCenter(j));
840  MPV_Vs_PathLength_CS3->SetBinError (j, FitResults[1]/Charge_Vs_PathLength_CS3->GetXaxis()->GetBinCenter(j));
841  FWHM_Vs_PathLength_CS3->SetBinContent(j, FitResults[2]/(FitResults[0]/Charge_Vs_PathLength_CS3->GetXaxis()->GetBinCenter(j) ));
842  FWHM_Vs_PathLength_CS3->SetBinError (j, FitResults[3]/(FitResults[0]/Charge_Vs_PathLength_CS3->GetXaxis()->GetBinCenter(j) ));
843  delete Proj;
844  }
845 
846  for(int j=0;j<Charge_Vs_PathLength_CS4->GetXaxis()->GetNbins();j++){
847  Proj = Charge_Vs_PathLength_CS4->ProjectionY(" ",j,j,"e");
848  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
849  MPV_Vs_PathLength_CS4->SetBinContent (j, FitResults[0]/Charge_Vs_PathLength_CS4->GetXaxis()->GetBinCenter(j));
850  MPV_Vs_PathLength_CS4->SetBinError (j, FitResults[1]/Charge_Vs_PathLength_CS4->GetXaxis()->GetBinCenter(j));
851  FWHM_Vs_PathLength_CS4->SetBinContent(j, FitResults[2]/(FitResults[0]/Charge_Vs_PathLength_CS4->GetXaxis()->GetBinCenter(j) ));
852  FWHM_Vs_PathLength_CS4->SetBinError (j, FitResults[3]/(FitResults[0]/Charge_Vs_PathLength_CS4->GetXaxis()->GetBinCenter(j) ));
853  delete Proj;
854  }
855 
856  for(int j=0;j<Charge_Vs_PathLength_CS5->GetXaxis()->GetNbins();j++){
857  Proj = Charge_Vs_PathLength_CS5->ProjectionY(" ",j,j,"e");
858  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
859  MPV_Vs_PathLength_CS5->SetBinContent (j, FitResults[0]/Charge_Vs_PathLength_CS5->GetXaxis()->GetBinCenter(j));
860  MPV_Vs_PathLength_CS5->SetBinError (j, FitResults[1]/Charge_Vs_PathLength_CS5->GetXaxis()->GetBinCenter(j));
861  FWHM_Vs_PathLength_CS5->SetBinContent(j, FitResults[2]/(FitResults[0]/Charge_Vs_PathLength_CS5->GetXaxis()->GetBinCenter(j) ));
862  FWHM_Vs_PathLength_CS5->SetBinError (j, FitResults[3]/(FitResults[0]/Charge_Vs_PathLength_CS5->GetXaxis()->GetBinCenter(j) ));
863  delete Proj;
864  }
865 */
866 
867 
868  for(int j=0;j<Charge_Vs_PathTIB->GetXaxis()->GetNbins();j++){
869  Proj = Charge_Vs_PathTIB->ProjectionY(" ",j,j,"e");
870  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
871  MPV_Vs_PathTIB->SetBinContent(j, FitResults[0]/Charge_Vs_PathTIB->GetXaxis()->GetBinCenter(j));
872  MPV_Vs_PathTIB->SetBinError (j, FitResults[1]/Charge_Vs_PathTIB->GetXaxis()->GetBinCenter(j));
873  delete Proj;
874  }
875 
876  for(int j=0;j<Charge_Vs_PathTID->GetXaxis()->GetNbins();j++){
877  Proj = Charge_Vs_PathTID->ProjectionY(" ",j,j,"e");
878  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
879  MPV_Vs_PathTID->SetBinContent(j, FitResults[0]/Charge_Vs_PathTID->GetXaxis()->GetBinCenter(j));
880  MPV_Vs_PathTID->SetBinError (j, FitResults[1]/Charge_Vs_PathTID->GetXaxis()->GetBinCenter(j));
881  delete Proj;
882  }
883 
884  for(int j=0;j<Charge_Vs_PathTOB->GetXaxis()->GetNbins();j++){
885  Proj = Charge_Vs_PathTOB->ProjectionY(" ",j,j,"e");
886  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
887  MPV_Vs_PathTOB->SetBinContent(j, FitResults[0]/Charge_Vs_PathTOB->GetXaxis()->GetBinCenter(j));
888  MPV_Vs_PathTOB->SetBinError (j, FitResults[1]/Charge_Vs_PathTOB->GetXaxis()->GetBinCenter(j));
889  delete Proj;
890  }
891 
892  for(int j=0;j<Charge_Vs_PathTEC->GetXaxis()->GetNbins();j++){
893  Proj = Charge_Vs_PathTEC->ProjectionY(" ",j,j,"e");
894  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
895  MPV_Vs_PathTEC->SetBinContent(j, FitResults[0]/Charge_Vs_PathTEC->GetXaxis()->GetBinCenter(j));
896  MPV_Vs_PathTEC->SetBinError (j, FitResults[1]/Charge_Vs_PathTEC->GetXaxis()->GetBinCenter(j));
897  delete Proj;
898  }
899 
900  for(int j=0;j<Charge_Vs_PathTEC1->GetXaxis()->GetNbins();j++){
901  Proj = Charge_Vs_PathTEC1->ProjectionY(" ",j,j,"e");
902  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
903  MPV_Vs_PathTEC1->SetBinContent(j, FitResults[0]/Charge_Vs_PathTEC1->GetXaxis()->GetBinCenter(j));
904  MPV_Vs_PathTEC1->SetBinError (j, FitResults[1]/Charge_Vs_PathTEC1->GetXaxis()->GetBinCenter(j));
905  delete Proj;
906  }
907 
908  for(int j=0;j<Charge_Vs_PathTEC2->GetXaxis()->GetNbins();j++){
909  Proj = Charge_Vs_PathTEC2->ProjectionY(" ",j,j,"e");
910  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
911  MPV_Vs_PathTEC2->SetBinContent(j, FitResults[0]/Charge_Vs_PathTEC2->GetXaxis()->GetBinCenter(j));
912  MPV_Vs_PathTEC2->SetBinError (j, FitResults[1]/Charge_Vs_PathTEC2->GetXaxis()->GetBinCenter(j));
913  delete Proj;
914  }
915 
916 
917  for(int j=1;j<Charge_Vs_TransversAngle->GetXaxis()->GetNbins();j++){
918  Proj = Charge_Vs_TransversAngle->ProjectionY(" ",j,j,"e");
919  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
920  MPV_Vs_TransversAngle->SetBinContent(j, FitResults[0]);
921  MPV_Vs_TransversAngle->SetBinError (j, FitResults[1]);
922  delete Proj;
923  }
924 
925  for(int j=1;j<Charge_Vs_Alpha->GetXaxis()->GetNbins();j++){
926  Proj = Charge_Vs_Alpha->ProjectionY(" ",j,j,"e");
927  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
928  MPV_Vs_Alpha->SetBinContent(j, FitResults[0]);
929  MPV_Vs_Alpha->SetBinError (j, FitResults[1]);
930  delete Proj;
931  }
932 
933  for(int j=1;j<Charge_Vs_Beta->GetXaxis()->GetNbins();j++){
934  Proj = Charge_Vs_Beta->ProjectionY(" ",j,j,"e");
935  getPeakOfLandau(Proj,FitResults); if(FitResults[0] ==-0.5)continue;
936  MPV_Vs_Beta->SetBinContent(j, FitResults[0]);
937  MPV_Vs_Beta->SetBinError (j, FitResults[1]);
938  delete Proj;
939  }
940 
941  FILE* Gains = fopen(OutputGains.c_str(),"w");
942  fprintf(Gains,"NEvents = %i\n",NEvent);
943  fprintf(Gains,"Number of APVs = %lu\n",static_cast<unsigned long>(APVsColl.size()));
944  fprintf(Gains,"GoodFits = %i BadFits = %i ratio = %f\n",GOOD,BAD,(100.0*GOOD)/(GOOD+BAD));
945  for(std::vector<stAPVGain*>::iterator it = APVsCollOrdered.begin();it!=APVsCollOrdered.end();it++){
946  stAPVGain* APV = *it;
947  fprintf(Gains,"%i | %i | PreviousGain = %7.5f NewGain = %7.5f\n", APV->DetId,APV->APVId,APV->PreviousGain,APV->Gain);
948  }
949 
950  std::vector<int> DetIdOfBuggedAPV;
951  fprintf(Gains,"----------------------------------------------------------------------\n");
952  for(std::vector<stAPVGain*>::iterator it = APVsCollOrdered.begin();it!=APVsCollOrdered.end();it++){
953  stAPVGain* APV = *it;
954  if(APV->MPV>0 && APV->MPV<200){
955  bool tmpBug = false;
956  for(unsigned int b=0;b<DetIdOfBuggedAPV.size()&&!tmpBug;b++){if(DetIdOfBuggedAPV[b]==APV->DetId)tmpBug=true;}
957  if(!tmpBug){fprintf(Gains,"%i,\n",APV->DetId);DetIdOfBuggedAPV.push_back(APV->DetId);}
958  }
959  }
960 
961 
962  fclose(Gains);
963 
964 // delete [] FitResults;
965 // delete Proj;
966  }
967 
968  dqmStore_->cd();
969  dqmStore_->save(OutputHistos.c_str());
970 
971 }
std::vector< stAPVGain * > APVsCollOrdered
#define NULL
Definition: scimark2.h:8
1: Failed selection (without additional info)
Definition: ParticleCode.h:34
vector< string > VInputFiles
int j
Definition: DBlmapReader.cc:9
const std::complex< double > I
Definition: I.h:8
double f[11][100]
__gnu_cxx::hash_map< unsigned int, stAPVGain *, __gnu_cxx::hash< unsigned int >, isEqual > APVsColl
double b
Definition: hdecay.h:120
0: Passed selection
Definition: ParticleCode.h:33
void getPeakOfLandau(TH1 *InputHisto, double *FitResults, double LowRange=0, double HighRange=5400)
double SiStripGainFromData::ComputeChargeOverPath ( const SiStripCluster Cluster,
TrajectoryStateOnSurface  trajState,
const edm::EventSetup iSetup,
const Track track,
double  trajChi2OverN 
)
private

Definition at line 1096 of file SiStripGainFromData.cc.

References a, AllowSaturation, alpha, SiStripCluster::amplitudes(), sistrip::APV, APV_Charge, APV_Momentum, APV_PathLength, APVsColl, beta, Charge_Vs_Alpha, Charge_Vs_Beta, Charge_Vs_PathLength, Charge_Vs_PathLength320, Charge_Vs_PathLength500, Charge_Vs_PathTEC, Charge_Vs_PathTEC1, Charge_Vs_PathTEC2, Charge_Vs_PathTIB, Charge_Vs_PathTID, Charge_Vs_PathTOB, Charge_Vs_TransversAngle, SiStripCluster::firstStrip(), TrajectoryStateOnSurface::globalMomentum(), HFirstStrip, stAPVGain::Index, IsFarFromBorder(), TrajectoryStateOnSurface::localDirection(), PV3DBase< T, PVType, FrameType >::mag(), MaxNrStrips, NHighStripInCluster, NSatStripInCluster, NStrips_Vs_Alpha, NStrips_Vs_Beta, NStrips_Vs_TransversAngle, cmsHarvester::path, funct::pow(), stAPVGain::PreviousGain, mathSSE::sqrt(), stAPVGain::SubDet, StripSubdetector::TEC, stAPVGain::Thickness, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, edmStreamStallGrapher::trans, Validation, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

Referenced by algoAnalyze().

1097 {
1098  LocalVector trackDirection = trajState.localDirection();
1099  double cosine = trackDirection.z()/trackDirection.mag();
1100  auto const & Ampls = Cluster->amplitudes();
1101  uint32_t DetId = 0; // is 0 since long time Cluster->geographicalId();
1102  int FirstStrip = Cluster->firstStrip();
1103  int APVId = FirstStrip/128;
1104  stAPVGain* APV = APVsColl[(DetId<<3) | APVId];
1105  int Saturation = 0;
1106  bool Overlaping = false;
1107  int Charge = 0;
1108  unsigned int NHighStrip = 0;
1109 
1110  if(!IsFarFromBorder(trajState,DetId, iSetup))return -1;
1111 
1112 
1113  if(FirstStrip==0 )Overlaping=true;
1114  if(FirstStrip==128 )Overlaping=true;
1115  if(FirstStrip==256 )Overlaping=true;
1116  if(FirstStrip==384 )Overlaping=true;
1117  if(FirstStrip==512 )Overlaping=true;
1118  if(FirstStrip==640 )Overlaping=true;
1119 
1120  if(FirstStrip<=127 && FirstStrip+Ampls.size()>127)Overlaping=true;
1121  if(FirstStrip<=255 && FirstStrip+Ampls.size()>255)Overlaping=true;
1122  if(FirstStrip<=383 && FirstStrip+Ampls.size()>383)Overlaping=true;
1123  if(FirstStrip<=511 && FirstStrip+Ampls.size()>511)Overlaping=true;
1124  if(FirstStrip<=639 && FirstStrip+Ampls.size()>639)Overlaping=true;
1125 
1126  if(FirstStrip+Ampls.size()==127 )Overlaping=true;
1127  if(FirstStrip+Ampls.size()==255 )Overlaping=true;
1128  if(FirstStrip+Ampls.size()==383 )Overlaping=true;
1129  if(FirstStrip+Ampls.size()==511 )Overlaping=true;
1130  if(FirstStrip+Ampls.size()==639 )Overlaping=true;
1131  if(FirstStrip+Ampls.size()==767 )Overlaping=true;
1132  if(Overlaping)return -1;
1133 
1134 
1135 /*
1136  if(FirstStrip==0 )Overlaping=true;
1137  if(FirstStrip<=255 && FirstStrip+Ampls.size()>255)Overlaping=true;
1138  if(FirstStrip<=511 && FirstStrip+Ampls.size()>511)Overlaping=true;
1139  if(FirstStrip+Ampls.size()==511 )Overlaping=true;
1140  if(FirstStrip+Ampls.size()==767 )Overlaping=true;
1141  if(Overlaping)return -1;
1142 */
1143 
1144  for(unsigned int a=0;a<Ampls.size();a++){Charge+=Ampls[a];if(Ampls[a]>=254)Saturation++;if(Ampls[a]>=20)NHighStrip++;}
1145  double path = (10.0*APV->Thickness)/fabs(cosine);
1146  double ClusterChargeOverPath = (double)Charge / path ;
1147 
1148  NSatStripInCluster->Fill(Saturation);
1149 
1150  if(Ampls.size()>MaxNrStrips) return -1;
1151  if(Saturation>0 && !AllowSaturation)return -1;
1152  Charge_Vs_PathLength ->Fill(path,Charge);
1153  if(APV->Thickness<0.04) Charge_Vs_PathLength320->Fill(path,Charge);
1154  if(APV->Thickness>0.04) Charge_Vs_PathLength500->Fill(path,Charge);
1155  if(APV->SubDet==StripSubdetector::TIB) Charge_Vs_PathTIB ->Fill(path,Charge);
1156  if(APV->SubDet==StripSubdetector::TID) Charge_Vs_PathTID ->Fill(path,Charge);
1157  if(APV->SubDet==StripSubdetector::TOB) Charge_Vs_PathTOB ->Fill(path,Charge);
1158  if(APV->SubDet==StripSubdetector::TEC){ Charge_Vs_PathTEC ->Fill(path,Charge);
1159  if(APV->Thickness<0.04) Charge_Vs_PathTEC1 ->Fill(path,Charge);
1160  if(APV->Thickness>0.04) Charge_Vs_PathTEC2 ->Fill(path,Charge); }
1161 
1162  double trans = atan2(trackDirection.y(),trackDirection.x())*(180/3.14159265);
1163  double alpha = acos(trackDirection.x() / sqrt( pow(trackDirection.x(),2) + pow(trackDirection.z(),2) ) ) * (180/3.14159265);
1164  double beta = acos(trackDirection.y() / sqrt( pow(trackDirection.x(),2) + pow(trackDirection.z(),2) ) ) * (180/3.14159265);
1165 
1166  if(path>0.4 && path<0.45){
1167  Charge_Vs_TransversAngle->Fill(trans,Charge/path);
1168  Charge_Vs_Alpha->Fill(alpha,Charge/path);
1169  Charge_Vs_Beta->Fill(beta,Charge/path);
1170  }
1171 
1172  NStrips_Vs_TransversAngle->Fill(trans,Ampls.size());
1173  NStrips_Vs_Alpha ->Fill(alpha,Ampls.size());
1174  NStrips_Vs_Beta ->Fill(beta ,Ampls.size());
1175 
1176  NHighStripInCluster->Fill(NHighStrip);
1177 // if(NHighStrip==1) Charge_Vs_PathLength_CS1->Fill(path, Charge );
1178 // if(NHighStrip==2) Charge_Vs_PathLength_CS2->Fill(path, Charge );
1179 // if(NHighStrip==3) Charge_Vs_PathLength_CS3->Fill(path, Charge );
1180 // if(NHighStrip==4) Charge_Vs_PathLength_CS4->Fill(path, Charge );
1181 // if(NHighStrip==5) Charge_Vs_PathLength_CS5->Fill(path, Charge );
1182 
1183  HFirstStrip ->Fill(FirstStrip);
1184 
1185 
1186  if(Validation){ClusterChargeOverPath=ClusterChargeOverPath/APV->PreviousGain;}
1187 
1188  APV_Charge ->Fill(APV->Index,ClusterChargeOverPath);
1189  APV_Momentum ->Fill(APV->Index,trajState.globalMomentum().mag());
1190  APV_PathLength->Fill(APV->Index,path);
1191 
1192  return ClusterChargeOverPath;
1193 }
const double beta
float alpha
Definition: AMPTWrapper.h:95
LocalVector localDirection() const
bool IsFarFromBorder(TrajectoryStateOnSurface trajState, const uint32_t detid, const edm::EventSetup *iSetup)
T y() const
Definition: PV3DBase.h:63
uint16_t firstStrip() const
T mag() const
Definition: PV3DBase.h:67
tuple path
else: Piece not in the list, fine.
T sqrt(T t)
Definition: SSEVec.h:48
T z() const
Definition: PV3DBase.h:64
__gnu_cxx::hash_map< unsigned int, stAPVGain *, __gnu_cxx::hash< unsigned int >, isEqual > APVsColl
Definition: DetId.h:18
GlobalVector globalMomentum() const
double a
Definition: hdecay.h:121
T x() const
Definition: PV3DBase.h:62
const std::vector< uint8_t > & amplitudes() const
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
SiStripApvGain * SiStripGainFromData::getNewObject ( )
overrideprivatevirtual

Implements ConditionDBWriter< SiStripApvGain >.

Definition at line 1284 of file SiStripGainFromData.cc.

References a, AlgoMode, sistrip::APV, stAPVGain::APVId, APVsCollOrdered, gather_cfg::cout, stAPVGain::DetId, stAPVGain::Gain, NULL, getGTfromDQMFile::obj, stAPVGain::PreviousGain, and SiStripApvGain::put().

1285 {
1286  cout << "START getNewObject\n";
1287 
1288 // if( !(strcmp(AlgoMode.c_str(),"WriteOnDB")==0 || strcmp(AlgoMode.c_str(),"SingleJob")==0) )return NULL;
1289  if( !(strcmp(AlgoMode.c_str(),"WriteOnDB")==0 || strcmp(AlgoMode.c_str(),"SingleJob")==0) )return new SiStripApvGain();
1290 
1291 
1292  SiStripApvGain * obj = new SiStripApvGain();
1293  std::vector<float>* theSiStripVector = NULL;
1294  int PreviousDetId = -1;
1295  for(unsigned int a=0;a<APVsCollOrdered.size();a++)
1296  {
1298  if(APV==NULL){ printf("Bug\n"); continue; }
1299  if(APV->DetId != PreviousDetId){
1300  if(theSiStripVector!=NULL){
1301  SiStripApvGain::Range range(theSiStripVector->begin(),theSiStripVector->end());
1302  if ( !obj->put(PreviousDetId,range) ) printf("Bug to put detId = %i\n",PreviousDetId);
1303  }
1304 
1305  theSiStripVector = new std::vector<float>;
1306  PreviousDetId = APV->DetId;
1307  }
1308  printf("%i | %i | PreviousGain = %7.5f NewGain = %7.5f\n", APV->DetId,APV->APVId,APV->PreviousGain,APV->Gain);
1309  theSiStripVector->push_back(APV->Gain);
1310 // theSiStripVector->push_back(APV->Gain);
1311  }
1312 
1313  if(theSiStripVector!=NULL){
1314  SiStripApvGain::Range range(theSiStripVector->begin(),theSiStripVector->end());
1315  if ( !obj->put(PreviousDetId,range) ) printf("Bug to put detId = %i\n",PreviousDetId);
1316  }
1317 
1318  cout << "END getNewObject\n";
1319  return obj;
1320 }
std::vector< stAPVGain * > APVsCollOrdered
#define NULL
Definition: scimark2.h:8
bool put(const uint32_t &detID, Range input)
std::pair< ContainerIterator, ContainerIterator > Range
double a
Definition: hdecay.h:121
tuple cout
Definition: gather_cfg.py:121
void SiStripGainFromData::getPeakOfLandau ( TH1 *  InputHisto,
double *  FitResults,
double  LowRange = 0,
double  HighRange = 5400 
)
private

Definition at line 1233 of file SiStripGainFromData.cc.

References MaxChi2OverNDF, MinNrEntries, and create_public_lumi_plots::width.

Referenced by algoEndJob().

1234 {
1235  double adcs = -0.5;
1236  double adcs_err = 0.;
1237  double width = -0.5;
1238  double width_err = 0;
1239  double chi2overndf = -0.5;
1240 
1241  double nr_of_entries = InputHisto->GetEntries();
1242 
1243  if( (unsigned int)nr_of_entries < MinNrEntries){
1244  FitResults[0] = adcs;
1245  FitResults[1] = adcs_err;
1246  FitResults[2] = width;
1247  FitResults[3] = width_err;
1248  FitResults[4] = chi2overndf;
1249  return;
1250  }
1251 
1252  // perform fit with standard landau
1253  TF1* MyLandau = new TF1("MyLandau","landau",LowRange, HighRange);
1254  MyLandau->SetParameter("MPV",300);
1255 
1256  InputHisto->Fit(MyLandau,"QR WW");
1257 
1258  // MPV is parameter 1 (0=constant, 1=MPV, 2=Sigma)
1259  adcs = MyLandau->GetParameter("MPV");
1260  adcs_err = MyLandau->GetParError(1);
1261  width = MyLandau->GetParameter(2);
1262  width_err = MyLandau->GetParError(2);
1263  chi2overndf = MyLandau->GetChisquare() / MyLandau->GetNDF();
1264 
1265  // if still wrong, give up
1266  if(adcs<2. || chi2overndf>MaxChi2OverNDF){
1267  adcs = -0.5; adcs_err = 0.;
1268  width = -0.5; width_err = 0;
1269  chi2overndf = -0.5;
1270  }
1271 
1272  FitResults[0] = adcs;
1273  FitResults[1] = adcs_err;
1274  FitResults[2] = width;
1275  FitResults[3] = width_err;
1276  FitResults[4] = chi2overndf;
1277 
1278  delete MyLandau;
1279 }
bool SiStripGainFromData::IsFarFromBorder ( TrajectoryStateOnSurface  trajState,
const uint32_t  detid,
const edm::EventSetup iSetup 
)
private

Definition at line 1195 of file SiStripGainFromData.cc.

References Surface::bounds(), gather_cfg::cout, edm::EventSetup::get(), Bounds::length(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localPosition(), Parameters::parameters, LocalTrajectoryError::positionError(), GeomDet::surface(), PV3DBase< T, PVType, FrameType >::y(), and LocalError::yy().

Referenced by ComputeChargeOverPath().

1196 {
1197  edm::ESHandle<TrackerGeometry> tkGeom; iSetup->get<TrackerDigiGeometryRecord>().get( tkGeom );
1198 
1199  LocalPoint HitLocalPos = trajState.localPosition();
1200  LocalError HitLocalError = trajState.localError().positionError() ;
1201 
1202  const GeomDetUnit* it = tkGeom->idToDetUnit(DetId(detid));
1203  if (dynamic_cast<const StripGeomDetUnit*>(it)==0 && dynamic_cast<const PixelGeomDetUnit*>(it)==0) {
1204  std::cout << "this detID doesn't seem to belong to the Tracker" << std::endl;
1205  return false;
1206  }
1207 
1208  const BoundPlane plane = it->surface();
1209  const TrapezoidalPlaneBounds* trapezoidalBounds( dynamic_cast<const TrapezoidalPlaneBounds*>(&(plane.bounds())));
1210  const RectangularPlaneBounds* rectangularBounds( dynamic_cast<const RectangularPlaneBounds*>(&(plane.bounds())));
1211 
1212  double DistFromBorder = 1.0;
1213  //double HalfWidth = it->surface().bounds().width() /2.0;
1214  double HalfLength = it->surface().bounds().length() /2.0;
1215 
1216  if(trapezoidalBounds)
1217  {
1218  std::array<const float, 4> const & parameters = (*trapezoidalBounds).parameters();
1219  HalfLength = parameters[3];
1220  //double t = (HalfLength + HitLocalPos.y()) / (2*HalfLength) ;
1221  //HalfWidth = parameters[0] + (parameters[1]-parameters[0]) * t;
1222  }else if(rectangularBounds){
1223  //HalfWidth = it->surface().bounds().width() /2.0;
1224  HalfLength = it->surface().bounds().length() /2.0;
1225  }else{return false;}
1226 
1227 // if (fabs(HitLocalPos.x())+HitLocalError.xx() >= (HalfWidth - DistFromBorder) ) return false;//Don't think is really necessary
1228  if (fabs(HitLocalPos.y())+HitLocalError.yy() >= (HalfLength - DistFromBorder) ) return false;
1229 
1230  return true;
1231 }
dictionary parameters
Definition: Parameters.py:2
virtual float length() const =0
T y() const
Definition: PV3DBase.h:63
const Bounds & bounds() const
Definition: Surface.h:128
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:40
LocalError positionError() const
float yy() const
Definition: LocalError.h:26
const LocalTrajectoryError & localError() const
Definition: DetId.h:18
const T & get() const
Definition: EventSetup.h:55
tuple cout
Definition: gather_cfg.py:121

Member Data Documentation

std::string SiStripGainFromData::AlgoMode
private
bool SiStripGainFromData::AllowSaturation
private

Definition at line 119 of file SiStripGainFromData.cc.

Referenced by ComputeChargeOverPath(), and SiStripGainFromData().

TH2F* SiStripGainFromData::APV_Charge
private

Definition at line 196 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH1F* SiStripGainFromData::APV_CumulGain
private

Definition at line 201 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::APV_DetId
private

Definition at line 190 of file SiStripGainFromData.cc.

Referenced by algoBeginJob().

TH1F* SiStripGainFromData::APV_Eta
private

Definition at line 192 of file SiStripGainFromData.cc.

Referenced by algoBeginJob().

TH1F* SiStripGainFromData::APV_Gain
private

Definition at line 200 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::APV_Id
private

Definition at line 191 of file SiStripGainFromData.cc.

Referenced by algoBeginJob().

TH2F* SiStripGainFromData::APV_Momentum
private

Definition at line 195 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH1F* SiStripGainFromData::APV_MPV
private

Definition at line 199 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::APV_PathLength
private

Definition at line 197 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH1F* SiStripGainFromData::APV_PathLengthM
private

Definition at line 198 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::APV_PrevGain
private

Definition at line 202 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoBeginRun().

TH1F* SiStripGainFromData::APV_R
private

Definition at line 193 of file SiStripGainFromData.cc.

Referenced by algoBeginJob().

TH1F* SiStripGainFromData::APV_SubDet
private

Definition at line 194 of file SiStripGainFromData.cc.

Referenced by algoBeginJob().

TH1F* SiStripGainFromData::APV_Thickness
private

Definition at line 203 of file SiStripGainFromData.cc.

Referenced by algoBeginJob().

__gnu_cxx::hash_map<unsigned int, stAPVGain*, __gnu_cxx::hash<unsigned int>, isEqual > SiStripGainFromData::APVsColl
private

Definition at line 287 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

std::vector<stAPVGain*> SiStripGainFromData::APVsCollOrdered
private

Definition at line 286 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoBeginRun(), algoEndJob(), and getNewObject().

int SiStripGainFromData::CalibrationLevel
private

Definition at line 122 of file SiStripGainFromData.cc.

Referenced by algoEndJob(), and SiStripGainFromData().

TH1F* SiStripGainFromData::Charge_TEC
private

Definition at line 177 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::Charge_TEC1
private

Definition at line 178 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::Charge_TEC2
private

Definition at line 179 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::Charge_TECM
private

Definition at line 181 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::Charge_TECP
private

Definition at line 180 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::Charge_TIB
private

Definition at line 172 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::Charge_TID
private

Definition at line 173 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::Charge_TIDM
private

Definition at line 175 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::Charge_TIDP
private

Definition at line 174 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::Charge_TOB
private

Definition at line 176 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::Charge_Vs_Alpha
private

Definition at line 250 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH2F* SiStripGainFromData::Charge_Vs_Beta
private

Definition at line 254 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH2F* SiStripGainFromData::Charge_Vs_PathLength
private

Definition at line 233 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH2F* SiStripGainFromData::Charge_Vs_PathLength320
private

Definition at line 234 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH2F* SiStripGainFromData::Charge_Vs_PathLength500
private

Definition at line 235 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH2F* SiStripGainFromData::Charge_Vs_PathTEC
private

Definition at line 160 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH2F* SiStripGainFromData::Charge_Vs_PathTEC1
private

Definition at line 161 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH2F* SiStripGainFromData::Charge_Vs_PathTEC2
private

Definition at line 162 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH2F* SiStripGainFromData::Charge_Vs_PathTIB
private

Definition at line 157 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH2F* SiStripGainFromData::Charge_Vs_PathTID
private

Definition at line 158 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH2F* SiStripGainFromData::Charge_Vs_PathTOB
private

Definition at line 159 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH2F* SiStripGainFromData::Charge_Vs_TransversAngle
private

Definition at line 246 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

bool SiStripGainFromData::CheckIfFileExist
private

Definition at line 123 of file SiStripGainFromData.cc.

Referenced by algoEndJob(), and SiStripGainFromData().

bool SiStripGainFromData::CheckLocalAngle
private

Definition at line 108 of file SiStripGainFromData.cc.

Referenced by SiStripGainFromData().

DQMStore* SiStripGainFromData::dqmStore_
private

Definition at line 97 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and SiStripGainFromData().

DQMStore* SiStripGainFromData::dqmStore_infile
private

Definition at line 98 of file SiStripGainFromData.cc.

Referenced by SiStripGainFromData().

unsigned int SiStripGainFromData::EEvent
private

Definition at line 277 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::Error_Vs_Entries
private

Definition at line 259 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::Error_Vs_Eta
private

Definition at line 260 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::Error_Vs_MPV
private

Definition at line 258 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::Error_Vs_Phi
private

Definition at line 261 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

unsigned int SiStripGainFromData::ERun
private

Definition at line 276 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), algoBeginJob(), and algoEndJob().

TimeValue_t SiStripGainFromData::ETimestamp
private

Definition at line 278 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), and algoBeginJob().

bool SiStripGainFromData::FirstSetOfConstants
private

Definition at line 120 of file SiStripGainFromData.cc.

Referenced by algoBeginRun(), algoEndJob(), and SiStripGainFromData().

TH1F* SiStripGainFromData::FWHM_Vs_PathLength
private

Definition at line 241 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::FWHM_Vs_PathLength320
private

Definition at line 242 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::FWHM_Vs_PathLength500
private

Definition at line 243 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::HChi2OverNDF
private

Definition at line 139 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::HFirstStrip
private

Definition at line 270 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH2F* SiStripGainFromData::HitLocalPosition
private

Definition at line 265 of file SiStripGainFromData.cc.

TH2F* SiStripGainFromData::HitLocalPositionBefCut
private

Definition at line 266 of file SiStripGainFromData.cc.

TH1F* SiStripGainFromData::HTrackChi2OverNDF
private

Definition at line 140 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::HTrackHits
private

Definition at line 141 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), algoBeginJob(), and algoEndJob().

const edm::Event* SiStripGainFromData::iEvent_
private

Definition at line 106 of file SiStripGainFromData.cc.

Referenced by algoAnalyze().

const edm::EventSetup* SiStripGainFromData::iSetup_
private

Definition at line 105 of file SiStripGainFromData.cc.

Referenced by algoBeginJob().

TH1F* SiStripGainFromData::JobInfo
private

Definition at line 268 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

double SiStripGainFromData::MaxChi2OverNDF
private

Definition at line 111 of file SiStripGainFromData.cc.

Referenced by getPeakOfLandau(), and SiStripGainFromData().

double SiStripGainFromData::MaxMPVError
private

Definition at line 110 of file SiStripGainFromData.cc.

Referenced by algoEndJob(), and SiStripGainFromData().

unsigned int SiStripGainFromData::MaxNrStrips
private

Definition at line 116 of file SiStripGainFromData.cc.

Referenced by ComputeChargeOverPath(), and SiStripGainFromData().

double SiStripGainFromData::MaxTrackChiOverNdf
private

Definition at line 118 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), and SiStripGainFromData().

double SiStripGainFromData::MaxTrackEta
private

Definition at line 115 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), and SiStripGainFromData().

double SiStripGainFromData::MaxTrackMomentum
private

Definition at line 113 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), and SiStripGainFromData().

unsigned int SiStripGainFromData::MinNrEntries
private

Definition at line 109 of file SiStripGainFromData.cc.

Referenced by getPeakOfLandau(), and SiStripGainFromData().

double SiStripGainFromData::MinTrackEta
private

Definition at line 114 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), and SiStripGainFromData().

unsigned int SiStripGainFromData::MinTrackHits
private

Definition at line 117 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), and SiStripGainFromData().

double SiStripGainFromData::MinTrackMomentum
private

Definition at line 112 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), and SiStripGainFromData().

TH1F* SiStripGainFromData::MPV_Vs_Alpha
private

Definition at line 251 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::MPV_Vs_Beta
private

Definition at line 255 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::MPV_Vs_Eta
private

Definition at line 184 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::MPV_Vs_EtaTEC
private

Definition at line 146 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::MPV_Vs_EtaTEC1
private

Definition at line 147 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::MPV_Vs_EtaTEC2
private

Definition at line 148 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::MPV_Vs_EtaTIB
private

Definition at line 143 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::MPV_Vs_EtaTID
private

Definition at line 144 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::MPV_Vs_EtaTOB
private

Definition at line 145 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::MPV_Vs_PathLength
private

Definition at line 237 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::MPV_Vs_PathLength320
private

Definition at line 238 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::MPV_Vs_PathLength500
private

Definition at line 239 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::MPV_Vs_PathTEC
private

Definition at line 167 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::MPV_Vs_PathTEC1
private

Definition at line 168 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::MPV_Vs_PathTEC2
private

Definition at line 169 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::MPV_Vs_PathTIB
private

Definition at line 164 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::MPV_Vs_PathTID
private

Definition at line 165 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::MPV_Vs_PathTOB
private

Definition at line 166 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::MPV_Vs_Phi
private

Definition at line 183 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::MPV_Vs_PhiTEC
private

Definition at line 153 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::MPV_Vs_PhiTEC1
private

Definition at line 154 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::MPV_Vs_PhiTEC2
private

Definition at line 155 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::MPV_Vs_PhiTIB
private

Definition at line 150 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::MPV_Vs_PhiTID
private

Definition at line 151 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::MPV_Vs_PhiTOB
private

Definition at line 152 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::MPV_Vs_R
private

Definition at line 185 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::MPV_Vs_TransversAngle
private

Definition at line 247 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::MPVs
private

Definition at line 205 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::MPVs320
private

Definition at line 206 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::MPVs500
private

Definition at line 207 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

unsigned int SiStripGainFromData::NEvent
private

Definition at line 272 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::NHighStripInCluster
private

Definition at line 213 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH2F* SiStripGainFromData::NoMPV_Vs_EtaPhi
private

Definition at line 263 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

TH1F* SiStripGainFromData::NSatStripInCluster
private

Definition at line 212 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH2F* SiStripGainFromData::NStrips_Vs_Alpha
private

Definition at line 252 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH2F* SiStripGainFromData::NStrips_Vs_Beta
private

Definition at line 256 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and ComputeChargeOverPath().

TH2F* SiStripGainFromData::NStrips_Vs_TransversAngle
private

Definition at line 248 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), algoEndJob(), and ComputeChargeOverPath().

TH1F* SiStripGainFromData::NumberOfEntriesByAPV
private

Definition at line 138 of file SiStripGainFromData.cc.

Referenced by algoBeginJob(), and algoEndJob().

std::string SiStripGainFromData::OutputGains
private

Definition at line 126 of file SiStripGainFromData.cc.

Referenced by algoEndJob(), and SiStripGainFromData().

std::string SiStripGainFromData::OutputHistos
private

Definition at line 127 of file SiStripGainFromData.cc.

Referenced by algoEndJob(), and SiStripGainFromData().

unsigned int SiStripGainFromData::SEvent
private

Definition at line 274 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), algoBeginJob(), and algoEndJob().

unsigned int SiStripGainFromData::SRun
private

Definition at line 273 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), algoBeginJob(), and algoEndJob().

TimeValue_t SiStripGainFromData::STimestamp
private

Definition at line 275 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), and algoBeginJob().

MonitorElement* SiStripGainFromData::tmp
private

Definition at line 133 of file SiStripGainFromData.cc.

Referenced by algoBeginJob().

TH2F* SiStripGainFromData::Tracks_P_Vs_Eta
private

Definition at line 135 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), algoBeginJob(), and algoEndJob().

TH2F* SiStripGainFromData::Tracks_Pt_Vs_Eta
private

Definition at line 136 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), algoBeginJob(), and algoEndJob().

std::string SiStripGainFromData::TrajToTrackLabel
private

Definition at line 129 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), and SiStripGainFromData().

std::string SiStripGainFromData::TrajToTrackProducer
private

Definition at line 128 of file SiStripGainFromData.cc.

Referenced by algoAnalyze(), and SiStripGainFromData().

bool SiStripGainFromData::Validation
private
vector<string> SiStripGainFromData::VInputFiles
private

Definition at line 131 of file SiStripGainFromData.cc.

Referenced by algoEndJob(), and SiStripGainFromData().