6 #include "GaudiAlg/GaudiHistoAlg.h"
7 #include "GaudiAlg/GaudiHistoTool.h"
11 #include "GaudiPython/Vector.h"
12 #include "GaudiPython/HistoDecorator.h"
33 const std::string& title ,
36 const unsigned long bins )
37 {
return algo.
plot1D( data , title , low , high , bins ) ; }
54 const std::string& title ,
57 const unsigned long bins )
58 {
return algo.
plot1D( data , ID , title , low , high , bins ) ; }
75 const std::string& title ,
78 const unsigned long bins )
79 {
return algo.
plot1D( data , ID , title , low , high , bins ) ; }
95 const std::string& ID ,
96 const std::string& title ,
99 const unsigned long bins )
100 {
return algo.
plot1D( data , ID , title , low , high , bins ) ; }
115 const std::string& title ,
118 const unsigned long bins )
124 title , low , high , bins ) ;
142 const std::string& title ,
145 const unsigned long bins )
151 ID , title , low , high , bins ) ;
169 const std::string& title ,
172 const unsigned long bins )
178 ID , title , low , high , bins ) ;
195 const std::string& ID ,
196 const std::string& title ,
199 const unsigned long bins )
205 ID , title , low , high , bins ) ;
224 const double valueX ,
225 const double valueY ,
226 const std::string& title ,
231 const unsigned long binsX ,
232 const unsigned long binsY ,
233 const double weight )
235 return algo.
plot2D ( valueX , valueY ,
239 binsX , binsY , weight ) ;
259 const double valueX ,
260 const double valueY ,
262 const std::string& title ,
267 const unsigned long binsX ,
268 const unsigned long binsY ,
269 const double weight )
271 return algo.
plot2D ( valueX , valueY ,
275 binsX , binsY , weight ) ;
295 const double valueX ,
296 const double valueY ,
298 const std::string& title ,
303 const unsigned long binsX ,
304 const unsigned long binsY ,
305 const double weight )
307 return algo.
plot2D ( valueX , valueY ,
311 binsX , binsY , weight ) ;
331 const double valueX ,
332 const double valueY ,
333 const std::string& ID ,
334 const std::string& title ,
339 const unsigned long binsX ,
340 const unsigned long binsY ,
341 const double weight )
343 return algo.
plot2D ( valueX , valueY ,
347 binsX , binsY , weight ) ;
370 const double valueX ,
371 const double valueY ,
372 const double valueZ ,
373 const std::string& title ,
380 const unsigned long binsX ,
381 const unsigned long binsY ,
382 const unsigned long binsZ ,
383 const double weight )
385 return algo. plot3D ( valueX , valueY , valueZ ,
390 binsX , binsY , binsZ ,
414 const double valueX ,
415 const double valueY ,
416 const double valueZ ,
418 const std::string& title ,
425 const unsigned long binsX ,
426 const unsigned long binsY ,
427 const unsigned long binsZ ,
428 const double weight )
430 return algo. plot3D ( valueX , valueY , valueZ ,
435 binsX , binsY , binsZ ,
459 const double valueX ,
460 const double valueY ,
461 const double valueZ ,
463 const std::string& title ,
470 const unsigned long binsX ,
471 const unsigned long binsY ,
472 const unsigned long binsZ ,
473 const double weight )
475 return algo. plot3D ( valueX , valueY , valueZ ,
480 binsX , binsY , binsZ ,
505 const double valueX ,
506 const double valueY ,
507 const double valueZ ,
508 const std::string& ID ,
509 const std::string& title ,
516 const unsigned long binsX ,
517 const unsigned long binsY ,
518 const unsigned long binsZ ,
519 const double weight )
521 return algo. plot3D ( valueX , valueY , valueZ ,
526 binsX , binsY , binsZ ,
535 const double valueX ,
536 const double valueY ,
537 const std::string& title ,
540 const unsigned long binsX ,
541 const std::string&
opt ,
544 const double weight )
547 ( valueX , valueY , title , lowX , highX , binsX ,
548 opt , lowY , highY , weight ) ;
556 const double valueX ,
557 const double valueY ,
559 const std::string& title ,
562 const unsigned long binsX ,
563 const std::string& opt ,
566 const double weight )
569 ( valueX , valueY , ID , title , lowX , highX , binsX ,
570 opt , lowY , highY , weight ) ;
578 const double valueX ,
579 const double valueY ,
581 const std::string& title ,
584 const unsigned long binsX ,
585 const std::string& opt ,
588 const double weight )
591 ( valueX , valueY , ID , title , lowX , highX , binsX ,
592 opt , lowY , highY , weight ) ;
600 const double valueX ,
601 const double valueY ,
602 const std::string& ID ,
603 const std::string& title ,
606 const unsigned long binsX ,
607 const std::string& opt ,
610 const double weight )
613 ( valueX , valueY , ID , title , lowX , highX , binsX ,
614 opt , lowY , highY , weight ) ;
622 const double valueX ,
623 const double valueY ,
624 const double valueZ ,
625 const std::string& title ,
630 const unsigned long binsX ,
631 const unsigned long binsY ,
632 const double weight )
635 ( valueX , valueY , valueZ ,
639 binsX , binsY , weight ) ;
647 const double valueX ,
648 const double valueY ,
649 const double valueZ ,
651 const std::string& title ,
656 const unsigned long binsX ,
657 const unsigned long binsY ,
658 const double weight )
661 ( valueX , valueY , valueZ ,
665 binsX , binsY , weight ) ;
673 const double valueX ,
674 const double valueY ,
675 const double valueZ ,
677 const std::string& title ,
682 const unsigned long binsX ,
683 const unsigned long binsY ,
684 const double weight )
687 ( valueX , valueY , valueZ ,
691 binsX , binsY , weight ) ;
699 const double valueX ,
700 const double valueY ,
701 const double valueZ ,
702 const std::string& ID ,
703 const std::string& title ,
708 const unsigned long binsX ,
709 const unsigned long binsY ,
710 const double weight )
713 ( valueX , valueY , valueZ ,
717 binsX , binsY , weight ) ;
726 template <
typename Container,
typename HISTO>
728 (
const Container& a ,
729 std::vector<GaudiAlg::ID>& b ,
730 std::vector<HISTO>&
c )
734 for (
const auto&
i : a )
736 if ( !
i.second ) { continue ; }
737 b.push_back (
i.first ) ;
738 c.push_back (
i.second ) ;
752 return cmp ? fromMap ( cmp -> histo1DMapID () , ids , histos ) : 0;
763 return cmp ? fromMap( cmp -> histo1DMapID () , ids , histos ) : 0;
774 return cmp ? _histos_a_ ( dynamic_cast<const GaudiHistoAlg*> ( cmp ) , ids, histos ) : 0;
784 return cmp ? _histos_t_ ( dynamic_cast<const GaudiHistoTool*> ( cmp ) , ids, histos ) : 0;
796 return cmp ? fromMap ( cmp -> histo2DMapID () , ids , histos ) : 0;
807 return cmp ? fromMap ( cmp -> histo2DMapID () , ids , histos ) : 0;
818 return cmp ? _histos_a_ ( dynamic_cast<const GaudiHistoAlg*> ( cmp ) , ids, histos ) : 0;
828 return cmp ? _histos_t_ ( dynamic_cast<const GaudiHistoTool*> ( cmp ) , ids, histos ) : 0;
840 return cmp ? fromMap ( cmp -> histo3DMapID () , ids , histos ) : 0;
851 return cmp ? fromMap ( cmp -> histo3DMapID () , ids , histos ) : 0;
862 return cmp ? _histos_a_ ( dynamic_cast<const GaudiHistoAlg*> ( cmp ) , ids, histos ) : 0;
872 return cmp ? _histos_t_ ( dynamic_cast<const GaudiHistoTool*> ( cmp ) , ids, histos ) : 0;
884 return cmp ? fromMap ( cmp -> profile1DMapID () , ids , histos ) : 0;
895 return cmp ? fromMap ( cmp -> profile1DMapID () , ids , histos ) : 0;
906 return cmp ? _histos_a_ ( dynamic_cast<const GaudiHistoAlg*> ( cmp ) , ids, histos ) : 0;
916 return cmp ? _histos_t_ ( dynamic_cast<const GaudiHistoTool*> ( cmp ) , ids, histos ) : 0;
928 return cmp ? fromMap ( cmp -> profile2DMapID () , ids , histos ) : 0;
939 return cmp ? fromMap ( cmp -> profile2DMapID () , ids , histos ) : 0;
950 return cmp ? _histos_a_ ( dynamic_cast<const GaudiHistoAlg*> ( cmp ) , ids, histos ) : 0;
960 return cmp ? _histos_t_ ( dynamic_cast<const GaudiHistoTool*> ( cmp ) , ids, histos ) : 0;
static AIDA::IProfile2D * profile2D(const GaudiHistoAlg &algo, const double valueX, const double valueY, const double valueZ, const std::string &title, const double lowX, const double highX, const double lowY, const double highY, const unsigned long binsX=50, const unsigned long binsY=50, const double weight=1.0)
std::vector< double > Vector
useful type definition for implicit loos
It is here due to 'missing'(?) std::identity.
AIDA::IProfile1D * profile1D(const double valueX, const double valueY, const std::string &title, const double lowX, const double highX, const unsigned long binsX=100, const std::string &opt="", const double lowY=-std::numeric_limits< double >::max(), const double highY=std::numeric_limits< double >::max(), const double weight=1.0) const
fill the 1D profile histogram (book on demand)
static AIDA::IHistogram1D * plot1D(const GaudiHistoAlg &algo, const double data, const std::string &title, const double low, const double high, const unsigned long bins=100)
"plot"(book&fill) a sequence of data from the vector (implicit loop) (Expected to be more efficient) ...
AIDA::IHistogram1D * plot(const double value, const std::string &title, const double low, const double high, const unsigned long bins=100, const double weight=1.0) const
fill the 1D histogram (book on demand)
static AIDA::IProfile1D * profile1D(const GaudiHistoAlg &algo, const double valueX, const double valueY, const std::string &title, const double lowX, const double highX, const unsigned long binsX=100, const std::string &opt="", const double lowY=-std::numeric_limits< double >::max(), const double highY=std::numeric_limits< double >::max(), const double weight=1.0)
std::vector< AIDA::IHistogram2D * > Histos2D
std::vector< GaudiAlg::ID > IDs
string opt
print 'Summary: %32s [s] d d steps'%(summary.protocol,summary.type,summary.nevt,len(summary.data),)
The IAlgorithm is the interface implemented by the Algorithm base class.
static AIDA::IHistogram3D * plot3D(const GaudiHistoAlg &algo, const double valueX, const double valueY, const double valueZ, const std::string &title, const double lowX, const double highX, const double lowY, const double highY, const double lowZ, const double highZ, const unsigned long binsX=10, const unsigned long binsY=10, const unsigned long binsZ=10, const double weight=1.0)
fill the 3D histogram (book on demand)
static AIDA::IHistogram2D * plot2D(const GaudiHistoAlg &algo, const double valueX, const double valueY, const std::string &title, const double lowX, const double highX, const double lowY, const double highY, const unsigned long binsX=50, const unsigned long binsY=50, const double weight=1.0)
fill the 2D histogram (book on demand)
AIDA::IHistogram2D * plot2D(const double valueX, const double valueY, const std::string &title, const double lowX, const double highX, const double lowY, const double highY, const unsigned long binsX=50, const unsigned long binsY=50, const double weight=1.0) const
fill the 2D histogram (book on demand)
std::vector< AIDA::IProfile2D * > Profiles2D
static size_t _histos_a_(const GaudiHistoAlg *cmp, IDs &ids, Histos1D &histos)
std::vector< AIDA::IHistogram1D * > Histos1D
Simple class to extend the functionality of class GaudiAlgorithm.
std::vector< AIDA::IHistogram3D * > Histos3D
static size_t _histos_t_(const GaudiHistoTool *cmp, IDs &ids, Histos1D &histos)
AIDA::IProfile2D * profile2D(const double valueX, const double valueY, const double valueZ, const std::string &title, const double lowX, const double highX, const double lowY, const double highY, const unsigned long binsX=50, const unsigned long binsY=50, const double weight=1.0) const
fill the 2D profile histogram (book on demand)
std::vector< AIDA::IProfile1D * > Profiles1D
AIDA::IHistogram1D * plot1D(const double value, const std::string &title, const double low, const double high, const unsigned long bins=100, const double weight=1.0) const
fill the 1D histogram (book on demand)
ID class for Histogram and Ntuples.