14 #include <QtCore/QString>
51 "' extracts the total momentum of the particle '" +
_particle +
53 "' and then converts it to Energy assuming that it is an electron. " +
63 particleHits_t::iterator it(particle.hits().begin());
64 for (; it != particle.hits().end(); ++it)
66 double p = (*it)[
roh];
67 double e_energy = p*p*13.6;
86 _detector = settings.
value(
"Detector",
"blubb").toString().toStdString();
91 HelperAcqirisDetectors::instance(
_detector)->loadSettings();
93 "' create a tripple coincidence Histogram of particles of '" +
_detector +
94 "'. Condition is '" +
_condition->name() +
"'");
102 SignalProducer::signals_t::const_iterator it01(det01.
mcp().
output().begin());
103 SignalProducer::signals_t::const_iterator end(det01.
mcp().
output().end());
104 for (; it01 != end;++it01)
106 SignalProducer::signals_t::const_iterator it02(it01+1);
107 for (; it02 != end; ++it02)
110 SignalProducer::signals_t::const_iterator it03(it02+1);
111 for (; it03 != end; ++it03)
114 (*it03)[ACQIRIS::time]));
particles_t & particles()
retrieve the particle container
Event to store all LCLS Data.
virtual void createHistList(result_t::shared_pointer result)
create result list.
ACQIRIS::HelperAcqirisDetectors::helperinstancesmap_t::key_type _detector
The first detector of the cooincdence.
const name_t name() const
retrieve the name of this processor
ACQIRIS::HelperAcqirisDetectors::helperinstancesmap_t::key_type _detector
The detector we are there for.
file contains declaration of the CASSEvent
file contains declaration of classes that extract information of acqiris detectors.
virtual void loadSettings(size_t)
load the histogram settings from file
Processor::result_t::shared_pointer set2DHist(const Processor::name_t &name)
function to set the 2d histogram properties from the ini file.
ACQIRIS::DelaylineDetector::particles_t::key_type _particle
the particle we are working on
std::string loadParticle(CASSSettings &s, const std::string &detector, int ppNbr, const std::string &key)
load particle for a specific detector
SignalProducer & mcp()
retrieve the mcp
static void add(Level level, const std::string &line)
add a string to the log
fromStdString(const std::string &str)
pp5001(const name_t &)
Constructor for Number of Signals.
base class for processors.
virtual void loadSettings(size_t)
load the histogram settings from file
file contains declaration of classes and functions that help other processors to do their job...
file contains the declaration of the acqiris part of the CASSEvent
file contains global definitions for project cass
virtual void process(const CASSEvent &, result_t &)
Retrieve the number of Signals and histogram it.
std::string loadDelayDet(CASSSettings &s, int ppNbr, const std::string &key)
load detector from file
value(const QString &key, const QVariant &defaultValue=QVariant()
pp5000(const name_t &)
Constructor for Number of Signals.
void setupGeneral()
general setup of the processor
file contains specialized class that do the settings for cass
signals_t & output()
return the signals
iterator histogram(const value_t &pos, const value_t &weight=1)
add the weight at the right bin for the value in the 1d array
Base class for all Detectors attached to an Acqiris Instrument.
shared_pointer _condition
pointer to the processor that will contain the condition
virtual void process(const CASSEvent &, result_t &)
Retrieve the number of Signals and histogram it.
Processor::result_t::shared_pointer set1DHist(const Processor::name_t &name)
function to set the 1d histogram properties from the ini file.
bool setupCondition(bool defaultConditionType=true)
setup the condition.
std::string name_t
define the name type
contains a logger for cass
beginGroup(const QString &prefix)
file contains the processor specific for coltrims analysis