![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
30 const std::string &
name,
31 const IInterface*
parent) :
33 m_HistEnergySideA(nullptr),
34 m_HistEnergySideC(nullptr),
35 m_HistTimeSideA(nullptr),
36 m_HistTimeSideC(nullptr),
37 m_HistTimeDeltaSidesAC(nullptr),
40 m_trigDec(
"Trig::TrigDecisionTool")
113 return StatusCode::FAILURE;
116 return StatusCode::SUCCESS;
136 "Total Energy Side A (TeV)",
137 200,0.,7.),
run).isFailure();
142 "Total Energy Side C (TeV)",
143 200,0.,7.),
run).isFailure();
147 "Absolute Time Side A (ns)",
148 200,0.,50.),
run).isFailure();
152 "Absolute Time Side C (ns)",
153 200,0.,50.),
run).isFailure();
157 "Time Difference Side A - C (ns)",
158 500,-50.,50.),
run).isFailure();
181 if (!
m_trigDec->isPassed(
"L1_ZDC_UNPAIRED"))
return StatusCode::FAILURE;
183 std::vector<std::string> L1items =
m_trigDec->getChainGroup(
"L1_.*")->getListOfTriggers();
184 unsigned int nL1Items = L1items.size();
186 for(
unsigned int it=0;
it<nL1Items; ++
it) {
187 if( L1items[
it] !=
"" ) {
194 unsigned bunch_crossing_id=0;
201 bunch_crossing_id = event_info->
bcid();
213 std::vector<std::vector<int> > wfm;
226 if (! digitsCollection.
isValid()) {
229 return StatusCode::SUCCESS;
237 for (iter = digitsCollection->
begin(); iter != digitsCollection->
end(); ++iter)
252 if (wfm[0].
size() == 0)
260 if (wfm[1].
size() == 0)
276 if (((
id.get_identifier32().get_compact() >> 21) & 1) == 0)
286 for (vit = wfm.begin(); vit < wfm.end(); ++vit)
288 if (vit->size() == 0)
329 TString histoName =
"deltaT_"; histoName+=bunch_crossing_id;
330 TString histoTitle=
"Arrival time BCID:"; histoTitle+=bunch_crossing_id;
344 return StatusCode::SUCCESS;
361 return StatusCode::SUCCESS;
375 return StatusCode::SUCCESS;
380 const std::vector< std::vector <int> >& wfm) {
395 double CFD_frac = 1.0;
400 std::vector<std::vector<int> >::const_iterator vit;
416 x =
id.get_identifier32().get_compact();
420 for (vit = wfm.begin(); vit<wfm.end(); ++vit) {
434 for(
int I=0;
I<NSlice;
I++) {Slices[
I]=
y[
I];}
437 zdcSignalSinc->
process(Slices,
gain,pedestal,CFD_frac,corr);
446 if (((
x >> 21) & 1) == 0)
504 i = (
i<4) ? (
i+1) : 0;
JetConstituentVector::iterator iterator
StatusCode bookHistograms()
An inheriting class should either override this function or bookHists().
Const iterator class for DataVector/DataList.
virtual void Fill(const double &x) override
The common trigger namespace for trigger analysis tools.
static TH1F_LW * create(const char *name, const char *title, unsigned nbinsx, const double &xlow, const double &xup)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< std::string > m_L1Names
StatusCode procHistograms()
An inheriting class should either override this function or finalHists().
std::map< Identifier::value_type, float > m_map_HighGain
StatusCode fillHistograms()
An inheriting class should either override this function or fillHists().
TH1F_LW * m_HistEnergySideA
SG::ReadHandleKey< xAOD::EventInfo > m_EventInfoKey
const std::vector< int > & get_digits_gain1_delay1(void) const
std::vector< float > m_TimeSideC
int process(double *, double gain=1., double ped=0., double frac=1., bool corr=true)
TH1F_LW * m_HistTimeSideC
int getEnergyAndTimeByModule(const Identifier &id, const std::vector< std::vector< int > > &wfm)
ToolHandle< Trig::TrigDecisionTool > m_trigDec
::StatusCode StatusCode
StatusCode definition for legacy code.
TH1F_LW * m_HistEnergySideC
std::vector< float > m_EnergySideC
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::ReadHandleKey< ZdcDigitsCollection > m_digitsContainerName
virtual bool isValid() override final
Can the handle be successfully dereferenced?
bool bookDQTNonCollBkg_ZDC()
StatusCode checkHists(bool fromFinalize)
This implementation does nothing; equivalent functionality may be provided by procHists(....
const std::vector< int > & get_digits_gain0_delay1(void) const
std::vector< double > m_L1Trigs
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
std::map< Identifier::value_type, float > m_map_LowGain
#define ATH_MSG_WARNING(x)
DQTNonCollBkg_ZDC(const std::string &type, const std::string &name, const IInterface *parent)
const std::vector< int > & get_digits_gain0_delay0(void) const
TH1F_LW * m_HistTimeSideA
const std::vector< int > & get_digits_gain1_delay0(void) const
TH1F_LW * m_HistTimeDeltaSidesAC
Identifier identify(void) const
std::map< unsigned, TH1F_LW * > m_map_BCID_DeltaT
std::vector< float > m_TimeSideA
uint32_t bcid() const
The bunch crossing ID of the event.
std::vector< float > m_EnergySideA
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.